summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
Commit message (Collapse)AuthorAgeFilesLines
* xref-matches-in-files: Use with-connection-local-variablesDmitry Gutov2022-08-271-7/+14
| | | | | * lisp/progmodes/xref.el (xref-matches-in-files): Use with-connection-local-variables (bug#57385).
* * lisp/progmodes/xref.el: Bump the version.Dmitry Gutov2022-07-231-1/+1
|
* Support new "binary file matches" format in Ripgrep 13Dmitry Gutov2022-07-231-1/+2
| | | | | | * lisp/progmodes/xref.el (xref-matches-in-files): Support new "binary file matches" format in Ripgrep 13 (bug#56624).
* xref-goto-xref: Set input focus in addition to selecting windowMiha Rihtaršič2022-06-201-3/+9
| | | | | * lisp/progmodes/xref.el (xref--show-location): Set input focus in addition to selecting displayed window (Bug#55983).
* ; Fix mistakes in 'declare function' formsEli Zaretskii2022-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/gdb-mi.el (tooltip-show): * lisp/vc/vc-git.el (grep-expand-template): * lisp/cedet/semantic/imenu.el (pulse-momentary-highlight-one-line): * lisp/mail/feedmail.el (smtpmail-via-smtp): * lisp/mail/rmail.el (rmail-mime-entity-truncated): * lisp/mail/rmailsum.el (rmail-cease-edit): * lisp/progmodes/gud.el (speedbar-toggle-line-expansion) (speedbar-edit-line): * lisp/autoinsert.el (sgml-tag): * lisp/comint.el (url-host, url-type, url-filename): * lisp/progmodes/elisp-mode.el (xref-make, xref-item-location): * lisp/vc/vc-hooks.el (vc-responsible-backend): * lisp/cedet/semantic/complete.el (tooltip-show): * lisp/doc-view.el (tooltip-show): * lisp/follow.el (mwheel-scroll): * lisp/term/pgtk-win.el (pgtk-set-resource): * lisp/progmodes/cperl-mode.el (Info-find-node): * lisp/lpr.el (print-region-function): * lisp/w32-fns.el (w32-version, w32-read-registry): * lisp/emacs-lisp/checkdoc.el (ispell-correct-p, checkdoc-dired): * lisp/progmodes/xref.el (apropos-parse-pattern): * lisp/cus-edit.el (apropos-parse-pattern): * lisp/obsolete/gs.el (x-change-window-property): * lisp/x-dnd.el (x-change-window-property): * lisp/xwidget.el (make-xwidget): * lisp/transient.el (info, Man-find-section, Man-next-section) (Man-getpage-in-background): * lisp/frame.el (x-device-class, pgtk-device-class): * lisp/textmodes/texinfo.el (flymake--log-1): * lisp/term/x-win.el (x-internal-focus-input-context): Fix 'declare function' errors uncovered by 'check-declare'.
* Use xref-goto-xref as the xref mouse bindingLars Ingebrigtsen2022-05-021-1/+1
| | | | | | * lisp/progmodes/xref.el (xref--button-map): Keep the xref-goto-xref binding instead of select-and-show to be more similar to grep buffers.
* Make the xref--button-map more regularLars Ingebrigtsen2022-04-301-2/+0
| | | | | * lisp/progmodes/xref.el (xref--button-map): Remove the mouse-1 binding (bug#35353).
* Avoid binding mouse-1 in xref when mouse-1 doesn't follow linksLars Ingebrigtsen2022-04-291-1/+3
| | | | | * lisp/progmodes/xref.el (xref--button-map): Avoid binding mouse-1 when `mouse-1-click-follows-link' is nil (bug#35353).
* ; * lisp/progmodes/xref.el (xref-query-replace-in-results): Fix last change.Eli Zaretskii2022-04-281-3/+2
|
* Merge from origin/emacs-28Eli Zaretskii2022-04-281-0/+6
|\ | | | | | | | | # Conflicts: # lisp/progmodes/xref.el
| * Add minimum instructions to 'query-replace' commandsEli Zaretskii2022-04-211-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/vc/vc-dir.el (vc-dir-query-replace-regexp): * lisp/textmodes/reftex-global.el (reftex-query-replace-document): * lisp/progmodes/project.el (project-query-replace-regexp): * lisp/progmodes/etags.el (tags-query-replace): * lisp/progmodes/ebrowse.el (ebrowse-tags-query-replace): * lisp/isearch.el (isearch-query-replace, isearch-occur): * lisp/emulation/viper-cmd.el (viper-query-replace): * lisp/dired-aux.el (dired-do-query-replace-regexp) (dired-do-find-regexp-and-replace): * lisp/progmodes/xref.el (xref-query-replace-in-results): * lisp/replace.el (query-replace, query-replace-regexp) (query-replace-regexp-eval, map-query-replace-regexp): Add minimal instructions for dealing with matches, with a link to the command that shows the full instructions. (Bug#55050)
* | Audit quoting the quote character in doc stringsLars Ingebrigtsen2022-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/regex-emacs-tests.el (regex-tests-compare): (regex-tests-compare): (regex-tests-match): * test/lisp/xml-tests.el (xml-parse-tests--qnames): * test/lisp/mh-e/mh-thread-tests.el (mh-thread-tests-before-from): * test/lisp/cedet/srecode-utest-template.el (srecode-utest-map-reset): * test/lisp/calc/calc-tests.el (calc-tests-equal): * lisp/window.el (get-lru-window): (get-mru-window): (get-largest-window): (quit-restore-window): (display-buffer): * lisp/vc/vc-rcs.el (vc-rcs-consult-headers): * lisp/url/url-auth.el (url-digest-auth-build-response): * lisp/tutorial.el (tutorial--find-changed-keys): * lisp/transient.el (transient-suffix-object): * lisp/textmodes/rst.el (rst-insert-list-new-item): * lisp/textmodes/bibtex.el (bibtex-clean-entry): * lisp/tab-bar.el (tab-bar--key-to-number): (toggle-frame-tab-bar): * lisp/ses.el (ses-recalculate-cell): (ses-define-local-printer): (ses-prin1): * lisp/progmodes/xref.el (xref--find-ignores-arguments): * lisp/progmodes/verilog-mode.el (verilog-single-declaration-end): * lisp/progmodes/tcl.el (tcl-mode-hook): * lisp/progmodes/gdb-mi.el (gdb-get-buffer-create): * lisp/progmodes/elisp-mode.el (elisp--xref-make-xref): * lisp/play/dunnet.el (dun-room-objects): * lisp/outline.el (outline--cycle-state): * lisp/org/ox-publish.el (org-publish-find-property): * lisp/org/ox-html.el (org-html--unlabel-latex-environment): * lisp/org/org-table.el (org-table-collapse-header): * lisp/org/org-plot.el (org--plot/prime-factors): * lisp/org/org-agenda.el (org-agenda--mark-blocked-entry): (org-agenda-set-restriction-lock): * lisp/org/ob-lua.el (org-babel-lua-read-string): * lisp/org/ob-julia.el (org-babel-julia-evaluate-external-process): (org-babel-julia-evaluate-session): * lisp/org/ob-core.el (org-babel-default-header-args): * lisp/obsolete/mouse-sel.el (mouse-select): (mouse-select-secondary): * lisp/net/tramp.el (tramp-methods): * lisp/net/eww.el (eww-accept-content-types): * lisp/net/dictionary-connection.el (dictionary-connection-status): * lisp/minibuffer.el (completion-flex--make-flex-pattern): * lisp/mh-e/mh-mime.el (mh-have-file-command): * lisp/mh-e/mh-limit.el (mh-subject-to-sequence): (mh-subject-to-sequence-threaded): (mh-subject-to-sequence-unthreaded): * lisp/mail/feedmail.el (feedmail-queue-buffer-file-name): (feedmail-vm-mail-mode): * lisp/ls-lisp.el (ls-lisp--sanitize-switches): * lisp/keymap.el (key-valid-p): * lisp/international/ccl.el (ccl-compile-branch-blocks): * lisp/image/image-converter.el (image-convert): * lisp/gnus/spam.el (spam-backend-check): * lisp/gnus/nnselect.el (nnselect-generate-artlist): * lisp/gnus/nnmairix.el (nnmairix-widget-other): * lisp/gnus/message.el (message-mailto): * lisp/gnus/gnus-sum.el (gnus-collect-urls-from-article): * lisp/gnus/gnus-search.el (gnus-search-prepare-query): * lisp/frame.el (frame-size-history): * lisp/eshell/esh-var.el (eshell-parse-variable-ref): * lisp/eshell/em-dirs.el (eshell-expand-multiple-dots): * lisp/erc/erc-backend.el (erc-bounds-of-word-at-point): * lisp/emulation/cua-rect.el (cua--rectangle-operation): * lisp/emacs-lisp/text-property-search.el (text-property-search-forward): * lisp/emacs-lisp/package.el (package-desc-suffix): * lisp/emacs-lisp/faceup.el (faceup-test-explain): * lisp/emacs-lisp/comp.el (comp-curr-allocation-class): (comp-alloc-class-to-container): (comp-add-cstrs): (comp-remove-type-hints-func): (batch-byte+native-compile): * lisp/emacs-lisp/cl-macs.el (cl--optimize): * lisp/elec-pair.el (electric-pair--syntax-ppss): * lisp/doc-view.el (doc-view-doc-type): * lisp/cedet/semantic/symref.el (semantic-symref-tool-alist): (semantic-symref-hit-to-tag-via-db): (semantic-symref-hit-to-tag-via-buffer): * lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-get-overlay): * lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map): * lisp/cedet/semantic/find.el (semantic-brute-find-tag-by-function): * lisp/cedet/semantic/db.el (semanticdb-project-predicate-functions): * lisp/cedet/semantic.el (semantic-working-type): * lisp/cedet/ede/files.el (ede-flush-directory-hash): * lisp/calc/calc.el (calc--header-line): * lisp/auth-source.el (auth-source-pick-first-password): (auth-source--decode-octal-string): * etc/themes/modus-themes.el (modus-themes--paren): (modus-themes--agenda-habit): * admin/cus-test.el (cus-test-vars-with-changed-state): Fix quoting in doc strings. In code examples, the ' character is quoted with \\=, and regularize 'foo to `foo', and quote strings like "foo" instead of 'foo'.
* | Add a doc string to xref-current-itemLars Ingebrigtsen2022-04-171-2/+5
| | | | | | | | | | * lisp/progmodes/xref.el (xref-after-jump-hook): Link to it. (xref-current-item): Add a doc string to the now-public variable.
* | * lisp/progmodes/xref.el (xref-search-program): Fix typo.Dmitry Gutov2022-04-021-1/+1
| |
* | Support ugrep in xref-search-program-alistManuel Uberti2022-04-021-1/+3
| | | | | | | | | | | | * lisp/progmodes/xref.el (xref-search-program-alist) (xref-search-program): Add entries for ugrep (bug#54608).
* | Fix a use of 'cl-defgeneric'.Philipp Stephani2022-03-171-1/+1
| | | | | | | | | | * lisp/progmodes/xref.el (xref-match-length): Use 'cl-defmethod' instead of 'cl-defgeneric'.
* | * lisp/progmodes/xref.el: Bump the version.Dmitry Gutov2022-03-031-1/+1
| |
* | Merge from origin/emacs-28Stefan Kangas2022-02-281-1/+1
|\| | | | | | | | | | | e77fc8262a Update to Org 9.5.2-22-g33543d 9bce4b67f1 ; * lisp/help.el (with-help-window): Doc fix. (Bug#54170) 558b03a958 Add explicit '--no-heading' for ripgrep
| * Add explicit '--no-heading' for ripgrepDmitry Gutov2022-02-271-1/+1
| | | | | | | | | | * lisp/progmodes/xref.el (xref-search-program-alist): Add explicit '--no-heading' for ripgrep (bug#54177).
* | Drop the visited file modtime check for remote xref hitsDmitry Gutov2022-02-261-5/+7
| | | | | | | | | | | | * lisp/progmodes/xref.el (xref--hits-remote-id): New variable. (xref--convert-hits, xref--collect-matches) (xref--find-file-buffer): Use it (bug#54025).
* | xref--find-file-buffer: Check modified-p and modtimeDmitry Gutov2022-02-251-4/+10
| | | | | | | | | | | | * lisp/progmodes/xref.el (xref--find-file-buffer): Check whether the buffer contents match what's on disk (bug#54025).
* | Unbreak project switcher when inside *xref* bufferDmitry Gutov2022-02-231-2/+9
| | | | | | | | | | | | | | * lisp/progmodes/xref.el (xref--ensure-default-directory): New function. (xref--show-xref-buffer, xref-show-definitions-buffer-at-bottom): Use it (bug#53626).
* | Bump xref.el version.Dmitry Gutov2022-02-211-1/+1
| | | | | | | | * lisp/progmodes/xref.el: Bump version to 1.4.0.
* | Public-ize xref-show-xrefsDmitry Gutov2022-02-211-0/+7
| | | | | | | | | | * lisp/progmodes/xref.el (xref-show-xrefs): New function (wrapper for an older, private one, bug#42967).
* | Public-ize xref-current-itemDmitry Gutov2022-02-211-6/+11
| | | | | | | | | | * lisp/progmodes/xref.el (xref--current-item): Rename to 'xref-current-item' (bug#53956). Update all references.
* | * lisp/progmodes/xref.el (xref--marker-ring): Fix typoStefan Monnier2022-02-071-1/+1
| |
* | * lisp/replace.el (query-replace-read-from-default): New variable.Juri Linkov2022-02-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | (query-replace-read-from-regexp-default): New variable. (query-replace-read-from): Use new variables. * lisp/progmodes/project.el (project-query-replace-regexp): Let-bind query-replace-read-from-regexp-default to find-tag-default-as-regexp. * lisp/progmodes/xref.el (xref-find-references-and-replace): Let-bind query-replace-read-from-default to find-tag-default. https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg01909.html
* | Merge from origin/emacs-28Stefan Kangas2022-01-151-6/+6
|\| | | | | | | | | | | 5990148860 * lisp/simple.el (undo-no-redo): Fix customization group ac2cdb8a46 * lisp/progmodes/xref.el (xref-file-name-display): Fix doc... c05864dd25 Avoid another segfault in 'face_at_buffer_position'
| * * lisp/progmodes/xref.el (xref-file-name-display): Fix docstring.Philipp Stephani2022-01-141-6/+6
| |
* | * lisp/progmodes/xref.el (xref-query-replace-in-results): Fix prefix-arg.Juri Linkov2022-01-141-2/+2
| | | | | | | | Use current-prefix-arg.
* | xref-find-references-and-replace: New commandDmitry Gutov2022-01-141-0/+16
| | | | | | | | | | * lisp/progmodes/xref.el (xref-find-references-and-replace): New command.
* | Steamline xref-query-replace-in-resultsDmitry Gutov2022-01-141-4/+13
| | | | | | | | | | | | * lisp/progmodes/xref.el (xref-query-replace-in-results): Steamline the most common scenario (https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg00864.html).
* | Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
| |
* | Merge from origin/emacs-28Stefan Kangas2021-12-241-2/+14
|\| | | | | | | | | 04be23f19f Improve Xref documentation edb1d491d9 * lisp/net/shr.el (shr-expand-url): Also strip trailing wh...
| * Improve Xref documentationDmitry Gutov2021-12-241-2/+14
| | | | | | | | | | * lisp/progmodes/xref.el (xref-item): Add docstring for 'summary'. Fix typo in the header Commentary.
* | Avoid adding duplicates to Xref historyMattias Engdegård2021-11-181-6/+16
| | | | | | | | | | | | * lisp/progmodes/xref.el (xref--push-backward, xref--push-forward): New functions. (xref-push-marker-stack, xref-go-back, xref-go-forward): Use them.
* | Merge from origin/emacs-28Stefan Kangas2021-11-131-1/+1
|\| | | | | | | | | 42d4e24ff3 ; Fix typos 0d0125daae Improve documentation of 'decode-coding-region'
| * ; Fix typosStefan Kangas2021-11-121-1/+1
| |
* | Revert "* lisp/progmodes/xref.el (xref-pop-marker-stack): Don't obsolete."Mattias Engdegård2021-11-041-1/+1
| | | | | | | | | | | | | | | | | | This reverts commit f56408a6f0152cd46d1ea8a0985fbfeeb839ea06. As commented by Dmitry Gutov in [1], obsoleting `xref-pop-marker-stack` makes sense. [1] https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg01870.html
* | * lisp/progmodes/xref.el (xref-pop-marker-stack): Don't obsolete.Mattias Engdegård2021-10-261-1/+1
| |
* | Rename `xref-pop-marker-stack` to `xref-go-back` (bug#38797)Mattias Engdegård2021-10-251-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is the natural name after the addition of `xref-go-forward`. The old name is retained as an alias. * lisp/progmodes/xref.el (xref-pop-marker-stack): Rename. (xref-go-forward, xref-quit-and-pop-marker-stack) (xref-find-definitions): * lisp/menu-bar.el (menu-bar-goto-menu): * lisp/progmodes/etags.el (find-tag-marker-ring, pop-tag-mark): * lisp/progmodes/prog-mode.el (prog-context-menu): * doc/emacs/maintaining.texi (Looking Up Identifiers): * etc/NEWS: Use the new name.
* | Add xref forward history (bug#38797)Mattias Engdegård2021-10-251-32/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it possible to go forward as well as back in the Xref history. The new `xref-go-forward` is bound to `C-M-,`. * lisp/progmodes/etags.el (find-tag-marker-ring-length): Update. (tags-location-ring-length): New. (find-tag-marker-ring): Keep as dummy. (tags-location-ring, tags-reset-tags-tables): Use `tags-location-ring-length` instead of `xref-marker-ring-length`. * lisp/progmodes/xref.el (xref-marker-ring-length, xref-marker-ring) (xref-set-marker-ring-length): Make obsolete. (xref--history, xref-go-forward, xref-forward-history-empty-p): New. (xref-push-marker-stack, xref-pop-marker-stack) (xref-clear-marker-stack, xref-marker-stack-empty-p): Use `xref--history`. * lisp/menu-bar.el (menu-bar-goto-menu): Add Forward entry. * doc/emacs/maintaining.texi (Looking Up Identifiers): Document. * etc/NEWS: Announce.
* | xref.el: Better compatibility with outdated Emacs 28 buildsDmitry Gutov2021-10-201-2/+2
| | | | | | | | | | | | * lisp/progmodes/xref.el: Ensure better compatibility with outdated Emacs 28 builds as well (like the pgtk branch). Bump the version.
* | * lisp/progmodes/xref.el: Bump version.Dmitry Gutov2021-10-191-1/+1
| |
* | Fix Emacs 26 support in xref.elDmitry Gutov2021-10-191-7/+14
| | | | | | | | | | * lisp/progmodes/xref.el (xref--defstruct): New macro. (xref-item, xref-match-item): Use it in definitions.
* | Merge from origin/emacs-28Glenn Morris2021-10-091-55/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 394209c1a0 (origin/emacs-28) ; Fix indentation in etc/NEWS 81f20e8b89 Fix thinko in ls-lisp--insert-directory ec9f25bd35 Mention that RET means "yes" in y-or-n-p 00eb21c897 ; * src/dispextern.h (struct glyph_string): Comment on NCH... 20eb3644ba Rewrite Antinews for Emacs 28 3a9b881603 ; * etc/NEWS: Rearrange the "incompatible changes" sections. ebb7e26013 ; * etc/NEWS: Fix a typo. 315fe20086 ; * src/Makefile.in (../native-lisp): Add comment. 47cbd103f5 * lisp/bindings.el (mode-line-position): Improve tooltip. 35a752863a * lisp/progmodes/xref.el: Bump the version. bbcd8cc1a9 Slight simplificaiton e139dd1b1e Fix doc strings of 2 categories 59782839cb (xref--collect-matches-1): Remove some intermediate alloca... 1c7d056f4d ; Fix two typos where em dash was written as en dash # Conflicts: # etc/NEWS
| * * lisp/progmodes/xref.el: Bump the version.Dmitry Gutov2021-10-091-1/+1
| |
| * Slight simplificaitonDmitry Gutov2021-10-091-28/+26
| | | | | | | | | | * lisp/progmodes/xref.el (xref--insert-xrefs): Compute log only once. Use 'dolist'.
| * (xref--collect-matches-1): Remove some intermediate allocationsDmitry Gutov2021-10-081-26/+28
| | | | | | | | | | | | * lisp/progmodes/xref.el: (xref--collect-matches-1): Rewrite to remove some intermediate allocations. Modest performance improvement.