aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier2010-02-24 11:40:04 -0500
committerStefan Monnier2010-02-24 11:40:04 -0500
commit86f5c0343d53ede798550e70ba66bd4610584126 (patch)
treec9a87e55afdfb6e57a0f03c99dc90d6b7f38c331 /lisp
parentf95a5fd02f33b3002d98745396efa4097c616300 (diff)
downloademacs-86f5c0343d53ede798550e70ba66bd4610584126.tar.gz
emacs-86f5c0343d53ede798550e70ba66bd4610584126.zip
(gnus-treat-display-x-face): Protect against errors (bug#5299).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/gnus-art.el8
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index de564bb8c80..7ab323d74d4 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12010-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * gnus-art.el (gnus-treat-display-x-face): Don't burp if
4 shell-command-to-string signals an error (bug#5299).
5
12010-02-24 Glenn Morris <rgm@gnu.org> 62010-02-24 Glenn Morris <rgm@gnu.org>
2 7
3 * message.el (message-smtpmail-send-it) 8 * message.el (message-smtpmail-send-it)
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index d01b9f3eb08..1a66404f841 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1422,8 +1422,12 @@ predicate. See Info node `(gnus)Customizing Articles'."
1422 (gnus-image-type-available-p 'xbm) 1422 (gnus-image-type-available-p 'xbm)
1423 (if (featurep 'xemacs) 1423 (if (featurep 'xemacs)
1424 (featurep 'xface) 1424 (featurep 'xface)
1425 (and (string-match "^0x" (shell-command-to-string "uncompface")) 1425 (condition-case nil
1426 (executable-find "icontopbm"))) 1426 (and (string-match "^0x" (shell-command-to-string "uncompface"))
1427 (executable-find "icontopbm"))
1428 ;; shell-command-to-string may signal an error, e.g. if
1429 ;; shell-file-name is not found.
1430 (error nil)))
1427 'head) 1431 'head)
1428 "Display X-Face headers. 1432 "Display X-Face headers.
1429Valid values are nil and `head'. 1433Valid values are nil and `head'.