summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2007-10-06 22:17:49 +0000
committerJuri Linkov <juri@jurta.org>2007-10-06 22:17:49 +0000
commit28681e350ccd92660d2b1be048e49e3e1d049e5d (patch)
tree7d8ef925be55ee1862b4159d8de0bd0840a42bad /lisp
parent7017d784e72db8218aee7272ebf73f0707bc1579 (diff)
downloademacs-28681e350ccd92660d2b1be048e49e3e1d049e5d.tar.gz
(image-type): Check if image-types is bound to not fail on tty.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/image.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/image.el b/lisp/image.el
index 7e42c26dd69..99632b84307 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -323,7 +323,7 @@ Optional DATA-P non-nil means SOURCE is a string containing image data."
(or (image-type-from-file-header source)
(image-type-from-file-name source))))
(or type (error "Cannot determine image type")))
- (or (memq type image-types)
+ (or (memq type (and (boundp 'image-types) image-types))
(error "Invalid image type `%s'" type))
type)