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
dce04f7f
Commit
dce04f7f
authored
Apr 26, 2012
by
Chong Yidong
Browse files
* image.el (image-type-from-buffer): Only return supported image type.
Fixes: debbugs:9045
parent
cb3e7ae0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/image.el
lisp/image.el
+3
-1
No files found.
lisp/ChangeLog
View file @
dce04f7f
2012-04-26 Chong Yidong <cyd@gnu.org>
* image.el (image-type-from-buffer): Only return supported image
type (Bug#9045).
* vc/diff-mode.el (diff-beginning-of-hunk): Return a meaningful
value, for symmetry with diff-end-of-hunk.
(diff-split-hunk, diff-find-source-location)
...
...
lisp/image.el
View file @
dce04f7f
...
...
@@ -282,7 +282,9 @@ be determined."
types nil)
(setq types (cdr types)))))
(goto-char opoint)
type))
(and type
(memq type image-types)
type)))
;;;###autoload
...
...
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