Fix check for derived modes in display-buffer-reuse-mode-window
* lisp/window.el (display-buffer-reuse-mode-window): Make the check for derived modes actually work (bug#38677).
This commit is contained in:
parent
6996204dd0
commit
40b81f847f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue