Gnus development mailing list
 help / color / mirror / Atom feed
* xbm in XEmacs?
@ 1999-03-02 17:22 Lars Magne Ingebrigtsen
  1999-03-03 13:13 ` Paul Stodghill
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-03-02 17:22 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

As most of the XEmacs-using population should see, this message makes
Gnus bug out.  And the reason is that make-glyph is just called with
the data of the xbm buffer instead of a list with width, height, and
the data.  What I'm wondering is -- why?  Why doesn't the instantiator 
just parse the xbm?


[-- Attachment #2: This will make your Gnus bug out! --]
[-- Type: image/xbm, Size: 1880 bytes --]

[-- Attachment #3: Type: text/plain, Size: 102 bytes --]

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-02 17:22 xbm in XEmacs? Lars Magne Ingebrigtsen
@ 1999-03-03 13:13 ` Paul Stodghill
  1999-03-03 14:13   ` Didier Verna
  0 siblings, 1 reply; 15+ messages in thread
From: Paul Stodghill @ 1999-03-03 13:13 UTC (permalink / raw)


The image displayed correctly here.

(list
 emacs-version
 gnus-version
 mime-viewer/version)
=> ("20.4 \"Emerald\" XEmacs  Lucid" "Gnus v5.6.45" "7.83")



> [1  <text/plain>]
> As most of the XEmacs-using population should see, this message makes
> Gnus bug out.  And the reason is that make-glyph is just called with
> the data of the xbm buffer instead of a list with width, height, and
> the data.  What I'm wondering is -- why?  Why doesn't the instantiator 
> just parse the xbm?
> 
> [2 This will make your Gnus bug out! <image/xbm>]
> 
> [3  <text/plain>]
> -- 
> (domestic pets only, the antidote for overdose, milk.)
>   larsi@gnus.org * Lars Magne Ingebrigtsen

-- 
Paul Stodghill <stodghil@cs.cornell.edu>
Dept. of Computer Science, Upson Hall, Ithaca, NY  14853
Phone: 607-254-8838   FAX: 607-255-4428
http://www.cs.cornell.edu/stodghil/


--IAA02430.920466788/simon.cs.cornell.edu--




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-03 13:13 ` Paul Stodghill
@ 1999-03-03 14:13   ` Didier Verna
  1999-03-03 14:18     ` Paul Stodghill
  1999-03-03 14:27     ` Lee Willis
  0 siblings, 2 replies; 15+ messages in thread
From: Didier Verna @ 1999-03-03 14:13 UTC (permalink / raw)
  Cc: ding

Paul Stodghill writes:

Paul> The image displayed correctly here. (list emacs-version gnus-version
Paul> mime-viewer/version) => ("20.4 \"Emerald\" XEmacs Lucid" "Gnus v5.6.45"
Paul> "7.83")

        Then something has been broken in 21.2. Could somebody with a 21.0
around check for the presence of this problem ? 


-- 
    /     /   _   _       Didier Verna        http://www.inf.enst.fr/~verna/
 - / / - / / /_/ /      E.N.S.T. INF C201.1      mailto:verna@inf.enst.fr
/_/ / /_/ / /__ /        46 rue Barrault        Tel.   (33) 01 45 81 73 46
                      75634 Paris  cedex 13     Fax.   (33) 01 45 81 31 19


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-03 14:13   ` Didier Verna
@ 1999-03-03 14:18     ` Paul Stodghill
  1999-03-03 14:27     ` Lee Willis
  1 sibling, 0 replies; 15+ messages in thread
From: Paul Stodghill @ 1999-03-03 14:18 UTC (permalink / raw)


>>>>> "Didier" == Didier Verna <verna@inf.enst.fr> writes:

    Didier> Then something has been broken in 21.2. Could somebody with a 21.0
    Didier> around check for the presence of this problem ?

21.0 seems to display the xbm correctly, too.

(list
 emacs-version
 gnus-version
 mime-viewer/version)
=> ("21.0 \"Pyrenean63\" XEmacs Lucid (beta63)" "Gnus v5.6.45" "7.83")



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-03 14:13   ` Didier Verna
  1999-03-03 14:18     ` Paul Stodghill
@ 1999-03-03 14:27     ` Lee Willis
  1999-03-03 14:43       ` Paul Stodghill
  1 sibling, 1 reply; 15+ messages in thread
From: Lee Willis @ 1999-03-03 14:27 UTC (permalink / raw)
  Cc: ding

Paul Stodghill <stodghil@CS.Cornell.EDU> writes:

> >>>>> "Didier" == Didier Verna <verna@inf.enst.fr> writes:
> 
>     Didier> Then something has been broken in 21.2. Could somebody with a 21.0
>     Didier> around check for the presence of this problem ?
> 
> 21.0 seems to display the xbm correctly, too.
> 
> (list
>  emacs-version
>  gnus-version
>  mime-viewer/version)
> => ("21.0 \"Pyrenean63\" XEmacs Lucid (beta63)" "Gnus v5.6.45" "7.83")

I think Lars' originl intention was the *p*gnus was broken with respect
to displaying the image inline. Paul is using 5.6.45 and some external
mime program (Well that's what it looks like to me anyway ...)

Lee.
-- 
I was doing object-oriented assembly at 1 year old ...  
For some reason my mom insists on calling it "Playing with blocks"


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-03 14:27     ` Lee Willis
@ 1999-03-03 14:43       ` Paul Stodghill
  1999-03-03 15:18         ` Hrvoje Niksic
  0 siblings, 1 reply; 15+ messages in thread
From: Paul Stodghill @ 1999-03-03 14:43 UTC (permalink / raw)
  Cc: ding

>>>>> "Lee" == Lee Willis <lee@gbdirect.co.uk> writes:

    Lee> I think Lars' originl intention was the *p*gnus was broken with
    Lee> respect to displaying the image inline. Paul is using 5.6.45 and some
    Lee> external mime program (Well that's what it looks like to me anyway
    Lee> ...)

I'm using GNUS 5.6.45 + TM, yes.

Sorry for the confusion. I read Lars's message to mean that something in
XEmacs was broken...

-- 
Paul Stodghill <stodghil@cs.cornell.edu>
Dept. of Computer Science, Upson Hall, Ithaca, NY  14853
Phone: 607-254-8838   FAX: 607-255-4428
http://www.cs.cornell.edu/stodghil/



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-03 14:43       ` Paul Stodghill
@ 1999-03-03 15:18         ` Hrvoje Niksic
  1999-03-04  1:27           ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: Hrvoje Niksic @ 1999-03-03 15:18 UTC (permalink / raw)


Paul Stodghill <stodghil@CS.Cornell.EDU> writes:

> >>>>> "Lee" == Lee Willis <lee@gbdirect.co.uk> writes:
> 
>     Lee> I think Lars' originl intention was the *p*gnus was broken with
>     Lee> respect to displaying the image inline. Paul is using 5.6.45 and some
>     Lee> external mime program (Well that's what it looks like to me anyway
>     Lee> ...)
> 
> I'm using GNUS 5.6.45 + TM, yes.

Then Gnus should probably use TM's code for rendering xbm's.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-03 15:18         ` Hrvoje Niksic
@ 1999-03-04  1:27           ` Lars Magne Ingebrigtsen
  1999-03-04  2:49             ` William M. Perry
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-03-04  1:27 UTC (permalink / raw)


Hrvoje Niksic <hniksic@srce.hr> writes:

> Then Gnus should probably use TM's code for rendering xbm's.

TM does this:

       (defun bitmap-insert-xbm-file (file)
	 (let ((gl (make-glyph (list (cons 'x file))))
	       (e (make-extent (point) (point)))
	       )
	   (set-extent-end-glyph e gl)
	   ))

But I don't want to create a temporary file...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-04  1:27           ` Lars Magne Ingebrigtsen
@ 1999-03-04  2:49             ` William M. Perry
  1999-03-05 19:55               ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: William M. Perry @ 1999-03-04  2:49 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Hrvoje Niksic <hniksic@srce.hr> writes:
> 
> > Then Gnus should probably use TM's code for rendering xbm's.
> 
> TM does this:
> 
>        (defun bitmap-insert-xbm-file (file)
> 	 (let ((gl (make-glyph (list (cons 'x file))))
> 	       (e (make-extent (point) (point)))
> 	       )
> 	   (set-extent-end-glyph e gl)
> 	   ))
> 
> But I don't want to create a temporary file...

That's pretty much your only bet unless you want to parse the XBM yourself
and convert it to binary garbage.  Take a look at xbm-button.el if you want 
to see the pain you are in for. :)

-bp


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-04  2:49             ` William M. Perry
@ 1999-03-05 19:55               ` Lars Magne Ingebrigtsen
  1999-03-05 21:15                 ` Hrvoje Niksic
  0 siblings, 1 reply; 15+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-03-05 19:55 UTC (permalink / raw)


wmperry@aventail.com (William M. Perry) writes:

> > TM does this:
> > 
> >        (defun bitmap-insert-xbm-file (file)
> > 	 (let ((gl (make-glyph (list (cons 'x file))))
> > 	       (e (make-extent (point) (point)))
> > 	       )
> > 	   (set-extent-end-glyph e gl)
> > 	   ))
> > 
> > But I don't want to create a temporary file...
> 
> That's pretty much your only bet unless you want to parse the XBM yourself
> and convert it to binary garbage.  Take a look at xbm-button.el if you want 
> to see the pain you are in for. :)

Good lord!  *choke*

Er.  Perhaps I can do the temporary file thing instead.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-05 19:55               ` Lars Magne Ingebrigtsen
@ 1999-03-05 21:15                 ` Hrvoje Niksic
  1999-03-06  0:30                   ` William M. Perry
  1999-03-06 19:15                   ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 15+ messages in thread
From: Hrvoje Niksic @ 1999-03-05 21:15 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> > That's pretty much your only bet unless you want to parse the XBM
> > yourself and convert it to binary garbage.  Take a look at
> > xbm-button.el if you want to see the pain you are in for. :)
> 
> Good lord!  *choke*

I don't understand Bill and you.

1) The really hairy part of xbm-button is the part that defines the
   font used in the buttons.

2) xbm-button is used to *create* XBM's, not to parse them, so I don't 
   see how it is relevant in this discussion.

> Er.  Perhaps I can do the temporary file thing instead.  :-)

Yes.  I'll look at the source and see how hard it is to fix it to
support the :data attribute correctly.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-05 21:15                 ` Hrvoje Niksic
@ 1999-03-06  0:30                   ` William M. Perry
  1999-03-06 19:15                   ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 15+ messages in thread
From: William M. Perry @ 1999-03-06  0:30 UTC (permalink / raw)
  Cc: ding

Hrvoje Niksic <hniksic@srce.hr> writes:

> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> 
> > > That's pretty much your only bet unless you want to parse the XBM
> > > yourself and convert it to binary garbage.  Take a look at
> > > xbm-button.el if you want to see the pain you are in for. :)
> > 
> > Good lord!  *choke*
> 
> I don't understand Bill and you.
> 
> 1) The really hairy part of xbm-button is the part that defines the
>    font used in the buttons.
> 
> 2) xbm-button is used to *create* XBM's, not to parse them, so I don't 
>    see how it is relevant in this discussion.

Well, it was just an example to show how ugly the raw xbm stuff that XEmacs 
currently supports is. :)

-Bill P.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-05 21:15                 ` Hrvoje Niksic
  1999-03-06  0:30                   ` William M. Perry
@ 1999-03-06 19:15                   ` Lars Magne Ingebrigtsen
  1999-03-07 13:25                     ` Hrvoje Niksic
  1 sibling, 1 reply; 15+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-03-06 19:15 UTC (permalink / raw)


Hrvoje Niksic <hniksic@srce.hr> writes:

> Yes.  I'll look at the source and see how hard it is to fix it to
> support the :data attribute correctly.

Well, there is :data support, but the :data required is a list of
height, width and raw data, which is a lot of work to parse from the
xbm.  If xbm specifiers allowed a string :data, that would be nice.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-06 19:15                   ` Lars Magne Ingebrigtsen
@ 1999-03-07 13:25                     ` Hrvoje Niksic
  1999-03-14 15:51                       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 15+ messages in thread
From: Hrvoje Niksic @ 1999-03-07 13:25 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Hrvoje Niksic <hniksic@srce.hr> writes:
> 
> > Yes.  I'll look at the source and see how hard it is to fix it to
> > support the :data attribute correctly.
> 
> Well, there is :data support, but the :data required is a list of
> height, width and raw data, which is a lot of work to parse from the
> xbm.

That's what I mean by fixing it -- if it's a single string, then
XEmacs should parse it the same way that :file parses the contents of
the file.  This is both backward-compatible, and compatible with what
the other image formats support.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: xbm in XEmacs?
  1999-03-07 13:25                     ` Hrvoje Niksic
@ 1999-03-14 15:51                       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 15+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-03-14 15:51 UTC (permalink / raw)


Hrvoje Niksic <hniksic@srce.hr> writes:

> That's what I mean by fixing it -- if it's a single string, then
> XEmacs should parse it the same way that :file parses the contents of
> the file.  This is both backward-compatible, and compatible with what
> the other image formats support.

Yes, that would be very nice.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~1999-03-14 15:51 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-02 17:22 xbm in XEmacs? Lars Magne Ingebrigtsen
1999-03-03 13:13 ` Paul Stodghill
1999-03-03 14:13   ` Didier Verna
1999-03-03 14:18     ` Paul Stodghill
1999-03-03 14:27     ` Lee Willis
1999-03-03 14:43       ` Paul Stodghill
1999-03-03 15:18         ` Hrvoje Niksic
1999-03-04  1:27           ` Lars Magne Ingebrigtsen
1999-03-04  2:49             ` William M. Perry
1999-03-05 19:55               ` Lars Magne Ingebrigtsen
1999-03-05 21:15                 ` Hrvoje Niksic
1999-03-06  0:30                   ` William M. Perry
1999-03-06 19:15                   ` Lars Magne Ingebrigtsen
1999-03-07 13:25                     ` Hrvoje Niksic
1999-03-14 15:51                       ` Lars Magne Ingebrigtsen

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 NNTP newsgroup(s).