all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 8180@debbugs.gnu.org
Subject: bug#8180: 24.0.50; verbose, confusing y-or-n-p prompts in `find-file-no-select'
Date: Sat, 5 Mar 2011 07:16:35 -0800	[thread overview]
Message-ID: <435FEA4267C54CB2B558397723E571FE@us.oracle.com> (raw)

There are several `y-or-n-p' prompts in `find-file-no-select' that are
very long (e.g. 6 lines!) and confusing.  Some other (alternative)
user interaction should be found for this.  Either just a short prompt
or, if it is important to convey some background info, then also pop
up an informative window for that.  But do not try to provide such
info in the prompt.
 
This was orginally part of bug #8177.  Eli correctly suggested a
separate bug report for it.  Given the other problem reported in #8177,
these prompts were being seen frequently.  Normally they are seldom
seen, which is probably why this has been broken since Emacs 22.
 
The rest of this bug description is taken from #8177.

 
The annoying dialog you get uses multiple lines of text (6!) to prompt
in the minibuffer (or in a popup, depending on how you invoke the
function) for a y-or-n answer.  The prompt text is *far* too long and
pretty much incomprehensible to an average user.  This is the `y-or-n-p'
prompt (including its line breaks):
 
"The file maybe-a-very-long-file-name.jpg is already visited literally,
meaning no coding system decoding, format conversion, or local variables.
You have asked to visit it normally,
but Emacs can only visit a file in one way at a time.
 
Do you want to revisit the file normally now? (y or n) "
 
That is _ridiculously_ long and confusing.  It is horribly user
unfriendly.  `find-file-noselect' is now filled to the gills with such
gobbledygook prompts, each more twisted and verbose than the next.
 
It's hard to believe that we have been prompting users this way since
Emacs 22 (the prompts for this are much shorter in Emacs 21).
Fortunately, these prompts not encountered very often.
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-02-28 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 






             reply	other threads:[~2011-03-05 15:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 15:16 Drew Adams [this message]
2011-03-06  0:12 ` bug#8180: 24.0.50; verbose, confusing y-or-n-p prompts in `find-file-no-select' Chong Yidong
2016-04-28 10:14 ` Lars Ingebrigtsen
2016-04-28 13:41   ` Drew Adams
2016-05-01 17:59 ` Lars Ingebrigtsen
2016-05-01 18:14   ` Eli Zaretskii

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=435FEA4267C54CB2B558397723E571FE@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=8180@debbugs.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.