From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: martin rudalics <rudalics@gmx.at>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: quit-window is broken
Date: Tue, 18 Nov 2008 11:01:34 -0500 [thread overview]
Message-ID: <jwvfxlpkowl.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4921F3AA.6000508@gmx.at> (martin rudalics's message of "Mon, 17 Nov 2008 23:43:54 +0100")
>>> it would help if there were a user option switch-to-buffer-create-new-buffer
>>> with values t (like it does not), nil (signal an error) and 'ask (ask for
>>> a confirmation).
>>
>> I'd rather have it use the same new behavior as C-x C-f: if you type in
>> a non-existing buffer name, the completion requests confirmation.
> C-x C-f is guided by an option - `find-file-confirm-nonexistent-file'.
Right. I think this customization variable is an instance of "Emacs at
its worst", so I'd be happy to throw it away. But we could also just
rename this variable and reuse it in read-buffer-to-switch.
> BTW, we still have that
> ;; FIXME: This behavior is carried over from the previous C version
> ;; of pop-to-buffer, but really we should use just
> ;; `get-buffer' here.
> issue in `pop-to-buffer'.
AFAIK, this shouldn't affect the user because pop-to-buffer is not an
interactive function.
Stefan
PS: Or we could also add a gzillion foo-confirm-nonexistent-bar
variables for all the places where such a confirmation feature would
come in handy and some user gets annoyed because she occasionally needs
to press RET twice rather than once.
next prev parent reply other threads:[~2008-11-18 16:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-17 15:22 quit-window is broken Sam Steingold
2008-11-17 16:04 ` martin rudalics
2008-11-17 16:11 ` Sam Steingold
2008-11-17 16:17 ` martin rudalics
2008-11-17 18:55 ` Sam Steingold
2008-11-17 19:15 ` martin rudalics
2008-11-17 20:43 ` Sam Steingold
2008-11-17 21:59 ` Stefan Monnier
2008-11-17 22:43 ` martin rudalics
2008-11-18 16:01 ` Stefan Monnier [this message]
2008-11-18 16:33 ` Drew Adams
2008-11-18 17:03 ` Stefan Monnier
2008-11-18 17:36 ` Drew Adams
2008-11-18 21:30 ` Stefan Monnier
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=jwvfxlpkowl.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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.