From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#8177: 24.0.50; `find-file' 2nd time for image file - regression Date: Sat, 5 Mar 2011 00:03:51 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299312428 11374 80.91.229.12 (5 Mar 2011 08:07:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2011 08:07:08 +0000 (UTC) To: 8177@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 05 09:07:04 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PvmVz-00047D-NH for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 09:07:04 +0100 Original-Received: from localhost ([127.0.0.1]:38972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvmVy-00084I-Tg for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Mar 2011 03:07:02 -0500 Original-Received: from [140.186.70.92] (port=56241 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvmVq-00082U-UC for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 03:06:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvmVp-0003dZ-1F for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 03:06:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvmVo-0003dV-Ue for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 03:06:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PvmV0-0004wI-Oa; Sat, 05 Mar 2011 03:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Mar 2011 08:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.129931231118925 (code B ref -1); Sat, 05 Mar 2011 08:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Mar 2011 08:05:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvmUB-0004vB-20 for submit@debbugs.gnu.org; Sat, 05 Mar 2011 03:05:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PvmU9-0004uz-6q for submit@debbugs.gnu.org; Sat, 05 Mar 2011 03:05:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvmU3-0003Rp-2I for submit@debbugs.gnu.org; Sat, 05 Mar 2011 03:05:03 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:60801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvmU3-0003Rl-0C for submit@debbugs.gnu.org; Sat, 05 Mar 2011 03:05:03 -0500 Original-Received: from [140.186.70.92] (port=47349 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvmU1-0007eI-T2 for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 03:05:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvmU0-0003QU-RQ for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 03:05:01 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:32852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvmU0-0003QN-MS for bug-gnu-emacs@gnu.org; Sat, 05 Mar 2011 03:05:00 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2584uQo013833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 5 Mar 2011 08:04:57 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p257tQ5p008281 for ; Sat, 5 Mar 2011 08:04:56 GMT Original-Received: from abhmt019.oracle.com by acsmt353.oracle.com with ESMTP id 1111421091299312231; Sat, 05 Mar 2011 00:03:51 -0800 Original-Received: from dradamslap1 (/10.159.51.176) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 05 Mar 2011 00:03:51 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcvbC9zz6x8TXzN9QVa+bN17k3FW/A== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4D71EEA8.00BF,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 05 Mar 2011 03:06:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44646 Archived-At: 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'