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

Fixes: debbugs:9045
This commit is contained in:
Chong Yidong 2012-04-26 16:43:20 +08:00
parent cb3e7ae07a
commit dce04f7f90
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,8 @@
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)

View file

@ -282,7 +282,9 @@ be determined."
types nil)
(setq types (cdr types)))))
(goto-char opoint)
type))
(and type
(memq type image-types)
type)))
;;;###autoload