emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r111343: Merge changes made in Gnus m


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111343: Merge changes made in Gnus master
Date: Wed, 26 Dec 2012 22:30:58 +0000
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111343
author: Gnus developers <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Wed 2012-12-26 22:30:58 +0000
message:
  Merge changes made in Gnus master
  
  2012-12-26  Katsumi Yamaoka  <address@hidden>
  * mml2015.el (mml2015-epg-key-image): Use mm-set-buffer-multibyte.
  
  2012-12-25  Adam Sjøgren  <address@hidden>
  * mml2015.el (mml2015-epg-key-image): use --attribute-fd rather than
    temporary file to get PGP key image. Pass no-show-photos when extracting
    image to avoid having it pop up twice.
  
  2012-12-26  Lars Ingebrigtsen  <address@hidden>
   * gnus-art.el (gnus-article-treat-types): Include text/html as parts
   eligible for treatment.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/gnus-art.el
  lisp/gnus/mml2015.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2012-12-26 13:58:54 +0000
+++ b/lisp/gnus/ChangeLog       2012-12-26 22:30:58 +0000
@@ -1,5 +1,18 @@
+2012-12-26  Katsumi Yamaoka  <address@hidden>
+
+       * mml2015.el (mml2015-epg-key-image): Use mm-set-buffer-multibyte.
+
+2012-12-25  Adam Sjøgren  <address@hidden>
+
+       * mml2015.el (mml2015-epg-key-image): use --attribute-fd rather than
+       temporary file to get PGP key image. Pass no-show-photos when extracting
+       image to avoid having it pop up twice.
+
 2012-12-26  Lars Ingebrigtsen  <address@hidden>
 
+       * gnus-art.el (gnus-article-treat-types): Include text/html as parts
+       eligible for treatment.
+
        * gnus-util.el (gnus-goto-colon): Move to the beginning of the visual
        lines.  This makes summary commands with hidden threads work more
        reliably.

=== modified file 'lisp/gnus/gnus-art.el'
--- a/lisp/gnus/gnus-art.el     2012-12-25 22:12:59 +0000
+++ b/lisp/gnus/gnus-art.el     2012-12-26 22:30:58 +0000
@@ -1121,8 +1121,8 @@
           (const :tag "Header" head)))
 
 (defvar gnus-article-treat-types '("text/plain" "text/x-verbatim"
-                                  "text/x-patch")
-  "Parts to treat.")
+                                  "text/x-patch" "text/html")
+  "Part types eligible for treatment.")
 
 (defvar gnus-inhibit-treatment nil
   "Whether to inhibit treatment.")

=== modified file 'lisp/gnus/mml2015.el'
--- a/lisp/gnus/mml2015.el      2012-12-26 04:20:21 +0000
+++ b/lisp/gnus/mml2015.el      2012-12-26 22:30:58 +0000
@@ -822,15 +822,16 @@
 
 (defun mml2015-epg-key-image (key-id)
   "Return the image of a key, if any"
-  (let ((filename
-        (replace-regexp-in-string
-         "\n" ""
-         (shell-command-to-string
-          (format "%s --photo-viewer 'echo %%I >&2' --list-keys %s > /dev/null"
-                  epg-gpg-program key-id)))))
-    (when (and (not (string-equal filename ""))
-              (file-exists-p filename))
-      (create-image filename))))
+  (with-temp-buffer
+    (mm-set-buffer-multibyte nil)
+    (let* ((coding-system-for-write 'binary)
+           (coding-system-for-read 'binary)
+           (data (shell-command-to-string
+                  (format "%s --list-options no-show-photos --attribute-fd 2 
--list-keys %s > /dev/null"
+                          epg-gpg-program key-id))))
+      (when (> (length data) 0)
+        (insert (substring data 16))
+        (create-image (buffer-string) nil t)))))
 
 (defun mml2015-epg-key-image-to-string (key-id)
   "Return a string with the image of a key, if any"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]