unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46034: Feature request: add variable for automatically selecting the apropos window
@ 2021-01-22 13:02 SB
  2021-01-23 17:29 ` Juri Linkov
  2022-04-30 19:34 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: SB @ 2021-01-22 13:02 UTC (permalink / raw)
  To: 46034

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".





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46034: Feature request: add variable for automatically selecting the apropos window
  2021-01-22 13:02 bug#46034: Feature request: add variable for automatically selecting the apropos window SB
@ 2021-01-23 17:29 ` Juri Linkov
  2021-01-25 19:04   ` martin rudalics
  2022-04-30 19:34 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 5+ messages in thread
From: Juri Linkov @ 2021-01-23 17:29 UTC (permalink / raw)
  To: SB; +Cc: 46034

> 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)))





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46034: Feature request: add variable for automatically selecting the apropos window
  2021-01-23 17:29 ` Juri Linkov
@ 2021-01-25 19:04   ` martin rudalics
  2021-01-25 20:14     ` Juri Linkov
  0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2021-01-25 19:04 UTC (permalink / raw)
  To: Juri Linkov, SB; +Cc: 46034

 > 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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46034: Feature request: add variable for automatically selecting the apropos window
  2021-01-25 19:04   ` martin rudalics
@ 2021-01-25 20:14     ` Juri Linkov
  0 siblings, 0 replies; 5+ messages in thread
From: Juri Linkov @ 2021-01-25 20:14 UTC (permalink / raw)
  To: martin rudalics; +Cc: 46034, SB

>> 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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46034: Feature request: add variable for automatically selecting the apropos window
  2021-01-22 13:02 bug#46034: Feature request: add variable for automatically selecting the apropos window SB
  2021-01-23 17:29 ` Juri Linkov
@ 2022-04-30 19:34 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-30 19:34 UTC (permalink / raw)
  To: SB; +Cc: 46034

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-30 19:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 13:02 bug#46034: Feature request: add variable for automatically selecting the apropos window SB
2021-01-23 17:29 ` Juri Linkov
2021-01-25 19:04   ` martin rudalics
2021-01-25 20:14     ` Juri Linkov
2022-04-30 19:34 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).