]> git.eshelyaron.com Git - emacs.git/commit
Support bookmarking Xref results buffers
authorEshel Yaron <me@eshelyaron.com>
Tue, 6 Feb 2024 19:33:53 +0000 (20:33 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 6 Feb 2024 19:51:00 +0000 (20:51 +0100)
commit3856b8946d941a456d4b71e50d08e1341f4d5930
tree2688e5ac1e5317e060d47102ae8284d43a1a5360
parent67bbfec77e54f11515385d12c8cd31b68a7c5f04
Support bookmarking Xref results buffers

* lisp/progmodes/xref.el (bookmark-make-record-default)
(bookmark-make-record, bookmark-prop-get)
(bookmark-handle-bookmark, bookmark-get-rear-context-string)
(bookmark-get-front-context-string): Declare functions.
(xref-backend-context, xref-backend-restore): New generic functions.
(xref--backend, xref--identifier, xref--kind)
(xref--original-buffer, xref--original-point): New local variables.
(xref--show-common-initialize): Set them in Xref results buffer.
(xref-default-bookmark-name-format): New user option.
(xref-bookmark-make-record, xref-bookmark-jump): New functions.
(xref--xref-buffer-mode): Set 'bookmark-make-record-function'.
(xref-fetcher-alist): New variable.
(xref--show-xref-buffer, xref-show-definitions-buffer)
(xref-show-definitions-buffer-at-bottom): Use it.
(xref--read-identifier): Improve error message.
(xref-make-fetcher): Extract from...
(xref--create-fetcher): ...here.

* doc/emacs/maintaining.texi (Xref Commands): Document new feature.

* etc/NEWS: Announce new feature and Xref generic functions.
doc/emacs/maintaining.texi
etc/NEWS
lisp/progmodes/xref.el