Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
28681e35
Commit
28681e35
authored
Oct 06, 2007
by
Juri Linkov
Browse files
(image-type): Check if image-types is bound to not fail on tty.
parent
7017d784
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lisp/image.el
lisp/image.el
+1
-1
No files found.
lisp/image.el
View file @
28681e35
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment