Dmitry Gutov
1b99f2908b
* lisp/progmodes/xref.el: Bump the version.
2022-07-23 21:13:39 +03:00
Dmitry Gutov
38d5e346df
Support new "binary file matches" format in Ripgrep 13
...
* lisp/progmodes/xref.el (xref-matches-in-files):
Support new "binary file matches" format in Ripgrep 13
(bug#56624).
2022-07-23 15:23:56 +03:00
Miha Rihtaršič
9c359b0cec
xref-goto-xref: Set input focus in addition to selecting window
...
* lisp/progmodes/xref.el (xref--show-location): Set input focus in
addition to selecting displayed window (Bug#55983).
2022-06-20 03:44:14 +03:00
Eli Zaretskii
640e52d8fa
; Fix mistakes in 'declare function' forms
...
* 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'.
2022-05-14 16:19:12 +03:00
Lars Ingebrigtsen
44243af8f2
Use xref-goto-xref as the xref mouse binding
...
* 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.
2022-05-02 10:01:55 +02:00
Lars Ingebrigtsen
4290f64dc9
Make the xref--button-map more regular
...
* lisp/progmodes/xref.el (xref--button-map): Remove the mouse-1
binding (bug#35353).
2022-04-30 13:38:18 +02:00
Lars Ingebrigtsen
1b71c995da
Avoid binding mouse-1 in xref when mouse-1 doesn't follow links
...
* lisp/progmodes/xref.el (xref--button-map): Avoid binding mouse-1
when `mouse-1-click-follows-link' is nil (bug#35353).
2022-04-29 14:01:30 +02:00
Eli Zaretskii
b8f4a1e0ed
; * lisp/progmodes/xref.el (xref-query-replace-in-results): Fix last change.
2022-04-28 18:41:53 +03:00
Eli Zaretskii
b3023de543
Merge from origin/emacs-28
...
# Conflicts:
# lisp/progmodes/xref.el
2022-04-28 18:37:34 +03:00
Lars Ingebrigtsen
bbf389ea6d
Audit quoting the quote character in doc strings
...
* 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'.
2022-04-22 16:17:22 +02:00
Eli Zaretskii
16d1ab02af
Add minimum instructions to 'query-replace' commands
...
* 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)
2022-04-21 14:54:45 +03:00
Lars Ingebrigtsen
4d60d9face
Add a doc string to xref-current-item
...
* lisp/progmodes/xref.el (xref-after-jump-hook): Link to it.
(xref-current-item): Add a doc string to the now-public variable.
2022-04-17 12:17:30 +02:00
Dmitry Gutov
d62b43f760
* lisp/progmodes/xref.el (xref-search-program): Fix typo.
2022-04-02 04:34:52 +03:00
Manuel Uberti
9468ab2570
Support ugrep in xref-search-program-alist
...
* lisp/progmodes/xref.el
(xref-search-program-alist)
(xref-search-program): Add entries for ugrep (bug#54608).
2022-04-02 04:31:33 +03:00
Philipp Stephani
6ed3f04e5a
Fix a use of 'cl-defgeneric'.
...
* lisp/progmodes/xref.el (xref-match-length): Use 'cl-defmethod'
instead of 'cl-defgeneric'.
2022-03-17 12:58:52 +01:00
Dmitry Gutov
890b08e415
* lisp/progmodes/xref.el: Bump the version.
2022-03-03 04:55:23 +02:00
Stefan Kangas
1de7382b57
Merge from origin/emacs-28
...
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
2022-02-28 06:33:06 +01:00
Dmitry Gutov
558b03a958
Add explicit '--no-heading' for ripgrep
...
* lisp/progmodes/xref.el (xref-search-program-alist):
Add explicit '--no-heading' for ripgrep (bug#54177).
2022-02-27 15:28:04 +02:00
Dmitry Gutov
018eeb655a
Drop the visited file modtime check for remote xref hits
...
* lisp/progmodes/xref.el (xref--hits-remote-id): New variable.
(xref--convert-hits, xref--collect-matches)
(xref--find-file-buffer): Use it (bug#54025).
2022-02-26 02:27:30 +02:00
Dmitry Gutov
fa2b60615b
xref--find-file-buffer: Check modified-p and modtime
...
* lisp/progmodes/xref.el (xref--find-file-buffer):
Check whether the buffer contents match what's on disk
(bug#54025).
2022-02-25 03:35:51 +02:00
Dmitry Gutov
0f67a3df0e
Unbreak project switcher when inside *xref* buffer
...
* lisp/progmodes/xref.el (xref--ensure-default-directory):
New function.
(xref--show-xref-buffer, xref-show-definitions-buffer-at-bottom):
Use it (bug#53626).
2022-02-23 03:53:16 +02:00
Dmitry Gutov
f0ac4b7797
Bump xref.el version.
...
* lisp/progmodes/xref.el: Bump version to 1.4.0.
2022-02-21 04:15:39 +02:00
Dmitry Gutov
3d106897fd
Public-ize xref-show-xrefs
...
* lisp/progmodes/xref.el (xref-show-xrefs):
New function (wrapper for an older, private one, bug#42967).
2022-02-21 03:57:27 +02:00
Dmitry Gutov
3d2c213ce9
Public-ize xref-current-item
...
* lisp/progmodes/xref.el (xref--current-item):
Rename to 'xref-current-item' (bug#53956). Update all references.
2022-02-21 02:59:50 +02:00
Stefan Monnier
7a9b5e7504
* lisp/progmodes/xref.el (xref--marker-ring): Fix typo
2022-02-07 13:37:09 -05:00
Juri Linkov
749ba35bf5
* lisp/replace.el (query-replace-read-from-default): New variable.
...
(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
2022-02-01 22:08:22 +02:00
Stefan Kangas
8df828e405
Merge from origin/emacs-28
...
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'
2022-01-15 06:47:59 +01:00
Philipp Stephani
ac2cdb8a46
* lisp/progmodes/xref.el (xref-file-name-display): Fix docstring.
2022-01-14 22:01:06 +01:00
Juri Linkov
102dd6e59b
* lisp/progmodes/xref.el (xref-query-replace-in-results): Fix prefix-arg.
...
Use current-prefix-arg.
2022-01-14 10:18:43 +02:00
Dmitry Gutov
c7bf60465a
xref-find-references-and-replace: New command
...
* lisp/progmodes/xref.el (xref-find-references-and-replace):
New command.
2022-01-14 04:38:39 +02:00
Dmitry Gutov
b2cc03d572
Steamline xref-query-replace-in-results
...
* 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 ).
2022-01-14 04:30:25 +02:00
Eli Zaretskii
dcd76bd48d
Merge from origin/emacs-28
...
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
2022-01-01 07:03:03 -05:00
Eli Zaretskii
19dcb237b5
; Add 2022 to copyright years.
2022-01-01 02:45:51 -05:00
Stefan Kangas
6a17bb4879
Merge from origin/emacs-28
...
04be23f19f
Improve Xref documentation
edb1d491d9
* lisp/net/shr.el (shr-expand-url): Also strip trailing wh...
2021-12-24 06:30:41 +01:00
Dmitry Gutov
04be23f19f
Improve Xref documentation
...
* lisp/progmodes/xref.el (xref-item): Add docstring for 'summary'.
Fix typo in the header Commentary.
2021-12-24 03:25:22 +02:00
Mattias Engdegård
f41c6a70e7
Avoid adding duplicates to Xref history
...
* lisp/progmodes/xref.el (xref--push-backward, xref--push-forward):
New functions.
(xref-push-marker-stack, xref-go-back, xref-go-forward): Use them.
2021-11-18 12:22:01 +01:00
Stefan Kangas
b4c6ab8cb6
Merge from origin/emacs-28
...
42d4e24ff3
; Fix typos
0d0125daae
Improve documentation of 'decode-coding-region'
2021-11-13 07:00:30 +01:00
Stefan Kangas
42d4e24ff3
; Fix typos
2021-11-12 13:59:58 +01:00
Mattias Engdegård
51929066d5
Revert "* lisp/progmodes/xref.el (xref-pop-marker-stack): Don't obsolete."
...
This reverts commit f56408a6f0
.
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
2021-11-04 10:14:15 +01:00
Mattias Engdegård
f56408a6f0
* lisp/progmodes/xref.el (xref-pop-marker-stack): Don't obsolete.
2021-10-26 10:10:02 +02:00
Mattias Engdegård
d8caa3d9fb
Rename xref-pop-marker-stack
to xref-go-back
(bug#38797)
...
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.
2021-10-25 20:45:18 +02:00
Mattias Engdegård
65b34f688c
Add xref forward history (bug#38797)
...
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.
2021-10-25 17:34:37 +02:00
Dmitry Gutov
766108f48d
xref.el: Better compatibility with outdated Emacs 28 builds
...
* lisp/progmodes/xref.el:
Ensure better compatibility with outdated Emacs 28 builds as well
(like the pgtk branch). Bump the version.
2021-10-20 01:04:17 +03:00
Dmitry Gutov
41c262af32
* lisp/progmodes/xref.el: Bump version.
2021-10-19 17:42:25 +03:00
Dmitry Gutov
cd4bb98540
Fix Emacs 26 support in xref.el
...
* lisp/progmodes/xref.el (xref--defstruct): New macro.
(xref-item, xref-match-item): Use it in definitions.
2021-10-19 17:33:08 +03:00
Glenn Morris
cc202c713b
Merge from origin/emacs-28
...
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
2021-10-09 07:50:36 -07:00
Dmitry Gutov
35a752863a
* lisp/progmodes/xref.el: Bump the version.
2021-10-09 04:38:11 +03:00
Dmitry Gutov
bbcd8cc1a9
Slight simplificaiton
...
* lisp/progmodes/xref.el (xref--insert-xrefs):
Compute log only once. Use 'dolist'.
2021-10-09 04:33:02 +03:00
Dmitry Gutov
59782839cb
(xref--collect-matches-1): Remove some intermediate allocations
...
* lisp/progmodes/xref.el: (xref--collect-matches-1):
Rewrite to remove some intermediate allocations.
Modest performance improvement.
2021-10-08 18:44:54 +03:00
Glenn Morris
2bc37c14db
Merge from origin/emacs-28
...
af01b674ce
(origin/emacs-28) ; Fix spacing in previous commit
915e044d60
Use the correct label in the warning
6e83a4100a
; * admin/make-tarball.txt: Should configure --with-native...
525602d682
; * etc/TODO (display): Add entry about Default_Ignorables.
65de510c16
; Fix 'restore-buffer-modified-p' doc string typo
9d8202b45e
Add Emacs 27 compatibility hack
89d64fca75
Pacify GCC 10.3 -Wmaybe-uninitialized
bb8ef1aa30
* lisp/tab-bar.el (tab-detach, tab-window-detach): New ali...
7ae70054aa
; * src/composite.h (LGSTRING_FONT): Add comment about its...
1af00e67d6
Include the refcards in the release tarball
3c29fb705c
; * src/Makefile.in (../native-lisp): Make the long recipe...
2021-10-08 07:50:28 -07:00