Fixed.
authorueno <ueno>
Tue, 18 Apr 2006 10:36:50 +0000 (10:36 +0000)
committerueno <ueno>
Tue, 18 Apr 2006 10:36:50 +0000 (10:36 +0000)
pgg-epg.el

index 1c8a133..e695b2a 100644 (file)
@@ -92,10 +92,11 @@ passphrase cache or user."
     (epg-context-set-textmode context pgg-text-mode)
     (setq signature (epg-sign-string context (buffer-substring start end)
                                     (if cleartext
-                                        'cleartext
+                                        'clearsign
                                       'detached)))
     (save-excursion
       (set-buffer (get-buffer-create pgg-output-buffer))
+      (erase-buffer)
       (insert signature))
     t))