2003-03-24 Katsumi Yamaoka <yamaoka@jpl.org>
+ * lisp/gnus-art.el (gnus-article-x-face-command): Don't examine
+ functions if `noninteractive'.
+ (gnus-article-should-use-smiley-mule): Don't examine values if
+ `noninteractive'.
+ (gnus-treat-display-face): Default to nil if x-face-e21 is
+ available.
+ (gnus-treat-display-smileys): Don't examine values if
+ `noninteractive'.
+
* lisp/message.el (message-yank-original): Check not only the
References field but the `message-reply-headers' variable.
;; non-graphical frames in a session.
(defcustom gnus-article-x-face-command
(cond
+ (noninteractive
+ 'ignore)
((featurep 'xemacs)
(if (or (gnus-image-type-available-p 'xface)
(gnus-image-type-available-p 'pbm))
:group 'gnus-article-various
:type 'boolean
:get (lambda (symbol)
- (and (default-value symbol)
+ (and (not noninteractive)
+ (default-value symbol)
(not (featurep 'xemacs))
(module-installed-p 'smiley-mule)
t))
:set (lambda (symbol value)
- (set-default symbol (and value
+ (set-default symbol (and (not noninteractive)
+ value
(not (featurep 'xemacs))
(module-installed-p 'smiley-mule)
t))))
(defcustom gnus-treat-display-face
(and (not noninteractive)
+ ;; x-face-e21 handles both X-Face and Face headers.
+ (not (and (eq gnus-article-x-face-command 'x-face-decode-message-header)
+ (module-installed-p 'x-face-e21)))
(or (and (fboundp 'image-type-available-p)
(image-type-available-p 'png))
(and (featurep 'xemacs)
(put 'gnus-treat-display-face 'highlight t)
(defcustom gnus-treat-display-smileys
- (if (or (and (featurep 'xemacs)
- (featurep 'xpm))
- (gnus-image-type-available-p 'xpm)
- (gnus-image-type-available-p 'pbm)
- (and (not (featurep 'xemacs))
- window-system
- (module-installed-p 'smiley-mule)))
+ (if (and (not noninteractive)
+ (or (and (featurep 'xemacs)
+ (featurep 'xpm))
+ (gnus-image-type-available-p 'xpm)
+ (gnus-image-type-available-p 'pbm)
+ (and (not (featurep 'xemacs))
+ window-system
+ (module-installed-p 'smiley-mule))))
t
nil)
"Display smileys.