mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Make epa-file progress message user-friendly.
* epa.el (epa-progress-callback-function): Fix the logic of displaying progress. * epa-file.el (epa-file-insert-file-contents): Make progress display more user-friendly. (epa-file-write-region): Ditto.
This commit is contained in:
parent
fb568e6327
commit
9d5cb6312b
3 changed files with 27 additions and 8 deletions
|
|
@ -137,8 +137,10 @@ encryption is used."
|
|||
context
|
||||
(cons #'epa-file-passphrase-callback-function
|
||||
local-file))
|
||||
(epg-context-set-progress-callback context
|
||||
#'epa-progress-callback-function)
|
||||
(epg-context-set-progress-callback
|
||||
context
|
||||
(cons #'epa-progress-callback-function
|
||||
(format "Decrypting %s" file)))
|
||||
(unwind-protect
|
||||
(progn
|
||||
(if replace
|
||||
|
|
@ -211,8 +213,10 @@ encryption is used."
|
|||
context
|
||||
(cons #'epa-file-passphrase-callback-function
|
||||
file))
|
||||
(epg-context-set-progress-callback context
|
||||
#'epa-progress-callback-function)
|
||||
(epg-context-set-progress-callback
|
||||
context
|
||||
(cons #'epa-progress-callback-function
|
||||
(format "Encrypting %s" file)))
|
||||
(epg-context-set-armor context epa-armor)
|
||||
(condition-case error
|
||||
(setq string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue