* pgg-gpg.el (pgg-scheme-verify-region): Copy contents of
authorueno <ueno>
Wed, 17 Dec 2003 06:34:12 +0000 (06:34 +0000)
committerueno <ueno>
Wed, 17 Dec 2003 06:34:12 +0000 (06:34 +0000)
pgg-errors-buffer into pgg-output-buffer for backward compatibility.
(pgg-scheme-snarf-keys-region): Ditto.

ChangeLog
pgg-gpg.el

index 4e5f1f0..3d4e837 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,9 +3,6 @@
        * pgg-gpg.el (pgg-gpg-messages-locale): New user option.
        (pgg-gpg-process-region): Set environment variable LC_ALL when
        pgg-gpg-messages-locale is specified.
-       (pgg-scheme-verify-region): Don't copy messages from
-       pgg-errors-buffer to pgg-output-buffer.
-       (pgg-scheme-snarf-keys-region): Ditto.
 
        * pgg-def.el (pgg-messages-locale): New user option.
 
index 1b24cdd..957ea61 100644 (file)
       (goto-char (point-min))
       (prog1 (re-search-forward "^\\[GNUPG:] GOODSIG\\>" nil t)
        (goto-char (point-min))
-       (delete-matching-lines "^\\[GNUPG:] ")))))
+       (delete-matching-lines "^\\[GNUPG:] ")
+       ;; XXX: copy contents of pgg-errors-buffer into
+       ;; pgg-output-buffer for backward compatibility.
+       (with-current-buffer pgg-output-buffer
+         (set-buffer-multibyte t)
+         (insert-buffer-substring pgg-errors-buffer))))))
 
 (luna-define-method pgg-scheme-insert-key ((scheme pgg-scheme-gpg))
   (let* ((pgg-gpg-user-id (or pgg-gpg-user-id pgg-default-user-id))
              (if (zerop (aref status 9))
                  ""
                "\tSecret keys are imported.\n"))
-      (append-to-buffer pgg-errors-buffer (point-min)(point-max))
+      ;; XXX: copy contents of pgg-errors-buffer into
+      ;; pgg-output-buffer for backward compatibility.
+      (with-current-buffer pgg-output-buffer
+       (set-buffer-multibyte t)
+       (insert-buffer-substring pgg-errors-buffer))
       t)))
 
 (provide 'pgg-gpg)