From: Leo Alekseyev <dnquark@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Do not switch focus to the completions buffer window
Date: Thu, 6 Feb 2014 01:24:05 -0800 [thread overview]
Message-ID: <CACXOS-LtFdn9m6MwPMdUwB+QFwvoxJt=Ypd9fwzEYo272u3j1w@mail.gmail.com> (raw)
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
next reply other threads:[~2014-02-06 9:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 9:24 Leo Alekseyev [this message]
2014-02-07 3:08 ` Do not switch focus to the completions buffer window Michael Heerdegen
2014-02-07 3:44 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACXOS-LtFdn9m6MwPMdUwB+QFwvoxJt=Ypd9fwzEYo272u3j1w@mail.gmail.com' \
--to=dnquark@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.