[gnus git] branch master updated: m0-5-221-gb0b2076 =2= Fix cpnflict ; Merge changes made in Emacs trunk

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  b0b207661978cbe3bd6cfed2f39b841a11992c03 (commit)
       via  b4542e3ee67f08188d887b7387810ba96c6a9a40 (commit)
      from  cadb861eea26bc60d9235e2eed912907511999eb (commit)


- Log -----------------------------------------------------------------
commit b0b207661978cbe3bd6cfed2f39b841a11992c03
Merge: b4542e3 cadb861
Author: Katsumi Yamaoka <[email protected]>
Date:   Wed Dec 26 13:53:17 2012 +0000

    Fix cpnflict

diff --cc lisp/ChangeLog
index e6e714a,12b180f..6af28b8
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@@ -1,19 -1,12 +1,28 @@@
+ 2012-12-26  Lars Ingebrigtsen  <[email protected]>
+ 
+ 	* gnus-util.el (gnus-goto-colon): Move to the beginning of the visual
+ 	lines.  This makes summary commands with hidden threads work more
+ 	reliably.
+ 
+ 	* gnus-cite.el (gnus-article-hide-citation-maybe): Leave an expansion
+ 	button to mark the hidden citations (bug#9395).
+ 
 +2012-12-26  Daiki Ueno  <[email protected]>
 +
 +	* mml2015.el (mml2015-epg-signature-to-string): New function.
 +	(mml2015-epg-verify-result-to-string): New function.
 +	(mml2015-epg-decrypt, mml2015-epg-clear-decrypt, mml2015-epg-verify)
 +	(mml2015-epg-clear-verify): Use mml2015-epg-verify-result-to-string
 +	instead of epg-verify-result-to-string.
 +	(epg-signature-key-id, epg-signature-to-string): Autoload.
 +	(epg-verify-result-to-string): Remove autoload.
 +
 +2012-12-25  Adam Sjøgren  <[email protected]>
 +
 +	* mml2015.el (mml2015-epg-key-image): New function, to retrieve photo
 +	ID image from GPG public key.
 +	(mml2015-epg-key-image-to-string): New function.
 +
  2012-12-25  Leo Liu  <[email protected]>
  
  	* plstore.el (plstore-passphrase-callback-function): Fix error when

commit b4542e3ee67f08188d887b7387810ba96c6a9a40
Author: Emacs developers <[email protected]>
Date:   Wed Dec 26 13:46:52 2012 +0000

    Merge changes made in Emacs trunk
    
    2012-12-26  Daiki Ueno  <[email protected]>
    * mml2015.el (mml2015-epg-signature-to-string): New function.
      (mml2015-epg-verify-result-to-string): New function.
      (mml2015-epg-decrypt, mml2015-epg-clear-decrypt, mml2015-epg-verify)
      (mml2015-epg-clear-verify): Use mml2015-epg-verify-result-to-string
      instead of epg-verify-result-to-string.
      (epg-signature-key-id, epg-signature-to-string): Autoload.
      (epg-verify-result-to-string): Remove autoload.
    
    2012-12-25  Adam Sjøgren  <[email protected]>
    * mml2015.el (mml2015-epg-key-image): New function, to retrieve photo
      ID image from GPG public key.
      (mml2015-epg-key-image-to-string): New function.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4bef403..e6e714a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,19 @@
+2012-12-26  Daiki Ueno  <[email protected]>
+
+	* mml2015.el (mml2015-epg-signature-to-string): New function.
+	(mml2015-epg-verify-result-to-string): New function.
+	(mml2015-epg-decrypt, mml2015-epg-clear-decrypt, mml2015-epg-verify)
+	(mml2015-epg-clear-verify): Use mml2015-epg-verify-result-to-string
+	instead of epg-verify-result-to-string.
+	(epg-signature-key-id, epg-signature-to-string): Autoload.
+	(epg-verify-result-to-string): Remove autoload.
+
+2012-12-25  Adam Sjøgren  <[email protected]>
+
+	* mml2015.el (mml2015-epg-key-image): New function, to retrieve photo
+	ID image from GPG public key.
+	(mml2015-epg-key-image-to-string): New function.
+
 2012-12-25  Leo Liu  <[email protected]>
 
 	* plstore.el (plstore-passphrase-callback-function): Fix error when
diff --git a/lisp/mml2015.el b/lisp/mml2015.el
index 78293f6..847d1fa 100644
--- a/lisp/mml2015.el
+++ b/lisp/mml2015.el
@@ -735,6 +735,7 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
 
 (defvar epg-user-id-alist)
 (defvar epg-digest-algorithm-alist)
+(defvar epg-gpg-program)
 (defvar inhibit-redisplay)
 
 (autoload 'epg-make-context "epg")
@@ -743,7 +744,6 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
 (autoload 'epg-context-set-signers "epg")
 (autoload 'epg-context-result-for "epg")
 (autoload 'epg-new-signature-digest-algorithm "epg")
-(autoload 'epg-verify-result-to-string "epg")
 (autoload 'epg-list-keys "epg")
 (autoload 'epg-decrypt-string "epg")
 (autoload 'epg-verify-string "epg")
@@ -755,6 +755,8 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
 (autoload 'epg-sub-key-capability "epg")
 (autoload 'epg-sub-key-validity "epg")
 (autoload 'epg-sub-key-fingerprint "epg")
+(autoload 'epg-signature-key-id "epg")
+(autoload 'epg-signature-to-string "epg")
 (autoload 'epg-configuration "epg-config")
 (autoload 'epg-expand-group "epg-config")
 (autoload 'epa-select-keys "epa")
@@ -818,6 +820,34 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
 	(setq secret-keys (cdr secret-keys))))
     secret-key))
 
+(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))))
+
+(defun mml2015-epg-key-image-to-string (key-id)
+  "Return a string with the image of a key, if any"
+  (let* ((result "")
+         (key-image (mml2015-epg-key-image key-id)))
+    (when key-image
+      (setq result "  ")
+      (put-text-property 1 2 'display key-image result))
+    result))
+
+(defun mml2015-epg-signature-to-string (signature)
+  (concat (epg-signature-to-string signature)
+	  (mml2015-epg-key-image-to-string (epg-signature-key-id signature))))
+
+(defun mml2015-epg-verify-result-to-string (verify-result)
+  (mapconcat #'mml2015-epg-signature-to-string verify-result "\n"))
+
 (defun mml2015-epg-decrypt (handle ctl)
   (catch 'error
     (let ((inhibit-redisplay t)
@@ -860,7 +890,7 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
 	    (mm-set-handle-multipart-parameter
 	     mm-security-handle 'gnus-info
 	     (concat "OK\n"
-		     (epg-verify-result-to-string
+		     (mml2015-epg-verify-result-to-string
 		      (epg-context-result-for context 'verify))))
 	  (mm-set-handle-multipart-parameter
 	   mm-security-handle 'gnus-info "OK"))
@@ -908,7 +938,7 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
       (if (epg-context-result-for context 'verify)
 	  (mm-set-handle-multipart-parameter
 	   mm-security-handle 'gnus-details
-	   (epg-verify-result-to-string
+	   (mml2015-epg-verify-result-to-string
 	    (epg-context-result-for context 'verify)))))))
 
 (defun mml2015-epg-verify (handle ctl)
@@ -942,7 +972,8 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
 	 (throw 'error handle)))
       (mm-set-handle-multipart-parameter
        mm-security-handle 'gnus-info
-       (epg-verify-result-to-string (epg-context-result-for context 'verify)))
+       (mml2015-epg-verify-result-to-string
+	(epg-context-result-for context 'verify)))
       handle)))
 
 (defun mml2015-epg-clear-verify ()
@@ -965,7 +996,7 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
 	(progn
 	  (mm-set-handle-multipart-parameter
 	   mm-security-handle 'gnus-info
-	   (epg-verify-result-to-string
+	   (mml2015-epg-verify-result-to-string
 	    (epg-context-result-for context 'verify)))
 	  (delete-region (point-min) (point-max))
 	  (insert (mm-decode-coding-string plain coding-system-for-read)))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog  |   16 ++++++++++++++++
 lisp/mml2015.el |   41 ++++++++++++++++++++++++++++++++++++-----
 2 files changed, 52 insertions(+), 5 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.