Fixed.
[elisp/epg.git] / epa.el
diff --git a/epa.el b/epa.el
index 8e23cd5..07e6697 100644 (file)
--- a/epa.el
+++ b/epa.el
   (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)