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

martin rudalics <[email protected]> Wed, 12 Aug 2026 09:05:41 +0200
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
 > Do you think it's possible to distinguish
 > these two cases in the same variable:
 >
 > 1. existing:
 >     (FUNCTIONS . ALIST)
 > 2. new like in 'display-buffer-alist':
 >     ((CONDITION-1 FUNCTIONS . ALIST)
 >      (CONDITION-2 FUNCTIONS . ALIST)
 >      ...)

I wouldn't even try it.  'proper-list-p' won't handle it for sure.  And
who knows what kind of conditions the future holds for 'buffer-match-p'
in store.  We could reserve a special header, say 'alist', as first
element for the alist case but that's clumsy to explain and write.

So if you insist on needing this, 'display-buffer-overriding-alist' will
probably be it.  But giving it higher precedence than
'display-buffer-overriding-action' does not sound reasonable to me.

martin