aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/ChangeLog13
-rw-r--r--lisp/gnus/gnus-art.el4
-rw-r--r--lisp/gnus/mml2015.el19
3 files changed, 25 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index c873c6f6704..d95c9cdee30 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,18 @@
12012-12-26 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * mml2015.el (mml2015-epg-key-image): Use mm-set-buffer-multibyte.
4
52012-12-25 Adam Sjøgren <asjo@koldfront.dk>
6
7 * mml2015.el (mml2015-epg-key-image): use --attribute-fd rather than
8 temporary file to get PGP key image. Pass no-show-photos when extracting
9 image to avoid having it pop up twice.
10
12012-12-26 Lars Ingebrigtsen <larsi@gnus.org> 112012-12-26 Lars Ingebrigtsen <larsi@gnus.org>
2 12
13 * gnus-art.el (gnus-article-treat-types): Include text/html as parts
14 eligible for treatment.
15
3 * gnus-util.el (gnus-goto-colon): Move to the beginning of the visual 16 * gnus-util.el (gnus-goto-colon): Move to the beginning of the visual
4 lines. This makes summary commands with hidden threads work more 17 lines. This makes summary commands with hidden threads work more
5 reliably. 18 reliably.
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 53e3d67161f..ba186d50555 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1121,8 +1121,8 @@ parts. When nil, redisplay article."
1121 (const :tag "Header" head))) 1121 (const :tag "Header" head)))
1122 1122
1123(defvar gnus-article-treat-types '("text/plain" "text/x-verbatim" 1123(defvar gnus-article-treat-types '("text/plain" "text/x-verbatim"
1124 "text/x-patch") 1124 "text/x-patch" "text/html")
1125 "Parts to treat.") 1125 "Part types eligible for treatment.")
1126 1126
1127(defvar gnus-inhibit-treatment nil 1127(defvar gnus-inhibit-treatment nil
1128 "Whether to inhibit treatment.") 1128 "Whether to inhibit treatment.")
diff --git a/lisp/gnus/mml2015.el b/lisp/gnus/mml2015.el
index 847d1fa786f..0bc83ad4fb0 100644
--- a/lisp/gnus/mml2015.el
+++ b/lisp/gnus/mml2015.el
@@ -822,15 +822,16 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
822 822
823(defun mml2015-epg-key-image (key-id) 823(defun mml2015-epg-key-image (key-id)
824 "Return the image of a key, if any" 824 "Return the image of a key, if any"
825 (let ((filename 825 (with-temp-buffer
826 (replace-regexp-in-string 826 (mm-set-buffer-multibyte nil)
827 "\n" "" 827 (let* ((coding-system-for-write 'binary)
828 (shell-command-to-string 828 (coding-system-for-read 'binary)
829 (format "%s --photo-viewer 'echo %%I >&2' --list-keys %s > /dev/null" 829 (data (shell-command-to-string
830 epg-gpg-program key-id))))) 830 (format "%s --list-options no-show-photos --attribute-fd 2 --list-keys %s > /dev/null"
831 (when (and (not (string-equal filename "")) 831 epg-gpg-program key-id))))
832 (file-exists-p filename)) 832 (when (> (length data) 0)
833 (create-image filename)))) 833 (insert (substring data 16))
834 (create-image (buffer-string) nil t)))))
834 835
835(defun mml2015-epg-key-image-to-string (key-id) 836(defun mml2015-epg-key-image-to-string (key-id)
836 "Return a string with the image of a key, if any" 837 "Return a string with the image of a key, if any"