Feature request for "apropos.el": add a variable for automatically selecting the apropos window when it is shown. Please add an "apropos-window-select" variable that is analogous to help.el's "help-window-select".
> Feature request for "apropos.el": add a variable for automatically
> selecting the apropos window when it is shown.
>
> Please add an "apropos-window-select" variable that is analogous to
> help.el's "help-window-select".
I don't know why there is this too specific option 'help-window-select'.
It seems there are many other windows that needs to be customized
to select them. Wouldn't it be more general solution to use
display-buffer-alist, maybe with something like:
(add-to-list 'display-buffer-alist '("\\*Help\\*" nil (post-display . select-window)))
> I don't know why there is this too specific option 'help-window-select'. It was added a couple of years before 'display-buffer-alist' was invented. > It seems there are many other windows that needs to be customized > to select them. Wouldn't it be more general solution to use > display-buffer-alist, maybe with something like: > > (add-to-list 'display-buffer-alist '("\\*Help\\*" nil (post-display . select-window))) I'd prefer (add-to-list 'display-buffer-alist '("\\*Help\\*" nil (select-window . t))) but might change my mind as soon as you tell us what other values for post-display you have in mind. martin
>> It seems there are many other windows that needs to be customized
>> to select them. Wouldn't it be more general solution to use
>> display-buffer-alist, maybe with something like:
>>
>> (add-to-list 'display-buffer-alist '("\\*Help\\*" nil (post-display . select-window)))
>
> I'd prefer
>
> (add-to-list 'display-buffer-alist '("\\*Help\\*" nil (select-window . t)))
>
> but might change my mind as soon as you tell us what other values for
> post-display you have in mind.
Maybe 'shrink-window-if-larger-than-buffer' like in bug#45688
or maybe better to use an option like 'after-display-buffer-function',
I'm not sure.
SB <progscriptclone@gmail.com> writes: > Feature request for "apropos.el": add a variable for automatically > selecting the apropos window when it is shown. > > Please add an "apropos-window-select" variable that is analogous to > help.el's "help-window-select". I think it would make sense to make the apropos just respect `help-window-select', so I've done that in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no