all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#38677: 26.3; `display-buffer-reuse-mode-window' doesn't check for derived modes
@ 2019-12-19 20:37 Trevor Murphy via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2019-12-20  2:28 ` bug#38677: [PATCH] Fix bug in `display-buffer-reuse-mode-window'. (bug#38677) Trevor Murphy via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Trevor Murphy via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2019-12-19 20:37 UTC (permalink / raw
  To: 38677

The problem is in the middle of the function:

        (let ((mode?
               (with-current-buffer (window-buffer window)
                 (cond ((memq major-mode allowed-modes)
                        'same)
                       ((derived-mode-p allowed-modes) ; <= this line
                        'derived)))))
                        ...)

`allowed-modes' is always a list at this point, but `derived-mode-p'
expects each mode as a separated argument (it takes them with an &rest
parameter).  So this call always fails.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-01 22:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-19 20:37 bug#38677: 26.3; `display-buffer-reuse-mode-window' doesn't check for derived modes Trevor Murphy via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-12-20  2:28 ` bug#38677: [PATCH] Fix bug in `display-buffer-reuse-mode-window'. (bug#38677) Trevor Murphy via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-01 22:31   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.