1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

Bind switch-to-buffer-obey-display-actions to t

* lisp/progmodes/project.el (project--other-place-command):
Bind switch-to-buffer-obey-display-actions to t, so that
project-other-window-command and friends can affect
project-switch-to-buffer.
This commit is contained in:
Dmitry Gutov 2020-07-27 02:51:39 +03:00
parent b63c5a7efc
commit 7551aff22c

View File

@ -613,6 +613,7 @@ DIRS must contain directory names."
(let* ((key (read-key-sequence-vector nil t))
(place-cmd (lookup-key map key))
(generic-cmd (lookup-key project-prefix-map key))
(switch-to-buffer-obey-display-actions t)
(display-buffer-overriding-action (unless place-cmd action)))
(if-let ((cmd (or place-cmd generic-cmd)))
(call-interactively cmd)