GNU bug report logs - #2077
23.0.60; error raised if visit new, empty file foo.jpeg

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Mon, 26 Jan 2009 22:40:04 UTC

Severity: normal

Done: "Drew Adams" <drew.adams <at> oracle.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 2077-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 2077-done <at> debbugs.gnu.org
Subject: Re: 23.0.60; error raised if visit new, empty file foo.jpeg
Date: Tue, 27 Jan 2009 09:54:34 -0500
> emacs -Q
> 
> C-x C-f foo.jpeg
> 
> That raises this error:
> "File mode specification error: (error "Cannot determine image type")"
> 
> I don't think an error should be raised until the buffer is saved.  I
> could be wrong about that.  In any case, the error message should be
> something more appropriate.

The error occurs because Emacs is trying to display the image, and is
unable to do so.  It has nothing to do with saving the buffer.

Note that image-mode does not assume that the file is in jpeg format
based on the file name alone: it examines the file contents as well.  We
could, in principle, replace this error message with a more generic
message, but that would be less helpful for debugging.




This bug report was last modified 16 years and 196 days ago.

Previous Next


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