unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33258: inhibit-select-window
@ 2018-11-04 21:17 Juri Linkov
  2018-11-05  9:34 ` martin rudalics
  0 siblings, 1 reply; 9+ messages in thread
From: Juri Linkov @ 2018-11-04 21:17 UTC (permalink / raw)
  To: 33258

Many commands use pop-to-buffer to display a buffer and
select its window by default.

Sometimes it's not desirable to select the displayed window.

One of the many examples is 'C-x v =' (vc-diff) where
the need is only to look at the diffs, but not to operate
on the *vc-diff* buffer in its window.

Currently there is no configurable way for the user
to override the default window selection.

I propose a new alist entry to support such feature.
An example of usage in user's customization:

  (push '("\\*vc-diff\\*" nil
          (inhibit-select-window . t))
        display-buffer-alist)

then pop-to-buffer could check for the alist entry
'inhibit-select-window' and to not select the window
if it's non-nil.

OTOH, when a command uses display-buffer that doesn't select a window,
then the same alist entry with a different value or a new entry e.g.
'(select-window . t)' could be used to force selecting the window.
This could be implemented by using the same code from pop-to-buffer
and adding it to display-buffer functions.





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

end of thread, other threads:[~2018-11-08 21:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-04 21:17 bug#33258: inhibit-select-window Juri Linkov
2018-11-05  9:34 ` martin rudalics
2018-11-05 21:30   ` Juri Linkov
2018-11-06  8:45     ` martin rudalics
2018-11-06 21:59       ` Juri Linkov
2018-11-07  9:22         ` martin rudalics
2018-11-07 21:32           ` Juri Linkov
2018-11-08  8:52             ` martin rudalics
2018-11-08 21:56               ` Juri Linkov

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