aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2006-09-05 08:17:35 +0000
committerMiles Bader2006-09-05 08:17:35 +0000
commit8fbdffe57a11cb95aa620a3a34b4bbe25219218d (patch)
tree966a9817e5467826b59ac8b36f5eccbc2d4d6d95
parent652bf3a19f5b1c8b72a0053b4d8fcb7879054285 (diff)
downloademacs-8fbdffe57a11cb95aa620a3a34b4bbe25219218d.tar.gz
emacs-8fbdffe57a11cb95aa620a3a34b4bbe25219218d.zip
Merge from gnus--rel--5.10
Patches applied: * gnus--rel--5.10 (patch 131-133) - Update from CVS 2006-09-05 Daiki Ueno <ueno@unixuser.org> * lisp/pgg.el (pgg-clear-string): Alias to clear-string for backward compatibility. * lisp/pgg-gpg.el (pgg-gpg-process-region): Avoid display blinking with inhibit-redisplay; encode passphrase with locale-coding-system. 2006-09-04 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/gnus-art.el (article-decode-encoded-words): Make it fast. 2006-09-04 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/gnus-art.el (article-decode-encoded-words): Don't infloop in XEmacs. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-424
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-art.el29
-rw-r--r--lisp/pgg-gpg.el20
-rw-r--r--lisp/pgg.el7
5 files changed, 53 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index be5a4d872de..f9cb36ca901 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12006-09-05 Daiki Ueno <ueno@unixuser.org>
2
3 * pgg.el (pgg-clear-string): Alias to clear-string for backward
4 compatibility.
5
6 * pgg-gpg.el (pgg-gpg-process-region): Avoid display blinking with
7 inhibit-redisplay; encode passphrase with locale-coding-system.
8
12006-09-04 Dan Nicolaescu <dann@ics.uci.edu> 92006-09-04 Dan Nicolaescu <dann@ics.uci.edu>
2 10
3 * term/xterm.el (terminal-init-xterm): Add more C-M- bindings. 11 * term/xterm.el (terminal-init-xterm): Add more C-M- bindings.
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 81d566fc856..25a7ff4c29a 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -5,6 +5,12 @@
5 5
62006-09-04 Katsumi Yamaoka <yamaoka@jpl.org> 62006-09-04 Katsumi Yamaoka <yamaoka@jpl.org>
7 7
8 * gnus-art.el (article-decode-encoded-words): Make it fast.
9
102006-09-04 Katsumi Yamaoka <yamaoka@jpl.org>
11
12 * gnus-art.el (article-decode-encoded-words): Don't infloop in XEmacs.
13
8 * rfc2047.el (rfc2047-strip-backslashes-in-quoted-strings): Decode `\\' 14 * rfc2047.el (rfc2047-strip-backslashes-in-quoted-strings): Decode `\\'
9 in quoted string into `\'. 15 in quoted string into `\'.
10 16
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 17cbbeb0a75..7690d533cc8 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -2381,22 +2381,23 @@ If PROMPT (the prefix), prompt for a coding system to use."
2381 (error)) 2381 (error))
2382 gnus-newsgroup-ignored-charsets)) 2382 gnus-newsgroup-ignored-charsets))
2383 (inhibit-read-only t) 2383 (inhibit-read-only t)
2384 start) 2384 end start)
2385 (save-restriction 2385 (goto-char (point-min))
2386 (article-narrow-to-head) 2386 (when (search-forward "\n\n" nil 'move)
2387 (while (not (eobp)) 2387 (forward-line -1))
2388 (setq start (point)) 2388 (setq end (point))
2389 (if (prog1 2389 (while (not (bobp))
2390 (looking-at "\ 2390 (while (progn
2391 (forward-line -1)
2392 (and (not (bobp))
2393 (memq (char-after) '(?\t ? )))))
2394 (setq start (point))
2395 (if (looking-at "\
2391\\(?:Resent-\\)?\\(?:From\\|Cc\\|To\\|Bcc\\|\\(?:In-\\)?Reply-To\\|Sender\ 2396\\(?:Resent-\\)?\\(?:From\\|Cc\\|To\\|Bcc\\|\\(?:In-\\)?Reply-To\\|Sender\
2392\\|Mail-Followup-To\\|Mail-Copies-To\\|Approved\\):") 2397\\|Mail-Followup-To\\|Mail-Copies-To\\|Approved\\):")
2393 (while (progn 2398 (funcall gnus-decode-address-function start end)
2394 (forward-line) 2399 (funcall gnus-decode-header-function start end))
2395 (if (eobp) 2400 (goto-char (setq end start)))))
2396 nil
2397 (memq (char-after) '(?\t ? ))))))
2398 (funcall gnus-decode-address-function start (point))
2399 (funcall gnus-decode-header-function start (point)))))))
2400 2401
2401(defun article-decode-group-name () 2402(defun article-decode-group-name ()
2402 "Decode group names in `Newsgroups:'." 2403 "Decode group names in `Newsgroups:'."
diff --git a/lisp/pgg-gpg.el b/lisp/pgg-gpg.el
index 46dbf833311..07be6c47f61 100644
--- a/lisp/pgg-gpg.el
+++ b/lisp/pgg-gpg.el
@@ -74,7 +74,10 @@
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 process status exit-status) 77 (inhibit-redisplay t)
78 process status exit-status
79 passphrase-with-newline
80 encoded-passphrase-with-new-line)
78 (with-current-buffer (get-buffer-create errors-buffer) 81 (with-current-buffer (get-buffer-create errors-buffer)
79 (buffer-disable-undo) 82 (buffer-disable-undo)
80 (erase-buffer)) 83 (erase-buffer))
@@ -87,7 +90,16 @@
87 program args))) 90 program args)))
88 (set-process-sentinel process #'ignore) 91 (set-process-sentinel process #'ignore)
89 (when passphrase 92 (when passphrase
90 (process-send-string process (concat passphrase "\n"))) 93 (setq passphrase-with-newline (concat passphrase "\n"))
94 (if (boundp 'locale-coding-system)
95 (progn
96 (setq encoded-passphrase-with-new-line
97 (encode-coding-string passphrase-with-newline
98 locale-coding-system))
99 (pgg-clear-string passphrase-with-newline))
100 (setq encoded-passphrase-with-new-line passphrase-with-newline
101 passphrase-with-newline nil))
102 (process-send-string process encoded-passphrase-with-new-line))
91 (process-send-region process start end) 103 (process-send-region process start end)
92 (process-send-eof process) 104 (process-send-eof process)
93 (while (eq 'run (process-status process)) 105 (while (eq 'run (process-status process))
@@ -108,6 +120,10 @@
108 (error "%s exited abnormally: '%s'" program exit-status)) 120 (error "%s exited abnormally: '%s'" program exit-status))
109 (if (= 127 exit-status) 121 (if (= 127 exit-status)
110 (error "%s could not be found" program)))) 122 (error "%s could not be found" program))))
123 (if passphrase-with-newline
124 (pgg-clear-string passphrase-with-newline))
125 (if encoded-passphrase-with-new-line
126 (pgg-clear-string encoded-passphrase-with-new-line))
111 (if (and process (eq 'run (process-status process))) 127 (if (and process (eq 'run (process-status process)))
112 (interrupt-process process)) 128 (interrupt-process process))
113 (if (file-exists-p output-file-name) 129 (if (file-exists-p output-file-name)
diff --git a/lisp/pgg.el b/lisp/pgg.el
index 7a30dafce8d..e8a85b58fae 100644
--- a/lisp/pgg.el
+++ b/lisp/pgg.el
@@ -148,6 +148,11 @@ regulate cache behavior."
148 #'pgg-remove-passphrase-from-cache 148 #'pgg-remove-passphrase-from-cache
149 key notruncate)))) 149 key notruncate))))
150 150
151(if (fboundp 'clear-string)
152 (defalias 'pgg-clear-string 'clear-string)
153 (defun pgg-clear-string (string)
154 (fillarray string ?_)))
155
151(defun pgg-remove-passphrase-from-cache (key &optional notruncate) 156(defun pgg-remove-passphrase-from-cache (key &optional notruncate)
152 "Omit passphrase associated with KEY in time-limited passphrase cache. 157 "Omit passphrase associated with KEY in time-limited passphrase cache.
153 158
@@ -166,7 +171,7 @@ regulate cache behavior."
166 (interned-timer-key (intern-soft key pgg-pending-timers)) 171 (interned-timer-key (intern-soft key pgg-pending-timers))
167 (old-timer (symbol-value interned-timer-key))) 172 (old-timer (symbol-value interned-timer-key)))
168 (when passphrase 173 (when passphrase
169 (fillarray passphrase ?_) 174 (pgg-clear-string passphrase)
170 (unintern key pgg-passphrase-cache)) 175 (unintern key pgg-passphrase-cache))
171 (when old-timer 176 (when old-timer
172 (pgg-cancel-timer old-timer) 177 (pgg-cancel-timer old-timer)