(let ((args (append (list "--with-colons" "--no-greeting" "--batch"
"--with-fingerprint"
"--with-fingerprint"
- (if (or (eq mode t) (eq mode 'secret))
+ (if (memq mode '(t secret))
"--list-secret-keys"
(if mode
"--list-sigs"
`epg-sign-file' or `epg-sign-string' instead."
(epg-context-set-result context nil)
(epg-start context
- (append (list (if (or (eq mode t) (eq mode 'detached))
+ (append (list (if (memq mode '(t detached))
"--detach-sign"
- (if (or (null mode) (eq mode 'normal))
+ (if (memq mode '(nil normal))
"--sign"
"--clearsign")))
(apply #'nconc