Re: master 8a88f3ed5ae: Add `outline-occur' command and `display-buffer-default-alist' variable

martin rudalics <[email protected]> Tue, 11 Aug 2026 10:10:07 +0200
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
 > Wouldn't `display-buffer-overriding-alist' make
 > `display-buffer-overriding-action' obsolete?  If I understand correctly,
 > the former is a more general form of the latter.  So, the following two
 > snippets would be equivalent:
 >
 >    (let ((display-buffer-overriding-action
 >           '((display-buffer-same-window))))
 >      (display-buffer
 >       (get-buffer-create "*foo*")))
 >
 > vs
 >
 > (let ((display-buffer-overriding-alist
 >         '((t (display-buffer-same-window)))))
 >    (display-buffer
 >     (get-buffer-create "*foo*")))
 >
 > If this variable is added at some point, would it be good to mark
 > `display-buffer-overriding-action' as obsolete to avoid enlarging the
 > precedence list?

The situation is even worse because these two variables would override
each other - IMHO there is no reasonable motivation to give one of them
precedence over the other.

We obviously could have 'display-buffer-overriding-action' accept an
alist as value with the justification that the ACTION argument of
'display-buffer' can be a scalar too.  Would we like it?

martin