aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2010-10-09 15:27:24 +0200
committerLars Magne Ingebrigtsen2010-10-09 15:27:24 +0200
commit7450df5dfcac171bae556c26261ab2873573f34c (patch)
tree891a28f178f2260b874303b6474c8559efb81a3e
parentcf321e508bb17e6339b3482d9484cd12244c6433 (diff)
downloademacs-7450df5dfcac171bae556c26261ab2873573f34c.tar.gz
emacs-7450df5dfcac171bae556c26261ab2873573f34c.zip
(epa-passphrase-callback-function): Say what we're querying the password for.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/epa.el11
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1b38724aa87..3679a448430 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org> 12010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * epa.el (epa-passphrase-callback-function): Say what we're
4 querying the password for.
5
3 * ibuffer.el (ibuffer-visit-buffer): To mimick list-buffers 6 * ibuffer.el (ibuffer-visit-buffer): To mimick list-buffers
4 behaviour, don't bury the ibuffer buffer when visiting other 7 behaviour, don't bury the ibuffer buffer when visiting other
5 buffers. 8 buffers.
diff --git a/lisp/epa.el b/lisp/epa.el
index 8d77d6938b1..49ff3455c23 100644
--- a/lisp/epa.el
+++ b/lisp/epa.el
@@ -635,8 +635,15 @@ If SECRET is non-nil, list secret keys instead of public keys."
635 635
636(defun epa-passphrase-callback-function (context key-id handback) 636(defun epa-passphrase-callback-function (context key-id handback)
637 (if (eq key-id 'SYM) 637 (if (eq key-id 'SYM)
638 (read-passwd "Passphrase for symmetric encryption: " 638 (read-passwd
639 (eq (epg-context-operation context) 'encrypt)) 639 (format "Passphrase for symmetric encryption%s: "
640 (let ((elem (epg-context-passphrase-callback context)))
641 ;; Add the file name to the prompt, if any.
642 (if (and (consp elem)
643 (stringp (cdr elem)))
644 (format " for %s" (cdr elem))
645 "")))
646 (eq (epg-context-operation context) 'encrypt))
640 (read-passwd 647 (read-passwd
641 (if (eq key-id 'PIN) 648 (if (eq key-id 'PIN)
642 "Passphrase for PIN: " 649 "Passphrase for PIN: "