# HG changeset patch # User Lars Magne Ingebrigtsen # Date 1286630844 -7200 # Node ID f60f4abe5849a9c00d556586ed83e5b9f884e9ab # Parent f6e34c8648a7ec83064404abff1de54e28b8772e (epa-passphrase-callback-function): Say what we're querying the password for. diff -r f6e34c8648a7 -r f60f4abe5849 lisp/ChangeLog --- a/lisp/ChangeLog Sat Oct 09 15:23:29 2010 +0200 +++ b/lisp/ChangeLog Sat Oct 09 15:27:24 2010 +0200 @@ -1,5 +1,8 @@ 2010-10-09 Lars Magne Ingebrigtsen + * epa.el (epa-passphrase-callback-function): Say what we're + querying the password for. + * ibuffer.el (ibuffer-visit-buffer): To mimick list-buffers behaviour, don't bury the ibuffer buffer when visiting other buffers. diff -r f6e34c8648a7 -r f60f4abe5849 lisp/epa.el --- a/lisp/epa.el Sat Oct 09 15:23:29 2010 +0200 +++ b/lisp/epa.el Sat Oct 09 15:27:24 2010 +0200 @@ -635,8 +635,15 @@ (defun epa-passphrase-callback-function (context key-id handback) (if (eq key-id 'SYM) - (read-passwd "Passphrase for symmetric encryption: " - (eq (epg-context-operation context) 'encrypt)) + (read-passwd + (format "Passphrase for symmetric encryption%s: " + (let ((elem (epg-context-passphrase-callback context))) + ;; Add the file name to the prompt, if any. + (if (and (consp elem) + (stringp (cdr elem))) + (format " for %s" (cdr elem)) + ""))) + (eq (epg-context-operation context) 'encrypt)) (read-passwd (if (eq key-id 'PIN) "Passphrase for PIN: "