unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: Andreas Schwab <schwab@suse.de>
Cc: Juanma Barranquero <lekktu@gmail.com>,
	Eli Zaretskii <eliz@gnu.org>,
	emacs-devel@gnu.org
Subject: Re: A redisplay bug in 22.0.99?
Date: Fri, 11 May 2007 17:28:25 -0400	[thread overview]
Message-ID: <m3veezaw33.fsf@lugabout.jhcloos.org> (raw)
In-Reply-To: <jehcqj8gvw.fsf@sykes.suse.de> (Andreas Schwab's message of "Fri\, 11 May 2007 18\:27\:47 +0200")

>>>>> "Andreas" == Andreas Schwab <schwab@suse.de> 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
correctly.

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.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6

  reply	other threads:[~2007-05-11 21:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-11 14:41 A redisplay bug in 22.0.99? Juanma Barranquero
2007-05-11 14:49 ` Drew Adams
2007-05-11 15:12 ` Jason Rumney
2007-05-11 16:23   ` Johan Bockgård
2007-05-11 15:42 ` Eli Zaretskii
2007-05-11 15:59   ` Juanma Barranquero
2007-05-11 16:06     ` David Kastrup
2007-05-11 16:11       ` Jason Rumney
2007-05-11 17:36       ` Eli Zaretskii
2007-05-11 17:32     ` Eli Zaretskii
2007-05-11 16:27   ` Andreas Schwab
2007-05-11 21:28     ` James Cloos [this message]
2007-05-11 22:37       ` Glenn Morris
2007-05-11 23:24         ` James Cloos
2007-05-12  4:24         ` Glenn Morris
2007-05-12 13:40           ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3veezaw33.fsf@lugabout.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).