diff options
| author | Miles Bader | 2006-09-04 06:27:27 +0000 |
|---|---|---|
| committer | Miles Bader | 2006-09-04 06:27:27 +0000 |
| commit | d709390421bc438bfcf6d24e4f07a51e20c84fa1 (patch) | |
| tree | 2e5b5945a1b9f08035e742584f0c543b0f77fe0f | |
| parent | a8c3a596c22764463b674a21eb3b2e869b21e42f (diff) | |
| download | emacs-d709390421bc438bfcf6d24e4f07a51e20c84fa1.tar.gz emacs-d709390421bc438bfcf6d24e4f07a51e20c84fa1.zip | |
Merge from gnus--rel--5.10
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
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/gnus/rfc2047.el | 4 | ||||
| -rw-r--r-- | lisp/pgg-gpg.el | 35 |
4 files changed, 34 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8712304b363..9013d010f62 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2006-09-04 Daiki Ueno <ueno@unixuser.org> | ||
| 2 | |||
| 3 | * pgg-gpg.el (pgg-gpg-process-region): Revert two patches from Satyaki | ||
| 4 | Das. http://article.gmane.org/gmane.emacs.gnus.general/49947 | ||
| 5 | http://article.gmane.org/gmane.emacs.gnus.general/50457 | ||
| 6 | |||
| 1 | 2006-09-03 Chong Yidong <cyd@stupidchicken.com> | 7 | 2006-09-03 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * cus-edit.el (custom-group-menu-create): Avoid deactivating the | 9 | * cus-edit.el (custom-group-menu-create): Avoid deactivating the |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 87f00faef76..c46cc3d87f9 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-09-04 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * rfc2047.el (rfc2047-strip-backslashes-in-quoted-strings): Decode `\\' | ||
| 4 | in quoted string into `\'. | ||
| 5 | |||
| 1 | 2006-09-01 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2006-09-01 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings): | 8 | * rfc2047.el (rfc2047-quote-special-characters-in-quoted-strings): |
| @@ -419,10 +424,6 @@ | |||
| 419 | * gnus-sum.el (gnus-get-newsgroup-headers-xover): Group is an | 424 | * gnus-sum.el (gnus-get-newsgroup-headers-xover): Group is an |
| 420 | optional parameter. | 425 | optional parameter. |
| 421 | 426 | ||
| 422 | 2006-04-07 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 423 | |||
| 424 | * pgg-gpg.el: Revert to revision 7.15 to allow the use of gpg-agent. | ||
| 425 | |||
| 426 | 2006-04-06 Reiner Steib <Reiner.Steib@gmx.de> | 427 | 2006-04-06 Reiner Steib <Reiner.Steib@gmx.de> |
| 427 | 428 | ||
| 428 | * gnus-fun.el (gnus): Require it for gnus-directory. | 429 | * gnus-fun.el (gnus): Require it for gnus-directory. |
diff --git a/lisp/gnus/rfc2047.el b/lisp/gnus/rfc2047.el index dc51a104c2f..cda7979252f 100644 --- a/lisp/gnus/rfc2047.el +++ b/lisp/gnus/rfc2047.el | |||
| @@ -859,7 +859,7 @@ the decoder will fully decode each encoded-word before concatenating | |||
| 859 | them.") | 859 | them.") |
| 860 | 860 | ||
| 861 | (defun rfc2047-strip-backslashes-in-quoted-strings () | 861 | (defun rfc2047-strip-backslashes-in-quoted-strings () |
| 862 | "Strip backslashes in quoted strings. `\\\"' and `\\\\' remain." | 862 | "Strip backslashes in quoted strings. `\\\"' remains." |
| 863 | (goto-char (point-min)) | 863 | (goto-char (point-min)) |
| 864 | (let (beg) | 864 | (let (beg) |
| 865 | (with-syntax-table (standard-syntax-table) | 865 | (with-syntax-table (standard-syntax-table) |
| @@ -874,7 +874,7 @@ them.") | |||
| 874 | (narrow-to-region beg (1- (point))) | 874 | (narrow-to-region beg (1- (point))) |
| 875 | (goto-char beg) | 875 | (goto-char beg) |
| 876 | (while (search-forward "\\" nil 'move) | 876 | (while (search-forward "\\" nil 'move) |
| 877 | (unless (memq (char-after) '(?\" ?\\)) | 877 | (unless (memq (char-after) '(?\")) |
| 878 | (delete-backward-char 1)) | 878 | (delete-backward-char 1)) |
| 879 | (forward-char))) | 879 | (forward-char))) |
| 880 | (forward-char)) | 880 | (forward-char)) |
diff --git a/lisp/pgg-gpg.el b/lisp/pgg-gpg.el index ab91471a619..46dbf833311 100644 --- a/lisp/pgg-gpg.el +++ b/lisp/pgg-gpg.el | |||
| @@ -74,23 +74,27 @@ | |||
| 74 | (errors-buffer pgg-errors-buffer) | 74 | (errors-buffer pgg-errors-buffer) |
| 75 | (orig-mode (default-file-modes)) | 75 | (orig-mode (default-file-modes)) |
| 76 | (process-connection-type nil) | 76 | (process-connection-type nil) |
| 77 | exit-status) | 77 | process status exit-status) |
| 78 | (with-current-buffer (get-buffer-create errors-buffer) | 78 | (with-current-buffer (get-buffer-create errors-buffer) |
| 79 | (buffer-disable-undo) | 79 | (buffer-disable-undo) |
| 80 | (erase-buffer)) | 80 | (erase-buffer)) |
| 81 | (unwind-protect | 81 | (unwind-protect |
| 82 | (progn | 82 | (progn |
| 83 | (set-default-file-modes 448) | 83 | (set-default-file-modes 448) |
| 84 | (let ((coding-system-for-write 'binary) | 84 | (let ((coding-system-for-write 'binary)) |
| 85 | (input (buffer-substring-no-properties start end)) | 85 | (setq process |
| 86 | (default-enable-multibyte-characters nil)) | 86 | (apply #'start-process "*GnuPG*" errors-buffer |
| 87 | (with-temp-buffer | 87 | program args))) |
| 88 | (when passphrase | 88 | (set-process-sentinel process #'ignore) |
| 89 | (insert passphrase "\n")) | 89 | (when passphrase |
| 90 | (insert input) | 90 | (process-send-string process (concat passphrase "\n"))) |
| 91 | (setq exit-status | 91 | (process-send-region process start end) |
| 92 | (apply #'call-process-region (point-min) (point-max) program | 92 | (process-send-eof process) |
| 93 | nil errors-buffer nil args)))) | 93 | (while (eq 'run (process-status process)) |
| 94 | (accept-process-output process 5)) | ||
| 95 | (setq status (process-status process) | ||
| 96 | exit-status (process-exit-status process)) | ||
| 97 | (delete-process process) | ||
| 94 | (with-current-buffer (get-buffer-create output-buffer) | 98 | (with-current-buffer (get-buffer-create output-buffer) |
| 95 | (buffer-disable-undo) | 99 | (buffer-disable-undo) |
| 96 | (erase-buffer) | 100 | (erase-buffer) |
| @@ -100,9 +104,12 @@ | |||
| 100 | 'binary))) | 104 | 'binary))) |
| 101 | (insert-file-contents output-file-name))) | 105 | (insert-file-contents output-file-name))) |
| 102 | (set-buffer errors-buffer) | 106 | (set-buffer errors-buffer) |
| 103 | (if (not (equal exit-status 0)) | 107 | (if (memq status '(stop signal)) |
| 104 | (insert (format "\n%s exited abnormally: '%s'\n" | 108 | (error "%s exited abnormally: '%s'" program exit-status)) |
| 105 | program exit-status))))) | 109 | (if (= 127 exit-status) |
| 110 | (error "%s could not be found" program)))) | ||
| 111 | (if (and process (eq 'run (process-status process))) | ||
| 112 | (interrupt-process process)) | ||
| 106 | (if (file-exists-p output-file-name) | 113 | (if (file-exists-p output-file-name) |
| 107 | (delete-file output-file-name)) | 114 | (delete-file output-file-name)) |
| 108 | (set-default-file-modes orig-mode)))) | 115 | (set-default-file-modes orig-mode)))) |