unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: ams@gnu.org, emacs-devel@gnu.org
Subject: Re: C-x C-b and C-x C-f bugging about confirmation
Date: Fri, 21 Nov 2008 22:30:08 -0500	[thread overview]
Message-ID: <jwvr654igur.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87r654yj1f.fsf@cyd.mit.edu> (Chong Yidong's message of "Fri, 21 Nov 2008 14:29:32 -0500")

>> In my experience typos are a lot more common than opening a
>> nonexistent file.
> It's a matter of usage patterns.  For myself, this change will probably
> be triggered hundreds or thousands of times for each mistake caught.

As explained to Eli, this is not a problem: you usually know that you're
creating a new file, so you'll just get used to hitting RET RET blindly
in those cases, as a matter of course.

>> (most commonly after a TAB completion which completed less than
>> expected)
> Hitting TAB after completion gives the message "[Sole completion]",
> which tells you that you have what you want.

I can assure you the situation I describe is real, I face it all
the time.  The situation you describe is when you hit TAB to check your
entry before hitting RET.  Maybe some people are patient enough to
do that.  Instead, I hit TAB to complete (not to check) and I hit RET
afterwards without even checking the result of TAB because I mistakenly
presume Emacs's completion can always read my mind.  I know I'm not
alone in this.
Not that it matters to this discussion anyway.

> But it has not been the default from the beginning, and it deviates from
> established rules about how the minibuffer behaves.  One expects RET,
> unlike TAB, to submit the minibuffer input.  (The only time RET doesn't
> do that is in an "error situation"---a minibuffer is expects an exact
> match and you haven't supplied that.)  Hence this double-RET behavior,
> with its cryptic "[Confirm]" prompt, is jarring.

It's a pretty minor difference.  As for [Confirm] being cryptic, we can
change it, of course, I don't care about the actual message, I just
reused the one used in the other similar case where RET needed to
complete the input: nobody complained about that one being cryptic, by
the way ;-)


        Stefan




  parent reply	other threads:[~2008-11-22  3:30 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21 13:33 C-x C-b and C-x C-f bugging about confirmation Alfred M. Szmidt
2008-11-21 14:35 ` Stefan Monnier
2008-11-21 15:46   ` Chong Yidong
2008-11-21 15:51     ` Chong Yidong
2008-11-21 16:08     ` Sam Steingold
2008-11-21 17:07       ` Chong Yidong
2008-11-21 21:23         ` Alan Mackenzie
2008-11-22 16:12           ` Miles Bader
2008-11-21 18:40       ` Eli Zaretskii
2008-11-22  3:23         ` Stefan Monnier
2008-11-22 10:13           ` Eli Zaretskii
2008-11-23  3:39             ` Stefan Monnier
2008-11-23 11:25               ` Eli Zaretskii
2008-11-24  3:08                 ` Stefan Monnier
2008-11-24  7:24                   ` Stephen J. Turnbull
2008-11-24 15:50                     ` Stefan Monnier
2008-11-22 12:18           ` Alfred M. Szmidt
2008-11-22 13:51           ` Ulrich Mueller
2008-11-23  3:50             ` Stefan Monnier
2008-11-22 11:35       ` Alfred M. Szmidt
2008-11-21 18:03     ` Stefan Monnier
2008-11-21 18:51       ` Eli Zaretskii
2008-11-21 19:29       ` Chong Yidong
2008-11-21 23:58         ` Tassilo Horn
2008-11-22  3:30         ` Stefan Monnier [this message]
2008-11-22 10:13           ` Eli Zaretskii
2008-11-22  1:54       ` Miles Bader
2008-11-22  7:08       ` mail
2008-11-22  8:24         ` Miles Bader
2008-11-21 18:37   ` Ted Zlatanov
2008-11-22 11:26   ` Alfred M. Szmidt
2008-11-23  3:49     ` Stefan Monnier
2008-11-23  4:44       ` Chong Yidong
2008-11-23 11:24         ` Romain Francoise
2008-11-23 12:45       ` Juri Linkov
2008-11-23 13:45         ` Miles Bader
2008-11-23 15:27           ` Juri Linkov
2008-11-23 22:17           ` Chong Yidong
2008-11-24  3:18           ` Stefan Monnier
2008-11-24  5:21             ` Chong Yidong
2008-11-24 15:52               ` Stefan Monnier
2008-11-24 19:58                 ` mail
2008-11-25  4:03               ` Miles Bader
2008-11-25 15:21                 ` Stefan Monnier
2008-11-25 20:09                 ` Eli Zaretskii
2008-11-24 11:24       ` Alfred M. Szmidt
2008-11-24 15:56         ` Stefan Monnier
2008-11-24 17:52           ` Alfred M. Szmidt
2008-11-28 18:52             ` Romain Francoise
2008-11-28 19:12               ` Chong Yidong
2008-11-28 21:06               ` Stefan Monnier
2008-11-28 22:27                 ` partial-completion-mode (was: C-x C-b and C-x C-f bugging about confirmation) Romain Francoise
2008-11-29  2:48                   ` partial-completion-mode Stefan Monnier
2008-11-29 19:44                     ` partial-completion-mode Romain Francoise
2008-11-29 20:42                       ` partial-completion-mode Stefan Monnier
2008-12-02 12:39                 ` C-x C-b and C-x C-f bugging about confirmation Klaus Zeitler
2008-12-02 13:05                   ` Tassilo Horn
2008-12-03 12:22                     ` Klaus Zeitler
2008-11-22 11:16 ` Gilaras Drakeson

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=jwvr654igur.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=ams@gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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