bug#81512: [PATCH] Add command `outline-occur'

Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]> Sat, 08 Aug 2026 02:21:52 +0200
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Juri Linkov <[email protected]> writes:

> The examples are nice, thanks.  And thanks Roi for the patch, now
> pushed.

I have some questions or remarks about the new variable
`display-buffer-default-alist' you have added, about its semantics and
documentation.  I have not been following this thread, I apologize if I
miss something important.

First, the name: this variable seems to be intended to override some
(default) behavior; it's binding has one of the highest priorities.
This means that it's on the other end than variables that are typically
named "-default", which are considered with lowest priority.  Unless I'm
missing something, the name is confusing and not consistent with our
typical nomenclature.

Second: the added documentation says that this is a variable "which Lisp
programs may let-bind to specify conditional actions for nested
`display-buffer' calls."  I don't understand the connection to nested
calls here.  When at all is `display-buffer' been called recursively?
And in such a case, which variable is then crucial for which call of
`display-buffer'?  Is the outer or inner call ignoring one the variables?

Finally, it is not so nice to see how many variables we now have to
control or override the behavior of `display-buffer'.  I wonder whether
the design we have is really a good one, or if we have redundant
variables now.


Michael.