* epa.el (epa-validity-face-alist): Fixed misuse of the list
widget type.
(epa-font-lock-keywords): Define as defvar.
+ (epa--show-key): Don't signal an error even if a time cannot be decoded.
* epa-file.el (epa-file-auto-mode-alist-entry): New variable.
(epa-file-enable): Install a strip-suffix entry in auto-mode-alist.
(cdr (assq (epg-sub-key-algorithm (car pointer))
epg-pubkey-algorithm-alist))
"\n\tCreated: "
- (format-time-string "%Y-%m-%d"
- (epg-sub-key-creation-time (car pointer)))
+ (condition-case nil
+ (format-time-string "%Y-%m-%d"
+ (epg-sub-key-creation-time (car pointer)))
+ (error "????-??-??"))
(if (epg-sub-key-expiration-time (car pointer))
(format "\n\tExpires: %s"
- (format-time-string "%Y-%m-%d"
- (epg-sub-key-expiration-time
- (car pointer))))
+ (condition-case nil
+ (format-time-string "%Y-%m-%d"
+ (epg-sub-key-expiration-time
+ (car pointer)))
+ (error "????-??-??")))
"")
"\n\tCapabilities: "
(mapconcat #'symbol-name