]> git.eshelyaron.com Git - emacs.git/commit
Add xref forward history (bug#38797)
authorMattias Engdegård <mattiase@acm.org>
Tue, 19 Oct 2021 11:26:19 +0000 (13:26 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 25 Oct 2021 15:34:37 +0000 (17:34 +0200)
commit65b34f688c63649a0870dab603c569c1e20007cb
tree2a895dbf3ffcb63fa193659e09962e8b6fdb2068
parent46941bcc2a996dbc771fe4bf027ce1926126c3ce
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.
doc/emacs/maintaining.texi
etc/NEWS
lisp/menu-bar.el
lisp/progmodes/etags.el
lisp/progmodes/xref.el