Ar an triú lá déag de mí na Samhain, scríobh Zajcev Evgeny:
Hello there. I tried to change image of the glyph using
`set-glyph-image' and found behaviour that i was not expecting. I
summarized my experiments with a little example:
(setq mg (make-glyph))
(progn
(set-glyph-image mg (xpm-button-create "test" 1 "green"
"black"))
(set-extent-end-glyph
(make-extent (point) (point)) mg)
nil) ; (1) form
(progn
(set-glyph-image mg (xpm-button-create "AAA" 1 "red"
"black"))
(set-extent-end-glyph
(make-extent (point) (point)) mg)
nil) ; (2) form
I evaluate first form and got nifty looking button as i expected.
Then i evaluated second form in order to get new button and affect
first button to change its image, but instead i got same button as
first one. Is this ok?
I tried it with XEmacs 21.4 (patch 21) and SXEmacs 22.1.10
thanks
Same behaviour with XEmacs 21.5. The first image is cached; if you delete
the console connection (I normally start my XEmacs within screen from my
system startup scripts, and create gnuclient frames once I start X11)
and create a new connection, both display as the second button.
(set-specifier-dirty-flag (glyph-image mg)) doesn’t change the image
displayed, though it seems like it should.
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta