(setq file-list (cdr file-list)))
(revert-buffer)))
-(defun epa-dired-do-sign (&optional detached)
+(defun epa-dired-do-sign ()
"Sign marked files."
- (interactive "P")
+ (interactive)
(let ((file-list (dired-get-marked-files)))
(while file-list
- (epa-sign-file (expand-file-name (car file-list)) detached)
+ (epa-sign-file (expand-file-name (car file-list)) t)
(setq file-list (cdr file-list)))
(revert-buffer)))
(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)
+ (epg-sign-file context file signature (if detached 'detached))
(message "Signing %s...done" (file-name-nondirectory file))))
(defun epa-encrypt-file (file recipients)