1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(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.
This commit is contained in:
Ken Manheimer 2011-02-17 17:57:38 -05:00
parent 3a00a36316
commit 2a095cec7a
3 changed files with 12 additions and 4 deletions

View file

@ -4,6 +4,9 @@
(allout-widgets-icons-dark-subdir): Track relocations of icons
* lisp/allout.el: Remove commentary about remove encryption
passphrase mnemonic support and verification.
(allout-encrypt-string): (allout-encrypt-string): Recognize epg
failure to decrypt gpg2 armored text using gpg1, and indicate that
the gpg version *might* be the problem in the error message.
2011-02-17 Deniz Dogan <deniz.a.m.dogan@gmail.com>

View file

@ -6086,9 +6086,14 @@ signal."
(setq result-text
(if decrypt
(epg-decrypt-string epg-context
(encode-coding-string massaged-text
(or encoding 'utf-8)))
(condition-case err
(epg-decrypt-string epg-context
(encode-coding-string massaged-text
(or encoding 'utf-8)))
(epg-error
(signal 'egp-error
(cons (concat (cadr err) " - gpg version problem?")
(cddr err)))))
(replace-regexp-in-string "\n$" ""
(epg-encrypt-string epg-context
(encode-coding-string massaged-text

View file

@ -4029,7 +4029,7 @@ true then the type of the file linked to by FILE is printed instead.
;;;***
;;;### (autoloads (dired-do-relsymlink dired-jump) "dired-x" "dired-x.el"
;;;;;; "d35468f85920d324895b0c04bb703328")
;;;;;; "a2af6147cf06b53166d9e1a3bb200675")
;;; Generated autoloads from dired-x.el
(autoload 'dired-jump "dired-x" "\