[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A redisplay bug in 22.0.99?

From: James Cloos
Subject: Re: A redisplay bug in 22.0.99?
Date: Fri, 11 May 2007 17:28:25 -0400
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

>>>>> "Andreas" == Andreas Schwab <address@hidden> writes:

Andreas> The problem appears to be that this is actually a PGM.

I thought that was the (entirety) of the problem as well, but simply
renameing the file to cancel.pgm does not let emacs display it

Running pnmnoraw on it, and saving that to cancel.pgm does fix the
file so that emacs can display it.

The file is a correct P5 raw PGM file.  It starts out with:

,----[ head -4 /cvs-src/emacs/etc/images/cancel.pbm ]
| P5
| # CREATOR: The GIMP's PNM Filter Version 1.0
| 24 24
| 255

and the rest of the files is 576 octets, exactly correct for a 24x24
pixel P5 with maxval=255.

Removing the comment does not make a difference.

So emacs must have a bug displaying raw (P5 magic) PGM files that is
not tripped with ascii (P2 magic) PGM files.

Converting it to a proper PBM (P4 magic) also works.  Just run
pgmtopbm from the netpbm package on it.

James Cloos <address@hidden>         OpenPGP: 1024D/ED7DAEA6

reply via email to

[Prev in Thread] Current Thread [Next in Thread]