diff options
| author | Eli Zaretskii | 2000-05-17 15:58:11 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-05-17 15:58:11 +0000 |
| commit | 249781907d8ed883f5932827ba2bbf8e0d9cb7a6 (patch) | |
| tree | 46acbe40842e39fa6a9ed8073580e2ab8d2d1770 | |
| parent | 2fca2d5d495caf12b05069cf8878c11241a1bd4b (diff) | |
| download | emacs-249781907d8ed883f5932827ba2bbf8e0d9cb7a6.tar.gz emacs-249781907d8ed883f5932827ba2bbf8e0d9cb7a6.zip | |
(image-type-available-p): Don't reference image-types
if it isn't bound.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/image.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 25e8dcd0dc3..2f7fd3e20b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-05-17 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * image.el (image-type-available-p): Don't reference image-types | ||
| 4 | if it isn't bound. | ||
| 5 | |||
| 1 | 2000-05-17 Stefan Monnier <monnier@cs.yale.edu> | 6 | 2000-05-17 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 7 | ||
| 3 | * autoarg.el (autoarg-mode): Typo in the :set argument. | 8 | * autoarg.el (autoarg-mode): Typo in the :set argument. |
diff --git a/lisp/image.el b/lisp/image.el index 78ca54add95..0c1e54a702b 100644 --- a/lisp/image.el +++ b/lisp/image.el | |||
| @@ -72,7 +72,7 @@ be determined." | |||
| 72 | (defun image-type-available-p (type) | 72 | (defun image-type-available-p (type) |
| 73 | "Value is non-nil if image type TYPE is available. | 73 | "Value is non-nil if image type TYPE is available. |
| 74 | Image types are symbols like `xbm' or `jpeg'." | 74 | Image types are symbols like `xbm' or `jpeg'." |
| 75 | (not (null (memq type image-types)))) | 75 | (and (boundp 'image-types) (not (null (memq type image-types))))) |
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | ;;;###autoload | 78 | ;;;###autoload |