diff options
| author | Juri Linkov <juri@jurta.org> | 2007-10-06 22:17:49 +0000 |
|---|---|---|
| committer | Juri Linkov <juri@jurta.org> | 2007-10-06 22:17:49 +0000 |
| commit | 28681e350ccd92660d2b1be048e49e3e1d049e5d (patch) | |
| tree | 7d8ef925be55ee1862b4159d8de0bd0840a42bad | |
| parent | 7017d784e72db8218aee7272ebf73f0707bc1579 (diff) | |
| download | emacs-28681e350ccd92660d2b1be048e49e3e1d049e5d.tar.gz | |
(image-type): Check if image-types is bound to not fail on tty.
| -rw-r--r-- | lisp/image.el | 2 |
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) |
