From: "Eli Zaretskii" <eliz@elta.co.il>
Subject: Re: quitting a completion
Date: Tue, 13 Jan 2004 22:30:06 +0200 [thread overview]
Message-ID: <8011-Tue13Jan2004223005+0200-eliz@elta.co.il> (raw)
In-Reply-To: <uoet8kzfx.fsf@sdm.de> (message from Klaus Berndl on 13 Jan 2004 09:47:14 +0100)
> From: Klaus Berndl <klaus.berndl@sdm.de>
> Newsgroups: gnu.emacs.help
> Date: 13 Jan 2004 09:47:14 +0100
>
> Suppose i hit C-h v and then insert "gnus-" and then hit TAB then the window
> gets splitted (if only one window in current frame) and a *Completion*-buffer
> is offered - well. If i then hit C-g (`keyboard-quit') then the
> *Completion*-buffer and the newly created window go away - well too.
>
> Now my question: Which function is called by Emacs or which mechanism deletes
> this newly created window when quitting such a completion?
The key to finding out the answer to this is to realize that TAB
during completion calls `minibuffer-complete', and the *Completion*
buffer is displayed by `minibuffer-completion-help'. Both are
built-in functions, written in C.
What they do is call an equivalent of `with-output-to-temp-buffer',
which pops up a temporary buffer and takes care of restoring the
window configuration if you type C-g (or in case of any other exit
from completion).
prev parent reply other threads:[~2004-01-13 20:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-13 8:47 quitting a completion Klaus Berndl
2004-01-13 9:07 ` Abi
2004-01-13 15:21 ` Johan Bockgård
2004-01-13 20:30 ` Eli Zaretskii [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8011-Tue13Jan2004223005+0200-eliz@elta.co.il \
--to=eliz@elta.co.il \
/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.
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).