all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Do not switch focus to the completions buffer window
Date: Fri, 07 Feb 2014 04:08:52 +0100	[thread overview]
Message-ID: <87r47fpqkb.fsf@web.de> (raw)
In-Reply-To: CACXOS-LtFdn9m6MwPMdUwB+QFwvoxJt=Ypd9fwzEYo272u3j1w@mail.gmail.com

Hi Leo,

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

The *Completions* window is never selected for me.  I tested with Emacs
23 and Emacs 24.  Even better, with the latest Emacs release, the
*Completions* pop up window is even automatically closed after
successful completion.

So I think what you see is caused by your setup, or you use a really old
Emacs version.  Or please give a recipe of what you see starting from
emacs -Q.


Regards,

Michael.




  reply	other threads:[~2014-02-07  3:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06  9:24 Do not switch focus to the completions buffer window Leo Alekseyev
2014-02-07  3:08 ` Michael Heerdegen [this message]
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=87r47fpqkb.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --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.