From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16062: [SPAM] bug#16062: 24.3; Missing .png file gives poor error message when opened Date: Fri, 06 Dec 2013 10:38:55 +0200 Message-ID: <83vbz21ihs.fsf@gnu.org> References: <834n6m30rv.fsf@gnu.org> <52A18350.8090108@poczta.onet.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1386319216 15136 80.91.229.3 (6 Dec 2013 08:40:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2013 08:40:16 +0000 (UTC) Cc: 16062@debbugs.gnu.org To: Jarek Czekalski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 06 09:40:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VoqxQ-0005db-3U for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 09:40:20 +0100 Original-Received: from localhost ([::1]:57857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoqxP-0003uK-Mn for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 03:40:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoqxG-0003u9-QL for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 03:40:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Voqx9-0006qn-FQ for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 03:40:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voqx9-0006qS-Cs for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 03:40:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Voqx8-0001Yv-TY for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 03:40:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2013 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16062 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16062-submit@debbugs.gnu.org id=B16062.13863191535918 (code B ref 16062); Fri, 06 Dec 2013 08:40:02 +0000 Original-Received: (at 16062) by debbugs.gnu.org; 6 Dec 2013 08:39:13 +0000 Original-Received: from localhost ([127.0.0.1]:32962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoqwK-0001XO-Sl for submit@debbugs.gnu.org; Fri, 06 Dec 2013 03:39:13 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:56122) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoqwH-0001XE-A0 for 16062@debbugs.gnu.org; Fri, 06 Dec 2013 03:39:10 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MXD00E00MKT2700@a-mtaout23.012.net.il> for 16062@debbugs.gnu.org; Fri, 06 Dec 2013 10:39:07 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MXD00DYFMP6P770@a-mtaout23.012.net.il>; Fri, 06 Dec 2013 10:39:07 +0200 (IST) In-reply-to: <52A18350.8090108@poczta.onet.pl> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81502 Archived-At: > Date: Fri, 06 Dec 2013 08:57:04 +0100 > From: Jarek Czekalski > > W dniu 2013-12-06 08:18, Eli Zaretskii pisze: > > How should Emacs know whether you intend to visit an existing file or > > create a new one? > > It seems so easy to determine what is the intention of visiting a png > file. Is it? What if I come up with an Emacs mode that lets users _create_ PNG files? > But if Emacs admin does not know that, then I assume I make some > silly newbie mistake and it is in fact impossible. I didn't ask the (slightly provocative) question to indicate that I consider your request silly. I asked it to put the issue in perspective. I agree it would be good to make the error message more clear in this case, I just suggest that we think about the possible alternatives to "File does not exist", because we don't show such a message when users visit non-existent files. IOW, I submit that the problem is with image-mode throwing an error in this case, instead of showing "(New file)" in the echo area, just like we do with any non-existing file. We could also turn image-mode off in such a case, although the correctness of that is less clear to me.