(interactive)
(let ((file-list (dired-get-marked-files)))
(while file-list
- (epa-sign-file (expand-file-name (car file-list)) t)
+ (epa-sign-file (expand-file-name (car file-list))
+ (y-or-n-p "Make a detached signature? "))
(setq file-list (cdr file-list)))
(revert-buffer)))
(defun epa-sign-file (file detached)
(interactive
(list (expand-file-name (read-file-name "File: "))
- current-prefix-arg))
+ (y-or-n-p "Make a detached signature? ")))
(let ((signature (concat file (if detached ".sig" ".gpg")))
(context (epg-make-context)))
(message "Signing %s..." (file-name-nondirectory file))
- (epg-sign-file context file signature (if detached 'detached))
+ (epg-sign-file context file signature (not (null detached)))
(message "Signing %s...done" (file-name-nondirectory file))))
(defun epa-encrypt-file (file recipients)