diff options
author | João Távora <joaotavora@gmail.com> | 2017-10-13 15:13:14 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2017-11-03 16:13:35 +0000 |
commit | 2a973edeacefcabb9fd8024188b7e167f0f9a9b6 (patch) | |
tree | 2e772d100244902f0dee7d0f8c5c053b29a4937c /lisp/emacs-lisp/derived.el | |
parent | 78e9065e9f090ea9c10f89495eab9f8069597b74 (diff) | |
download | emacs-2a973edeacefcabb9fd8024188b7e167f0f9a9b6.tar.gz emacs-2a973edeacefcabb9fd8024188b7e167f0f9a9b6.tar.bz2 emacs-2a973edeacefcabb9fd8024188b7e167f0f9a9b6.zip |
Honor window-switching intents in xref-find-definitions (bug#28814)
When there is more than one xref to jump to, and an *xref* window
appears to help the user choose, the original intent to open a
definition in another window or frame is remembered when the choice to
go to or show a reference is finally made.
* lisp/progmodes/xref.el (xref--show-pos-in-buf): Rewrite.
(xref--original-window-intent): New variable.
(xref--original-window): Rename from xref--window and move up
here for clarity.
(xref--show-pos-in-buf): Rewrite. Don't take SELECT arg here.
(xref--show-location): Handle window selection decision here.
(xref--window): Rename to xref--original-window.
(xref-show-location-at-point): Don't attempt window management here.
(xref--show-xrefs): Ensure display-action intent is saved.
Diffstat (limited to 'lisp/emacs-lisp/derived.el')
0 files changed, 0 insertions, 0 deletions