fix(default): no usable configuration epg-error
Introduced indcae28c83a
, because ignore-errors was being used for the wrong epg-* function. Why this happens: epg-make-context throws this error if you don't have a GnuPG environment set up. Fix: #6114 Amend:dcae28c83a
This commit is contained in:
parent
fc868105ce
commit
26d5163ba0
1 changed files with 7 additions and 7 deletions
|
@ -40,13 +40,13 @@
|
|||
epa-file-encrypt-to
|
||||
(or (default-value 'epa-file-encrypt-to)
|
||||
(unless (string-empty-p user-full-name)
|
||||
(cl-loop with context = (epg-make-context)
|
||||
for key in (ignore-errors (epg-list-keys context user-full-name 'public))
|
||||
for subkey = (car (epg-key-sub-key-list key))
|
||||
if (not (memq 'disabled (epg-sub-key-capability subkey)))
|
||||
if (< (or (epg-sub-key-expiration-time subkey) 0)
|
||||
(time-to-seconds))
|
||||
collect (epg-sub-key-fingerprint subkey)))
|
||||
(when-let (context (ignore-errors (epg-make-context)))
|
||||
(cl-loop for key in (epg-list-keys context user-full-name 'public)
|
||||
for subkey = (car (epg-key-sub-key-list key))
|
||||
if (not (memq 'disabled (epg-sub-key-capability subkey)))
|
||||
if (< (or (epg-sub-key-expiration-time subkey) 0)
|
||||
(time-to-seconds))
|
||||
collect (epg-sub-key-fingerprint subkey))))
|
||||
user-mail-address))
|
||||
;; And suppress prompts if epa-file-encrypt-to has a default value (without
|
||||
;; overwriting file-local values).
|
||||
|
|
Loading…
Reference in a new issue