mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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))
|
||||
(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)))
|
||||
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).
|
||||
|
Reference in New Issue
Block a user