* bug#2077: 23.0.60; error raised if visit new, empty file foo.jpeg
@ 2009-01-26 22:32 ` Drew Adams
2009-01-27 15:00 ` bug#2077: marked as done (23.0.60; error raised if visit new, empty file foo.jpeg) Emacs bug Tracking System
2009-01-27 15:55 ` Emacs bug Tracking System
0 siblings, 2 replies; 3+ messages in thread
From: Drew Adams @ 2009-01-26 22:32 UTC (permalink / raw
To: emacs-pretest-bug
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'
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#2077: marked as done (23.0.60; error raised if visit new, empty file foo.jpeg)
2009-01-26 22:32 ` bug#2077: 23.0.60; error raised if visit new, empty file foo.jpeg Drew Adams
@ 2009-01-27 15:00 ` Emacs bug Tracking System
2009-01-27 15:55 ` Emacs bug Tracking System
1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-01-27 15:00 UTC (permalink / raw
To: Chong Yidong
[-- Attachment #1: Type: text/plain, Size: 896 bytes --]
Your message dated Tue, 27 Jan 2009 09:54:34 -0500
with message-id <87zlhcol3p.fsf@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 owner@emacsbugs.donarmstrong.com
immediately.)
--
2077: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2077
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
[-- Attachment #2: Type: message/rfc822, Size: 3327 bytes --]
From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-pretest-bug@gnu.org>
Subject: 23.0.60; error raised if visit new, empty file foo.jpeg
Date: Mon, 26 Jan 2009 14:32:56 -0800
Message-ID: <00c401c98006$0a327d90$c2b22382@us.oracle.com>
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'
[-- Attachment #3: Type: message/rfc822, Size: 1776 bytes --]
From: Chong Yidong <cyd@stupidchicken.com>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 2077-done@emacsbugs.donarmstrong.com
Subject: Re: 23.0.60; error raised if visit new, empty file foo.jpeg
Date: Tue, 27 Jan 2009 09:54:34 -0500
Message-ID: <87zlhcol3p.fsf@cyd.mit.edu>
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#2077: marked as done (23.0.60; error raised if visit new, empty file foo.jpeg)
2009-01-26 22:32 ` bug#2077: 23.0.60; error raised if visit new, empty file foo.jpeg Drew Adams
2009-01-27 15:00 ` bug#2077: marked as done (23.0.60; error raised if visit new, empty file foo.jpeg) Emacs bug Tracking System
@ 2009-01-27 15:55 ` Emacs bug Tracking System
1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-01-27 15:55 UTC (permalink / raw
To: Drew Adams
[-- Attachment #1: Type: text/plain, Size: 914 bytes --]
Your message dated Tue, 27 Jan 2009 07:45:31 -0800
with message-id <002101c98096$4932b740$0200a8c0@us.oracle.com>
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 owner@emacsbugs.donarmstrong.com
immediately.)
--
2077: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=2077
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
[-- Attachment #2: Type: message/rfc822, Size: 3327 bytes --]
From: "Drew Adams" <drew.adams@oracle.com>
To: <emacs-pretest-bug@gnu.org>
Subject: 23.0.60; error raised if visit new, empty file foo.jpeg
Date: Mon, 26 Jan 2009 14:32:56 -0800
Message-ID: <00c401c98006$0a327d90$c2b22382@us.oracle.com>
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'
[-- Attachment #3: Type: message/rfc822, Size: 4170 bytes --]
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@stupidchicken.com>
Cc: <2077-done@emacsbugs.donarmstrong.com>
Subject: RE: 23.0.60; error raised if visit new, empty file foo.jpeg
Date: Tue, 27 Jan 2009 07:45:31 -0800
Message-ID: <002101c98096$4932b740$0200a8c0@us.oracle.com>
> > 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.
Yes, I know.
> It has nothing to do with saving the buffer.
I see. Will Emacs display an unsaved image file buffer? I was thinking that
image mode (or whatever it is) is reserved for existing files. That's why I
mentioned saving.
There are two possible cases here: (1) a new, empty file buffer and (2) an
existing empty file.
> 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.
It should be replaced with a more _specific_ message, saying that (1) the file
does not exist or (2) that the file is empty.
A user who knows nothing of image mode or images and mistakenly types foo.jpeg
instead of foo.jpem (local to his organization) gets an inappropriate message.
What s?he should be told is that (1) image mode is used, by default, for *.jpeg
(`auto-mode-alist'), and (2) the file does not exist (if new) or is empty (if
existing).
Another case is what happens if a user visits a non-empty text file named
foo.jpeg? Again, the buffer should be put in fundamental mode and an error
message raised. The message should say that *.jpeg is associated with image
mode, but this is not a well-formed JPEG file. IOW, the not-valid-PDF message
must make sense also to a user unfamiliar with images.
If you want to give additional info about the invalid JPEG in the case of a
normal bad-JPEG file, then consider giving first such a short message, but
mention that the user can hit some key for more information. When s?he hits that
key, pop up a buffer with the detailed diagnosis for the bad JPEG.
See the discussion for bug #2058.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-27 15:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87zlhcol3p.fsf@cyd.mit.edu>
2009-01-26 22:32 ` bug#2077: 23.0.60; error raised if visit new, empty file foo.jpeg Drew Adams
2009-01-27 15:00 ` bug#2077: marked as done (23.0.60; error raised if visit new, empty file foo.jpeg) Emacs bug Tracking System
2009-01-27 15:55 ` Emacs bug Tracking System
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.