GNU bug report logs - #16062
24.3; Missing .png file gives poor error message when opened

Previous Next

Package: emacs;

Reported by: Alex Willisson <atw <at> mit.edu>

Date: Thu, 5 Dec 2013 21:32:02 UTC

Severity: minor

Tags: fixed

Found in version 24.3

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jarek Czekalski <jarekczek <at> poczta.onet.pl>
Cc: 16062 <at> debbugs.gnu.org
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
> Date: Fri, 06 Dec 2013 08:57:04 +0100
> From: Jarek Czekalski <jarekczek <at> poczta.onet.pl>
> 
> 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.




This bug report was last modified 4 years and 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.