]> git.eshelyaron.com Git - emacs.git/commitdiff
Merge from gnus--rel--5.10
authorMiles Bader <miles@gnu.org>
Mon, 4 Sep 2006 06:27:27 +0000 (06:27 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 4 Sep 2006 06:27:27 +0000 (06:27 +0000)
Patches applied:

 * gnus--rel--5.10  (patch 129-130)

   - Merge from emacs--devo--0
   - Update from CVS

2006-09-04  Daiki Ueno  <ueno@unixuser.org>

   * lisp/pgg-gpg.el (pgg-gpg-process-region): Revert two patches from Satyaki
   Das.  http://article.gmane.org/gmane.emacs.gnus.general/49947
   http://article.gmane.org/gmane.emacs.gnus.general/50457

2006-09-04  Katsumi Yamaoka  <yamaoka@jpl.org>

   * lisp/gnus/rfc2047.el (rfc2047-strip-backslashes-in-quoted-strings): Decode `\\'
   in quoted string into `\'.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-421

lisp/ChangeLog
lisp/gnus/ChangeLog
lisp/gnus/rfc2047.el
lisp/pgg-gpg.el

index 8712304b3632b48aedb1c97cda1e337a5b867f99..9013d010f62f770430699b7a4f90dc046b0a8d4a 100644 (file)
@@ -1,3 +1,9 @@
+2006-09-04  Daiki Ueno  <ueno@unixuser.org>
+
+       * pgg-gpg.el (pgg-gpg-process-region): Revert two patches from Satyaki
+       Das.  http://article.gmane.org/gmane.emacs.gnus.general/49947
+       http://article.gmane.org/gmane.emacs.gnus.general/50457
+
 2006-09-03  Chong Yidong  <cyd@stupidchicken.com>
 
        * cus-edit.el (custom-group-menu-create): Avoid deactivating the
index 87f00faef76eefe5d56d2dcb0d450de6a64fff0f..c46cc3d87f9e69c11cfc49ecb134eb272b78bc4f 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-04  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * rfc2047.el (rfc2047-strip-backslashes-in-quoted-strings): Decode `\\'
+       in quoted string into `\'.
+
 2006-09-01  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings):
        * gnus-sum.el (gnus-get-newsgroup-headers-xover): Group is an
        optional parameter.
 
-2006-04-07  Reiner Steib  <Reiner.Steib@gmx.de>
-
-       * pgg-gpg.el: Revert to revision 7.15 to allow the use of gpg-agent.
-
 2006-04-06  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * gnus-fun.el (gnus): Require it for gnus-directory.
index dc51a104c2ff40c5847ec677708f7e1348c0c4aa..cda7979252f05f867cafb6832c4bc45fa260b82a 100644 (file)
@@ -859,7 +859,7 @@ the decoder will fully decode each encoded-word before concatenating
 them.")
 
 (defun rfc2047-strip-backslashes-in-quoted-strings ()
-  "Strip backslashes in quoted strings.  `\\\"' and `\\\\' remain."
+  "Strip backslashes in quoted strings.  `\\\"' remains."
   (goto-char (point-min))
   (let (beg)
     (with-syntax-table (standard-syntax-table)
@@ -874,7 +874,7 @@ them.")
                  (narrow-to-region beg (1- (point)))
                  (goto-char beg)
                  (while (search-forward "\\" nil 'move)
-                   (unless (memq (char-after) '(?\" ?\\))
+                   (unless (memq (char-after) '(?\"))
                      (delete-backward-char 1))
                    (forward-char)))
                (forward-char))
index ab91471a619eb10d4aa3b39fbe5cd233f74fd956..46dbf833311a8b1af1a4334297c6e2d6248138c7 100644 (file)
         (errors-buffer pgg-errors-buffer)
         (orig-mode (default-file-modes))
         (process-connection-type nil)
-        exit-status)
+        process status exit-status)
     (with-current-buffer (get-buffer-create errors-buffer)
       (buffer-disable-undo)
       (erase-buffer))
     (unwind-protect
        (progn
          (set-default-file-modes 448)
-         (let ((coding-system-for-write 'binary)
-               (input (buffer-substring-no-properties start end))
-               (default-enable-multibyte-characters nil))
-           (with-temp-buffer
-             (when passphrase
-               (insert passphrase "\n"))
-             (insert input)
-             (setq exit-status
-                   (apply #'call-process-region (point-min) (point-max) program
-                          nil errors-buffer nil args))))
+         (let ((coding-system-for-write 'binary))
+           (setq process
+                 (apply #'start-process "*GnuPG*" errors-buffer
+                        program args)))
+         (set-process-sentinel process #'ignore)
+         (when passphrase
+           (process-send-string process (concat passphrase "\n")))
+         (process-send-region process start end)
+         (process-send-eof process)
+         (while (eq 'run (process-status process))
+           (accept-process-output process 5))
+         (setq status (process-status process)
+               exit-status (process-exit-status process))
+         (delete-process process)
          (with-current-buffer (get-buffer-create output-buffer)
            (buffer-disable-undo)
            (erase-buffer)
                                                'binary)))
                  (insert-file-contents output-file-name)))
            (set-buffer errors-buffer)
-           (if (not (equal exit-status 0))
-               (insert (format "\n%s exited abnormally: '%s'\n"
-                               program exit-status)))))
+           (if (memq status '(stop signal))
+               (error "%s exited abnormally: '%s'" program exit-status))
+           (if (= 127 exit-status)
+               (error "%s could not be found" program))))
+      (if (and process (eq 'run (process-status process)))
+         (interrupt-process process))
       (if (file-exists-p output-file-name)
          (delete-file output-file-name))
       (set-default-file-modes orig-mode))))