projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6996204
)
Fix check for derived modes in display-buffer-reuse-mode-window
author
Trevor Murphy
<trevormurphy@google.com>
Thu, 1 Oct 2020 22:30:19 +0000
(
00:30
+0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 1 Oct 2020 22:30:19 +0000
(
00:30
+0200)
* lisp/window.el (display-buffer-reuse-mode-window): Make the
check for derived modes actually work (bug#38677).
lisp/window.el
patch
|
blob
|
history
diff --git
a/lisp/window.el
b/lisp/window.el
index 9aca94d502a8568014ac182f9810376aaf0e0438..5ed7a62bcf6f5a342401614071e696124339ca3a 100644
(file)
--- a/
lisp/window.el
+++ b/
lisp/window.el
@@
-7712,7
+7712,7
@@
indirectly called by the latter."
(with-current-buffer (window-buffer window)
(cond ((memq major-mode allowed-modes)
'same)
- ((derived-mode-p allowed-modes)
+ ((
apply #'
derived-mode-p allowed-modes)
'derived)))))
(when (and mode?
(not (and inhibit-same-window-p