bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8177: 24.0.50; `find-file' 2nd time for image file - regression


From: Drew Adams
Subject: bug#8177: 24.0.50; `find-file' 2nd time for image file - regression
Date: Sat, 5 Mar 2011 00:03:51 -0800

1. This is a regression; it works fine in Emacs 22 and Emacs 23.
 
M-: (find-file "...foo.jpg")
 
where `...foo.jpg' is an absolute file name of an image file (of a type
that is supported).  The image is displayed - no problem.  Good.
 
Now repeat it:
M-: (find-file "...foo.jpg")
 
This time you get an annoying dialog.  You should just see the image
again.  Similarly, if you hit RET on the file name in Dired - first time
is OK, second time you get sent down the rabbit hole.
 

2. In addition (but this is *not* the main point of this bug report),
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 via email to

[Prev in Thread] Current Thread [Next in Thread]