GNU bug report logs -
#2077
23.0.60; error raised if visit new, empty file foo.jpeg
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 27 Jan 2009 09:54:34 -0500
with message-id <87zlhcol3p.fsf <at> cyd.mit.edu>
and subject line Re: 23.0.60; error raised if visit new, empty file foo.jpeg
has caused the Emacs bug report #2077,
regarding 23.0.60; error raised if visit new, empty file foo.jpeg
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)
--
2077: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2077
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
This is similar to bug #2058, but the error raised here is much less
bewildering. ;-)
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.
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2009-01-04 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
[Message part 3 (message/rfc822, inline)]
> 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.