DATA is the image data from BBDB."
(cond
((eq type 'cface)
- (set-extent-begin-glyph
- extent
- (make-glyph (list (vector 'png
- :data (emchat-face-to-png data))))))
+ (let ((glyph (emchat-face-to-png data)))
+ (set-extent-begin-glyph
+ extent
+ (make-glyph `([png :data ,glyph])))))
((eq type 'xface)
- (set-extent-begin-glyph
- extent
- (make-glyph
- (list (vector 'xface
- :data (concat "X-Face: " data)
- :foreground emchat-buddy-xface-foreground
- :background emchat-buddy-xface-background)))))
+ (let ((glyph (concat "X-Face: " data)))
+ (set-extent-begin-glyph
+ extent
+ (make-glyph
+ `([xface :data ,glyph
+ :foreground ,emchat-buddy-xface-foreground
+ :background ,emchat-buddy-xface-background])))))
(t nil)))
;;;###autoload
(let ((ext (make-extent (point) (point))))
(set-extent-begin-glyph
ext
- (make-glyph (list (vector 'png ':file emchat-log-logo))))
+ (make-glyph `([png :file ,emchat-log-logo])))
(set-extent-end-glyph
ext
- (make-glyph (list (vector 'xbm ':file emchat-log-header))))
+ (make-glyph `([xbm :file ,emchat-log-header])))
(insert "\n\n")))
(insert "===========================================\n"
"Welcome to EMchat - The (S)XEmacs IM Client\n\n"
(xwem-osd-text-add
emchat-xwem-osd
(if emchat-xwem-osd-show-icon
- (glyph-width (make-glyph (vector 'xpm :data emchat-xwem-osd-icon)))
+ (glyph-width (make-glyph `[xpm :data ,emchat-xwem-osd-icon]))
0) 0
(encode-coding-string
(format "%s: %s" nick message)
(donate-help "Make a donation to the EMchat team.")
(cancel-help
"Thank you for considering a donation... maybe another time.")
- donate-glyph-ext
- cancel-glyph-ext
- donate-text-ext
+ (donate-glyph (base64-decode-string emchat-paypal-glyph))
+ (cancel-glyph (base64-decode-string emchat-maybe-later-glyph))
+ donate-glyph-ext cancel-glyph-ext donate-text-ext
cancel-text-ext)
(switch-to-buffer buf)
(erase-buffer)
(setq donate-glyph-ext (make-extent (point-max) (point-max)))
(set-extent-begin-glyph
donate-glyph-ext
- (make-glyph
- (list (vector 'png ':data (with-temp-buffer
- (insert emchat-paypal-glyph)
- (base64-decode-region (point-min)
- (point-max))
- (buffer-string))))))
+ (make-glyph `([png :data ,donate-glyph])))
(insert "\t\t\t")
(setq cancel-glyph-ext (make-extent (point-max) (point-max)))
(set-extent-begin-glyph
cancel-glyph-ext
- (make-glyph
- (list (vector 'png ':data (with-temp-buffer
- (insert emchat-maybe-later-glyph)
- (base64-decode-region (point-min)
- (point-max))
- (buffer-string))))))
+ (make-glyph `([png :data ,cancel-glyph])))
(set-extent-property donate-glyph-ext 'keymap emchat-donation-map)
(set-extent-property donate-glyph-ext 'help-echo donate-help)
(set-extent-property donate-glyph-ext 'balloon-help donate-help)