Re: master 8a88f3ed5ae: Add `outline-occur' command and `display-buffer-default-alist' variable
Roi Martin <[email protected]> Tue, 11 Aug 2026 02:53:31 +0200
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
Juri Linkov <[email protected]> writes: >>> Thus we need a new variable like 'display-buffer-overriding-action', >>> but with both condition and action like in 'display-buffer-alist'. >>> So the complete precedence should look like this: >>> >>> • The variable ‘display-buffer-overriding-action’. >>> • The variable ‘display-buffer-overriding-alist’. NEW! >>> • The user option ‘display-buffer-alist’. >>> • The variable ‘display-buffer-default-alist’. >>> • The ACTION argument. >> >> I don't think it is clear to me what we are solving, if we are keeping >> without-local-variable-queries. In that case we might as well just keep >> display-buffer-overriding-action? > > Indeed, no need to replace 'display-buffer-overriding-action' here, > since it should prevent all possible windows from being displayed. > A new 'display-buffer-overriding-alist' might be required in other cases > where a known window category should be disabled selectively. 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? Roi