]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/gnus/mml2015.el: make key image extraction robuster
authorDaiki Ueno <ueno@gnu.org>
Tue, 2 Jul 2013 02:34:12 +0000 (02:34 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 2 Jul 2013 02:34:12 +0000 (02:34 +0000)
lisp/gnus/ChangeLog
lisp/gnus/mml2015.el

index f0bee06f26d46136ddb937ed421aa260c6c30660..9639f21c2fbbf8914eb1b7dae25951d5ddfefb15 100644 (file)
@@ -1,3 +1,9 @@
+2013-07-02  Daiki Ueno  <ueno@gnu.org>
+
+       * mml2015.el (mml2015-epg-key-image): Use 'gnus-create-image' instead
+       of 'create-image' for XEmacs compatibility; check errors when decoding
+       image.  Reported by Uwe Brauer.
+
 2013-06-28  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (gnus-article-extend-url-button): Make it work again with
index 389b522aec8dd77ec1ed220d02004c35c11fa837..2c2187a5f8d41eaf056f99e5cb7aadda0c9dc150 100644 (file)
@@ -877,7 +877,9 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
                           (shell-quote-argument epg-gpg-program) key-id))))
       (when (> (length data) 0)
         (insert (substring data 16))
-        (create-image (buffer-string) nil t)))))
+       (condition-case nil
+           (gnus-create-image (buffer-string) nil t)
+         (error))))))
 
 (autoload 'gnus-rescale-image "gnus-util")