Commit dce04f7f authored by Chong Yidong's avatar Chong Yidong

* image.el (image-type-from-buffer): Only return supported image type.

Fixes: debbugs:9045
parent cb3e7ae0
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)
......
......@@ -282,7 +282,9 @@ be determined."
types nil)
(setq types (cdr types)))))
(goto-char opoint)
type))
(and type
(memq type image-types)
type)))
;;;###autoload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment