* image.el (image-type-from-buffer): Only return supported image type.
Fixes: debbugs:9045
This commit is contained in:
parent
cb3e7ae07a
commit
dce04f7f90
2 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -282,7 +282,9 @@ be determined."
|
|||
types nil)
|
||||
(setq types (cdr types)))))
|
||||
(goto-char opoint)
|
||||
type))
|
||||
(and type
|
||||
(memq type image-types)
|
||||
type)))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Reference in a new issue