[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r108044: * image.el (image-type-from-
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r108044: * image.el (image-type-from-buffer): Only return supported image type. |
Date: |
Thu, 26 Apr 2012 16:43:20 +0800 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 108044
fixes bug(s): http://debbugs.gnu.org/9045
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Thu 2012-04-26 16:43:20 +0800
message:
* image.el (image-type-from-buffer): Only return supported image type.
modified:
lisp/ChangeLog
lisp/image.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2012-04-26 08:00:47 +0000
+++ b/lisp/ChangeLog 2012-04-26 08:43:20 +0000
@@ -1,5 +1,8 @@
2012-04-26 Chong Yidong <address@hidden>
+ * 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)
=== modified file 'lisp/image.el'
--- a/lisp/image.el 2012-04-16 03:47:43 +0000
+++ b/lisp/image.el 2012-04-26 08:43:20 +0000
@@ -282,7 +282,9 @@
types nil)
(setq types (cdr types)))))
(goto-char opoint)
- type))
+ (and type
+ (memq type image-types)
+ type)))
;;;###autoload
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r108044: * image.el (image-type-from-buffer): Only return supported image type.,
Chong Yidong <=