diff options
| author | Glenn Morris | 2013-01-15 21:46:25 -0500 |
|---|---|---|
| committer | Glenn Morris | 2013-01-15 21:46:25 -0500 |
| commit | 059fc5111dff2fbc589af60d35e314adfea8211b (patch) | |
| tree | e45b799e9bbbb4b280ae0ce5dae27f2b6f41ef36 | |
| parent | 963ea40fe96634a01b24aef4fc39acf9a4236eb7 (diff) | |
| download | emacs-059fc5111dff2fbc589af60d35e314adfea8211b.tar.gz emacs-059fc5111dff2fbc589af60d35e314adfea8211b.zip | |
* lisp/gnus/smiley.el (smiley-style): Make the file loadable in batch mode.
Not likely to be very useful, of course, but helps with automated testing.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/smiley.el | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 733f1d26510..1f1b46c8532 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-01-16 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * smiley.el (smiley-style): Make the file loadable in batch mode. | ||
| 4 | |||
| 1 | 2013-01-15 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2013-01-15 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * nnimap.el (nnimap-keepalive): Don't throw an error if there's no more | 7 | * nnimap.el (nnimap-keepalive): Don't throw an error if there's no more |
diff --git a/lisp/gnus/smiley.el b/lisp/gnus/smiley.el index 6381f5bf9d9..eb71134457c 100644 --- a/lisp/gnus/smiley.el +++ b/lisp/gnus/smiley.el | |||
| @@ -59,7 +59,10 @@ | |||
| 59 | 59 | ||
| 60 | (defcustom smiley-style | 60 | (defcustom smiley-style |
| 61 | (if (or (and (fboundp 'face-attribute) | 61 | (if (or (and (fboundp 'face-attribute) |
| 62 | (>= (face-attribute 'default :height) 160)) | 62 | ;; In batch mode, attributes can be unspecified. |
| 63 | (condition-case nil | ||
| 64 | (>= (face-attribute 'default :height) 160) | ||
| 65 | (error nil))) | ||
| 63 | (and (fboundp 'face-height) | 66 | (and (fboundp 'face-height) |
| 64 | (>= (face-height 'default) 14))) | 67 | (>= (face-height 'default) 14))) |
| 65 | 'medium | 68 | 'medium |