Gnus development mailing list
 help / color / mirror / Atom feed
* void function make-annotation
@ 1999-03-26 21:55 Alan Shutko
  1999-03-28 17:24 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Shutko @ 1999-03-26 21:55 UTC (permalink / raw)


I got a mail with an image/x-xbitmap, and mime bombed out with this
backtrace.  This is 

Pterodactyl Gnus v0.80
GNU Emacs 20.3.6.1 (alphaev5-dec-osf4.0e, X toolkit)
 of Wed Mar  3 1999 on slosf6

I can't find the make-annotation function anywhere... is this an
XEmacs thing?

Signaling: (void-function make-annotation)
  make-annotation(nil nil text)
  mm-inline-image((#<buffer  *mm*<3>> ("image/x-xbitmap" (name . "ui_route_terminals.ubm")) 7bit nil ("inline" (filename . "ui_route_terminals.ubm")) nil nil nil))
  mm-display-inline((#<buffer  *mm*<3>> ("image/x-xbitmap" (name . "ui_route_terminals.ubm")) 7bit nil ("inline" (filename . "ui_route_terminals.ubm")) nil nil nil))
  mm-display-part((#<buffer  *mm*<3>> ("image/x-xbitmap" (name . "ui_route_terminals.ubm")) 7bit nil ("inline" (filename . "ui_route_terminals.ubm")) nil nil nil) t)
  byte-code("\bƒ\x17
  gnus-mime-display-single((#<buffer  *mm*<3>> ("image/x-xbitmap" (name . "ui_route_terminals.ubm")) 7bit nil ("inline" (filename . "ui_route_terminals.ubm")) nil nil nil))
  gnus-mime-display-part((#<buffer  *mm*<3>> ("image/x-xbitmap" (name . "ui_route_terminals.ubm")) 7bit nil ("inline" (filename . "ui_route_terminals.ubm")) nil nil nil))
  mapcar(gnus-mime-display-part ((#<buffer  *mm*> ("text/plain" ...) 7bit (lambda nil ...) nil nil nil nil) (#<buffer  *mm*<2>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<3>> ("image/x-xbitmap" ...) 7bit nil ("inline" ...) nil nil nil) (#<buffer  *mm*<4>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<5>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<6>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<7>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil)))
  gnus-mime-display-mixed(((#<buffer  *mm*> ("text/plain" ...) 7bit (lambda nil ...) nil nil nil nil) (#<buffer  *mm*<2>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<3>> ("image/x-xbitmap" ...) 7bit nil ("inline" ...) nil nil nil) (#<buffer  *mm*<4>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<5>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<6>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<7>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil)))
  gnus-mime-display-part(("multipart/mixed" (#<buffer  *mm*> ("text/plain" ...) 7bit (lambda nil ...) nil nil nil nil) (#<buffer  *mm*<2>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<3>> ("image/x-xbitmap" ...) 7bit nil ("inline" ...) nil nil nil) (#<buffer  *mm*<4>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<5>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<6>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil) (#<buffer  *mm*<7>> ("image/x-ms-bmp" ...) base64 nil ("inline" ...) nil nil nil)))
  gnus-display-mime()
  gnus-article-prepare-display()
  gnus-article-prepare(781 nil)
  gnus-summary-display-article(781 nil)
  gnus-summary-select-article(nil force)
  gnus-summary-show-article(nil)
  call-interactively(gnus-summary-show-article)


-- 
Alan Shutko <ats@acm.org> - By consent of the corrupted
You will become rich and famous unless you don't.


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

* Re: void function make-annotation
  1999-03-26 21:55 void function make-annotation Alan Shutko
@ 1999-03-28 17:24 ` Lars Magne Ingebrigtsen
  1999-03-28 18:23   ` Alan Shutko
  0 siblings, 1 reply; 13+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-03-28 17:24 UTC (permalink / raw)


Alan Shutko <ats@acm.org> writes:

> I can't find the make-annotation function anywhere... is this an
> XEmacs thing?

Yes.

> Signaling: (void-function make-annotation)
>   make-annotation(nil nil text)
>   mm-inline-image((#<buffer  *mm*<3>> ("image/x-xbitmap" (name . "ui_route_terminals.ubm")) 7bit nil ("inline" (filename . "ui_route_terminals.ubm")) nil nil nil))

This should only happen if

(and window-system
     (fboundp 'device-type)
     (eq (device-type) 'x))

evaluates to t.  Is that the case for you?

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


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

* Re: void function make-annotation
  1999-03-28 17:24 ` Lars Magne Ingebrigtsen
@ 1999-03-28 18:23   ` Alan Shutko
  1999-04-02 13:43     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Shutko @ 1999-03-28 18:23 UTC (permalink / raw)


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

> This should only happen if
> [...]
> evaluates to t.  Is that the case for you?

Yup... it looks like W3's devices.el defines device-type on Emacs.

-- 
Alan Shutko <ats@acm.org> - By consent of the corrupted
Skydivers are good till the last drop.


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

* Re: void function make-annotation
  1999-03-28 18:23   ` Alan Shutko
@ 1999-04-02 13:43     ` Lars Magne Ingebrigtsen
  1999-04-02 18:08       ` Kim-Minh Kaplan
                         ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-04-02 13:43 UTC (permalink / raw)


Alan Shutko <ats@acm.org> writes:

> > This should only happen if
> > [...]
> > evaluates to t.  Is that the case for you?
> 
> Yup... it looks like W3's devices.el defines device-type on Emacs.

Ok; then we should check something else to see whether xbms can be
displayed.

(featurep 'xbm)
=> nil

even if XEmacs can do xbms, so what is the proper test?

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


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

* Re: void function make-annotation
  1999-04-02 13:43     ` Lars Magne Ingebrigtsen
@ 1999-04-02 18:08       ` Kim-Minh Kaplan
  1999-04-05 20:27       ` Colin Rafferty
  1999-04-13  7:00       ` Hrvoje Niksic
  2 siblings, 0 replies; 13+ messages in thread
From: Kim-Minh Kaplan @ 1999-04-02 18:08 UTC (permalink / raw)



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

> Alan Shutko <ats@acm.org> writes:
> 
> > Yup... it looks like W3's devices.el defines device-type on Emacs.
> 
> Ok; then we should check something else to see whether xbms can be
> displayed.
> 
> (featurep 'xbm)
> => nil
> 
> even if XEmacs can do xbms, so what is the proper test?

I think

    (and (featurep 'x)
         (fboundp 'device-type
         (eq (device-type) 'x))

should be sufficient...

Kim-Minh.
.



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

* Re: void function make-annotation
  1999-04-02 13:43     ` Lars Magne Ingebrigtsen
  1999-04-02 18:08       ` Kim-Minh Kaplan
@ 1999-04-05 20:27       ` Colin Rafferty
  1999-04-13  7:00       ` Hrvoje Niksic
  2 siblings, 0 replies; 13+ messages in thread
From: Colin Rafferty @ 1999-04-05 20:27 UTC (permalink / raw)


Lars Magne Ingebrigtsen writes:

> Ok; then we should check something else to see whether xbms can be
> displayed.

> (featurep 'xbm)
> => nil

> even if XEmacs can do xbms, so what is the proper test?

(featurep 'xpm)

I think.

-- 
Colin


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

* Re: void function make-annotation
  1999-04-02 13:43     ` Lars Magne Ingebrigtsen
  1999-04-02 18:08       ` Kim-Minh Kaplan
  1999-04-05 20:27       ` Colin Rafferty
@ 1999-04-13  7:00       ` Hrvoje Niksic
  1999-04-13 13:58         ` Colin Rafferty
  1999-04-17  6:06         ` Lars Magne Ingebrigtsen
  2 siblings, 2 replies; 13+ messages in thread
From: Hrvoje Niksic @ 1999-04-13  7:00 UTC (permalink / raw)


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

> Ok; then we should check something else to see whether xbms can be
> displayed.
> 
> (featurep 'xbm)
> => nil
> 
> even if XEmacs can do xbms, so what is the proper test?

What XEmacs is that?  (featurep 'xbm) evaluates to t for me.  You
could do (featurep 'x), but XBMs can also be displayed in lateish MS
Windows XEmacsen.  I'm not sure if it's possible to compile XEmacs
without XBM support, but with X support.  If not, then this might be
the correct test:

    (or (featurep 'x)
        (featurep 'xbm))

Oh yes, you could also test it with this:

    (valid-image-instantiator-format-p 'xbm)

...which should reliably return t on all XEmacsen able to display an
XBM.



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

* Re: void function make-annotation
  1999-04-13  7:00       ` Hrvoje Niksic
@ 1999-04-13 13:58         ` Colin Rafferty
  1999-04-13 15:01           ` Hrvoje Niksic
  1999-04-17  6:06         ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 13+ messages in thread
From: Colin Rafferty @ 1999-04-13 13:58 UTC (permalink / raw)


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

>> Ok; then we should check something else to see whether xbms can be
>> displayed.
>> 
>> (featurep 'xbm)
>> => nil
>> 
>> even if XEmacs can do xbms, so what is the proper test?

> What XEmacs is that?  (featurep 'xbm) evaluates to t for me.  

In 21.0 (beta65), I was getting nil on xbm, but t on xpm.  In 21.2, I
get t for both.  And I did have xbm in my build.

> I'm not sure if it's possible to compile XEmacs without XBM support,
> but with X support.

It is possible, but the configure script complains terribly.

> Oh yes, you could also test it with this:

>     (valid-image-instantiator-format-p 'xbm)

This sounds like the right test to me.  In fact, that looks like the
right test (modulo xbm) for all the graphics types.

Of course, Lars still needs a way to figure it out in Emacs.

-- 
Colin


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

* Re: void function make-annotation
  1999-04-13 13:58         ` Colin Rafferty
@ 1999-04-13 15:01           ` Hrvoje Niksic
  1999-04-13 15:11             ` Colin Rafferty
  1999-04-13 15:12             ` Kai.Grossjohann
  0 siblings, 2 replies; 13+ messages in thread
From: Hrvoje Niksic @ 1999-04-13 15:01 UTC (permalink / raw)


Colin Rafferty <craffert@ms.com> writes:

> > What XEmacs is that?  (featurep 'xbm) evaluates to t for me.
> 
> In 21.0 (beta65), I was getting nil on xbm, but t on xpm.  In 21.2,
> I get t for both.  And I did have xbm in my build.

I guess XEmacs 21.0 simply didn't provide `xbm' symbol.

> > Oh yes, you could also test it with this:
> 
> >     (valid-image-instantiator-format-p 'xbm)
> 
> This sounds like the right test to me.  In fact, that looks like the
> right test (modulo xbm) for all the graphics types.

Why "modulo xbm"?  Doesn't the above work for xbm?

> Of course, Lars still needs a way to figure it out in Emacs.

FSF Emacs cannot display images.


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

* Re: void function make-annotation
  1999-04-13 15:01           ` Hrvoje Niksic
@ 1999-04-13 15:11             ` Colin Rafferty
  1999-04-13 15:12             ` Kai.Grossjohann
  1 sibling, 0 replies; 13+ messages in thread
From: Colin Rafferty @ 1999-04-13 15:11 UTC (permalink / raw)


Hrvoje Niksic writes:
> Colin Rafferty <craffert@ms.com> writes:
>> Hrvoje Niksic writes:

>> > Oh yes, you could also test it with this:
>> 
>> >     (valid-image-instantiator-format-p 'xbm)
>> 
>> This sounds like the right test to me.  In fact, that looks like the
>> right test (modulo xbm) for all the graphics types.

> Why "modulo xbm"?  Doesn't the above work for xbm?

I mean, Lars can use (valid-image-instantiator-format-p 'gif) for GIF, 
and (valid-image-instantiator-format-p 'tiff) for TIFF, etc.

>> Of course, Lars still needs a way to figure it out in Emacs.

> FSF Emacs cannot display images.

Oops, silly me to forget something like that.

-- 
Colin


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

* Re: void function make-annotation
  1999-04-13 15:01           ` Hrvoje Niksic
  1999-04-13 15:11             ` Colin Rafferty
@ 1999-04-13 15:12             ` Kai.Grossjohann
  1999-04-13 15:20               ` Hrvoje Niksic
  1 sibling, 1 reply; 13+ messages in thread
From: Kai.Grossjohann @ 1999-04-13 15:12 UTC (permalink / raw)


Hrvoje Niksic <hniksic@srce.hr> writes:

  > Colin Rafferty <craffert@ms.com> writes:
  > 
  > > > Oh yes, you could also test it with this:
  > > 
  > > >     (valid-image-instantiator-format-p 'xbm)
  > > 
  > > This sounds like the right test to me.  In fact, that looks like the
  > > right test (modulo xbm) for all the graphics types.
  > 
  > Why "modulo xbm"?  Doesn't the above work for xbm?

xbm needs to be replaced with jpeg to test for jpeg image support.

kai
-- 
Abort this operation?   [Abort]  [Cancel]


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

* Re: void function make-annotation
  1999-04-13 15:12             ` Kai.Grossjohann
@ 1999-04-13 15:20               ` Hrvoje Niksic
  0 siblings, 0 replies; 13+ messages in thread
From: Hrvoje Niksic @ 1999-04-13 15:20 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE writes:

>   > Why "modulo xbm"?  Doesn't the above work for xbm?
> 
> xbm needs to be replaced with jpeg to test for jpeg image support.

Colin Rafferty <craffert@ms.com> writes:

> I mean, Lars can use (valid-image-instantiator-format-p 'gif) for
> GIF, and (valid-image-instantiator-format-p 'tiff) for TIFF, etc.

*doh*


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

* Re: void function make-annotation
  1999-04-13  7:00       ` Hrvoje Niksic
  1999-04-13 13:58         ` Colin Rafferty
@ 1999-04-17  6:06         ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 13+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-04-17  6:06 UTC (permalink / raw)


Hrvoje Niksic <hniksic@srce.hr> writes:

> Oh yes, you could also test it with this:
> 
>     (valid-image-instantiator-format-p 'xbm)

I've now changed all the image predicates to use a solution based on
this instead.

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


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

end of thread, other threads:[~1999-04-17  6:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-26 21:55 void function make-annotation Alan Shutko
1999-03-28 17:24 ` Lars Magne Ingebrigtsen
1999-03-28 18:23   ` Alan Shutko
1999-04-02 13:43     ` Lars Magne Ingebrigtsen
1999-04-02 18:08       ` Kim-Minh Kaplan
1999-04-05 20:27       ` Colin Rafferty
1999-04-13  7:00       ` Hrvoje Niksic
1999-04-13 13:58         ` Colin Rafferty
1999-04-13 15:01           ` Hrvoje Niksic
1999-04-13 15:11             ` Colin Rafferty
1999-04-13 15:12             ` Kai.Grossjohann
1999-04-13 15:20               ` Hrvoje Niksic
1999-04-17  6:06         ` 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).