]> git.eshelyaron.com Git - emacs.git/commit
Add support for window-local xref history
authorAckerley Tng <ackerleytng@google.com>
Fri, 25 Nov 2022 00:58:33 +0000 (02:58 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 25 Nov 2022 00:58:50 +0000 (02:58 +0200)
commit65f35b7f6f4115291affa754855ad62a697524af
tree9db906a4c79a1fb0ba783a4b473708adac513b13
parente769a8eb4402c58adc355f0b15369e423893aa68
Add support for window-local xref history

* lisp/progmodes/xref.el (xref-history-storage):
New user option (bug#59381).
(xref--make-xref-history): New function.
(xref--history): Use it.
(xref-global-history, xref-window-local-history): New function.
(xref--get-history): New function.
(xref--push-backward, xref--push-forward)
(xref-push-marker-stack, xref-go-back, xref-go-forward)
(xref-clear-marker-stack, xref-marker-stack-empty-p)
(xref-forward-history-empty-p): Use it.
lisp/progmodes/xref.el