diff options
| author | Chong Yidong | 2012-04-26 16:43:20 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-04-26 16:43:20 +0800 |
| commit | dce04f7f90fa8f613dd855cb300c837696483f1b (patch) | |
| tree | 8d3b3887460f2bc8602ac09622e683b38db52bfb | |
| parent | cb3e7ae07a6ad7c46f5d67984d54f10f19103bef (diff) | |
| download | emacs-dce04f7f90fa8f613dd855cb300c837696483f1b.tar.gz emacs-dce04f7f90fa8f613dd855cb300c837696483f1b.zip | |
* image.el (image-type-from-buffer): Only return supported image type.
Fixes: debbugs:9045
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/image.el | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a709c017416..ad6fd35bc5d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-04-26 Chong Yidong <cyd@gnu.org> | 1 | 2012-04-26 Chong Yidong <cyd@gnu.org> |
| 2 | 2 | ||
| 3 | * image.el (image-type-from-buffer): Only return supported image | ||
| 4 | type (Bug#9045). | ||
| 5 | |||
| 3 | * vc/diff-mode.el (diff-beginning-of-hunk): Return a meaningful | 6 | * vc/diff-mode.el (diff-beginning-of-hunk): Return a meaningful |
| 4 | value, for symmetry with diff-end-of-hunk. | 7 | value, for symmetry with diff-end-of-hunk. |
| 5 | (diff-split-hunk, diff-find-source-location) | 8 | (diff-split-hunk, diff-find-source-location) |
diff --git a/lisp/image.el b/lisp/image.el index 348c208781e..27e41a57efe 100644 --- a/lisp/image.el +++ b/lisp/image.el | |||
| @@ -282,7 +282,9 @@ be determined." | |||
| 282 | types nil) | 282 | types nil) |
| 283 | (setq types (cdr types))))) | 283 | (setq types (cdr types))))) |
| 284 | (goto-char opoint) | 284 | (goto-char opoint) |
| 285 | type)) | 285 | (and type |
| 286 | (memq type image-types) | ||
| 287 | type))) | ||
| 286 | 288 | ||
| 287 | 289 | ||
| 288 | ;;;###autoload | 290 | ;;;###autoload |