]> git.eshelyaron.com Git - emacs.git/commit
Make Xref commands follow 'display-buffer' customizations
authorDmitry Gutov <dmitry@gutov.dev>
Wed, 27 Nov 2024 01:43:22 +0000 (03:43 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 27 Nov 2024 19:56:26 +0000 (20:56 +0100)
commit99940106b40b1e0ac57b2138db425ea83ace8c7f
tree56eb4e09c80bfb81b4bf42a273a1961b81e7ad99
parentda89c18163c90d941e45daac146c7c1fd2b54934
Make Xref commands follow 'display-buffer' customizations

* lisp/progmodes/xref.el (xref--show-pos-in-buf): Append
'(category . xref-jump)' to display-buffer action argument, when
the target window or frame is not made explicit by the command.
(xref--switch-to-buffer): New function (bug#74361).
Do the switch through 'pop-to-buffer' and use the new category.
(xref-go-back, xref-go-forward, xref-pop-to-location): Use it.
* etc/NEWS: Describe the change.

(cherry picked from commit 0624fe6f8497a677ae354da0a604dbf82e69400a)
etc/NEWS
lisp/progmodes/xref.el