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

Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
martin rudalics <[email protected]> writes:

> If
>
>      Lisp programs may let-bind it to specify conditional actions for
>      wrapped ‘display-buffer’ calls.
>
> is less ambiguous, let's use that.

+1 from my side, obviously.

> 'display-buffer-default-alist' does _not_ override
> 'display-buffer-alist' [...]

😯 ... ok - I misunderstood that part.  No, the examples in the manual
are fine.  It's only that I never expected these semantics (so didn't
search for any examples 🙁).

Probably because it is so unexpected that something named "...-default"
is let-bound around a call to modify it's behavior.  But the semantics
make sense.

So I don't know, my impression is that having the word "default" in
the name of the variable is not good.  Not because it would be
inappropriate, but because of how most other variables with "default" in
their name are typically used.  I think a different term ("base",
"fallback", ...?) could be better.

BTW, what I did not yet understand is why you must locally modify the
behavior of `occur' in this case, but not for other `occur' invocations.


Thanks,

Michael.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.