unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Do not switch focus to the completions buffer window
@ 2014-02-06  9:24 Leo Alekseyev
  2014-02-07  3:08 ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Alekseyev @ 2014-02-06  9:24 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,
How would I go about preventing *Completions* buffer window from receiving
focus?  I find some value in having it pop-up, but its usability is very
questionable.  Using Tomohiro Matsuyama's popwin, it is very easy to
dismiss the buffer with C-g.  What I want is for it not to even receive
focus.  I tried creating the following piece of advice; the code doesn't
work but it gives you an idea of what I'm after:

(defadvice comint-dynamic-list-filename-completions (around
unfocus-completions-buffer activate)
  (let ((cur-win (selected-window)))
    ad-do-it
    (select-window cur-win)))


Thanks,
--Leo


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

end of thread, other threads:[~2014-02-07  3:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06  9:24 Do not switch focus to the completions buffer window Leo Alekseyev
2014-02-07  3:08 ` Michael Heerdegen
2014-02-07  3:44   ` Drew Adams

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