Re: New package `outline-occur'

Juri Linkov <[email protected]>
Newsgroups gmane.emacs.devel
Organization LINKOV.NET
Message-ID <[email protected]>
>>> Also overriding 'occur-hook' with 'pop-to-buffer' is not
>>> the right way to customize the buffer display behavior.
>>> Either the command can override with 'display-buffer-overriding-action',
>>> or we can leave the customization to users with 'display-buffer-alist'.
>>
>> I'd like the Occur buffer to pop up by default, so I'll take a look at
>> `display-buffer-overriding-action' and change the code accordingly.
>
> `display-buffer-overriding-action` is not appropriate for defaults
> (since, as the name implies, it *overrides* other settings, incuding
> user settings).
>
> Instead, pass the default ACTION directly to `display/pop-to-buffer`.

The problem is that the call '(display-buffer occur-buf)'
is deeply inside 'occur-1'.  We could add a category to this call
for better customizability.

But still we need a better way for a command to override the
default behavior (popup or not) using some let-bound variable.
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.