aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Manheimer2011-02-17 17:57:38 -0500
committerKen Manheimer2011-02-17 17:57:38 -0500
commit2a095cec7ae4b3e076bcb0aba542248c3660e158 (patch)
tree3a62369ce1dc29d76475bae0d68992b9502437d9
parent3a00a36316bcc52882c13351df11bcd39bad5c1a (diff)
downloademacs-2a095cec7ae4b3e076bcb0aba542248c3660e158.tar.gz
emacs-2a095cec7ae4b3e076bcb0aba542248c3660e158.zip
(allout-encrypt-string): Recognize epg failure to decrypt gpg2 armored text
using gpg1, and add indication the gpg version *might* be the problem in the error message.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/allout.el11
-rw-r--r--lisp/dired.el2
3 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c6b67ccfd73..c149e208634 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -4,6 +4,9 @@
4 (allout-widgets-icons-dark-subdir): Track relocations of icons 4 (allout-widgets-icons-dark-subdir): Track relocations of icons
5 * lisp/allout.el: Remove commentary about remove encryption 5 * lisp/allout.el: Remove commentary about remove encryption
6 passphrase mnemonic support and verification. 6 passphrase mnemonic support and verification.
7 (allout-encrypt-string): (allout-encrypt-string): Recognize epg
8 failure to decrypt gpg2 armored text using gpg1, and indicate that
9 the gpg version *might* be the problem in the error message.
7 10
82011-02-17 Deniz Dogan <deniz.a.m.dogan@gmail.com> 112011-02-17 Deniz Dogan <deniz.a.m.dogan@gmail.com>
9 12
diff --git a/lisp/allout.el b/lisp/allout.el
index 4496f9a9f00..1a7d8cb1593 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -6086,9 +6086,14 @@ signal."
6086 6086
6087 (setq result-text 6087 (setq result-text
6088 (if decrypt 6088 (if decrypt
6089 (epg-decrypt-string epg-context 6089 (condition-case err
6090 (encode-coding-string massaged-text 6090 (epg-decrypt-string epg-context
6091 (or encoding 'utf-8))) 6091 (encode-coding-string massaged-text
6092 (or encoding 'utf-8)))
6093 (epg-error
6094 (signal 'egp-error
6095 (cons (concat (cadr err) " - gpg version problem?")
6096 (cddr err)))))
6092 (replace-regexp-in-string "\n$" "" 6097 (replace-regexp-in-string "\n$" ""
6093 (epg-encrypt-string epg-context 6098 (epg-encrypt-string epg-context
6094 (encode-coding-string massaged-text 6099 (encode-coding-string massaged-text
diff --git a/lisp/dired.el b/lisp/dired.el
index 058dbdc548a..22d9f91648c 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -4029,7 +4029,7 @@ true then the type of the file linked to by FILE is printed instead.
4029;;;*** 4029;;;***
4030 4030
4031;;;### (autoloads (dired-do-relsymlink dired-jump) "dired-x" "dired-x.el" 4031;;;### (autoloads (dired-do-relsymlink dired-jump) "dired-x" "dired-x.el"
4032;;;;;; "d35468f85920d324895b0c04bb703328") 4032;;;;;; "a2af6147cf06b53166d9e1a3bb200675")
4033;;; Generated autoloads from dired-x.el 4033;;; Generated autoloads from dired-x.el
4034 4034
4035(autoload 'dired-jump "dired-x" "\ 4035(autoload 'dired-jump "dired-x" "\