aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-09-21 22:34:54 +0000
committerKatsumi Yamaoka2011-09-21 22:34:54 +0000
commita5166359b9fc59e0086172d198d68126da76bf14 (patch)
tree92975b9cb0aab90779f922d48df79c80067f5e91
parente233ce558d12fdf9e0e69ea30c4558ec7477fea4 (diff)
downloademacs-a5166359b9fc59e0086172d198d68126da76bf14.tar.gz
emacs-a5166359b9fc59e0086172d198d68126da76bf14.zip
Merge changes made in Gnus trunk.
gnus.texi (Archived Messages): Note the default (bug#9552). message.el (message-indent-citation): Really make sure there's a newline at the end. nnimap.el (nnimap-parse-flags): Make regexp less prone to overflows. Fix suggested by John Wiegley. pop3.el (pop3-open-server): Fix +OK end-of-command regexp. gnus-art.el (gnus-treat-hide-citation): Add doc. message.el (message-default-send-rename-function): Break out into its own function. ecomplete.el (ecomplete-display-matches): Revert patch since it doesn't work under XEmacs. nnimap.el (nnimap-map-port): New function to connect to 993 instead of "imaps" to word around Windows problems. (nnimap-open-connection-1): Use it. message.el (message-indent-citation): Revert last change which made `F' not work.
-rw-r--r--doc/misc/ChangeLog4
-rw-r--r--doc/misc/gnus.texi2
-rw-r--r--lisp/gnus/ChangeLog25
-rw-r--r--lisp/gnus/ecomplete.el9
-rw-r--r--lisp/gnus/gnus-art.el5
-rw-r--r--lisp/gnus/message.el58
-rw-r--r--lisp/gnus/nnimap.el10
-rw-r--r--lisp/gnus/pop3.el2
8 files changed, 78 insertions, 37 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 78d762b0b8f..6af229bbdda 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,7 @@
12011-09-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * gnus.texi (Archived Messages): Note the default (bug#9552).
4
12011-09-21 Bill Wohler <wohler@newt.com> 52011-09-21 Bill Wohler <wohler@newt.com>
2 6
3 Release MH-E manual version 8.3. 7 Release MH-E manual version 8.3.
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 59c39893c13..211bfdb5509 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -12617,7 +12617,7 @@ Messages will be saved in all those groups.
12617When a key ``matches'', the result is used. 12617When a key ``matches'', the result is used.
12618 12618
12619@item @code{nil} 12619@item @code{nil}
12620No message archiving will take place. This is the default. 12620No message archiving will take place.
12621@end table 12621@end table
12622 12622
12623Let's illustrate: 12623Let's illustrate:
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 2487f21c151..1fa5ffff0c9 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,28 @@
12011-09-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * message.el (message-indent-citation): Really make sure there's a
4 newline at the end.
5
6 * nnimap.el (nnimap-parse-flags): Make regexp less prone to overflows.
7 Fix suggested by John Wiegley.
8
9 * pop3.el (pop3-open-server): Fix +OK end-of-command regexp.
10
11 * gnus-art.el (gnus-treat-hide-citation): Add doc.
12
13 * message.el (message-default-send-rename-function): Break out into its
14 own function.
15
16 * ecomplete.el (ecomplete-display-matches): Revert patch since it
17 doesn't work under XEmacs.
18
19 * nnimap.el (nnimap-map-port): New function to connect to 993 instead
20 of "imaps" to word around Windows problems.
21 (nnimap-open-connection-1): Use it.
22
23 * message.el (message-indent-citation): Revert last change which made
24 `F' not work.
25
12011-09-13 Kan-Ru Chen <kanru@kanru.info> 262011-09-13 Kan-Ru Chen <kanru@kanru.info>
2 27
3 * ecomplete.el (ecomplete-display-matches): Intercept key sequence from 28 * ecomplete.el (ecomplete-display-matches): Intercept key sequence from
diff --git a/lisp/gnus/ecomplete.el b/lisp/gnus/ecomplete.el
index 737c0dba1d9..6a47b119f10 100644
--- a/lisp/gnus/ecomplete.el
+++ b/lisp/gnus/ecomplete.el
@@ -123,15 +123,14 @@
123 (message "%s" matches) 123 (message "%s" matches)
124 nil) 124 nil)
125 (setq highlight (ecomplete-highlight-match-line matches line)) 125 (setq highlight (ecomplete-highlight-match-line matches line))
126 (while (not (member (setq command (read-key-sequence-vector highlight)) 126 (while (not (memq (setq command (read-event highlight)) '(? return)))
127 '([? ] [return] [?\r] [?\n] [?\C-g])))
128 (cond 127 (cond
129 ((member command '([27 ?n] [?\M-n])) 128 ((eq command ?\M-n)
130 (setq line (min (1+ line) max-lines))) 129 (setq line (min (1+ line) max-lines)))
131 ((member command '([27 ?p] [?\M-p])) 130 ((eq command ?\M-p)
132 (setq line (max (1- line) 0)))) 131 (setq line (max (1- line) 0))))
133 (setq highlight (ecomplete-highlight-match-line matches line))) 132 (setq highlight (ecomplete-highlight-match-line matches line)))
134 (when (member command '([return] [?\r] [?\n])) 133 (when (eq command 'return)
135 (nth line (split-string matches "\n"))))))) 134 (nth line (split-string matches "\n")))))))
136 135
137(defun ecomplete-highlight-match-line (matches line) 136(defun ecomplete-highlight-match-line (matches line)
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 8149e555276..0068fbad6e2 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1231,7 +1231,10 @@ predicate. See Info node `(gnus)Customizing Articles'."
1231(defcustom gnus-treat-hide-citation nil 1231(defcustom gnus-treat-hide-citation nil
1232 "Hide cited text. 1232 "Hide cited text.
1233Valid values are nil, t, `head', `first', `last', an integer or a 1233Valid values are nil, t, `head', `first', `last', an integer or a
1234predicate. See Info node `(gnus)Customizing Articles'." 1234predicate. See Info node `(gnus)Customizing Articles'.
1235
1236See `gnus-article-highlight-citation' for variables used to
1237control what it hides."
1235 :group 'gnus-article-treat 1238 :group 'gnus-article-treat
1236 :link '(custom-manual "(gnus)Customizing Articles") 1239 :link '(custom-manual "(gnus)Customizing Articles")
1237 :type gnus-article-treat-custom) 1240 :type gnus-article-treat-custom)
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index da91fcb7fd8..7203ef69a14 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -3679,9 +3679,10 @@ However, if `message-yank-prefix' is non-nil, insert that prefix on each line."
3679 (message-delete-line)) 3679 (message-delete-line))
3680 ;; Delete blank lines at the end of the buffer. 3680 ;; Delete blank lines at the end of the buffer.
3681 (goto-char (point-max)) 3681 (goto-char (point-max))
3682 (beginning-of-line) 3682 (unless (eq (preceding-char) ?\n)
3683 (while (and (looking-at "$") 3683 (insert "\n"))
3684 (zerop (forward-line -1))) 3684 (while (and (zerop (forward-line -1))
3685 (looking-at "$"))
3685 (message-delete-line))) 3686 (message-delete-line)))
3686 ;; Do the indentation. 3687 ;; Do the indentation.
3687 (if (null message-yank-prefix) 3688 (if (null message-yank-prefix)
@@ -6357,35 +6358,38 @@ between beginning of field and beginning of line."
6357 ;; Rename the buffer. 6358 ;; Rename the buffer.
6358 (if message-send-rename-function 6359 (if message-send-rename-function
6359 (funcall message-send-rename-function) 6360 (funcall message-send-rename-function)
6360 ;; Note: mail-abbrevs of XEmacs renames buffer name behind Gnus. 6361 (message-default-send-rename-function))
6361 (when (string-match
6362 "\\`\\*\\(sent \\|unsent \\)?\\(.+\\)\\*[^\\*]*\\|\\`mail to "
6363 (buffer-name))
6364 (let ((name (match-string 2 (buffer-name)))
6365 to group)
6366 (if (not (or (null name)
6367 (string-equal name "mail")
6368 (string-equal name "posting")))
6369 (setq name (concat "*sent " name "*"))
6370 (message-narrow-to-headers)
6371 (setq to (message-fetch-field "to"))
6372 (setq group (message-fetch-field "newsgroups"))
6373 (widen)
6374 (setq name
6375 (cond
6376 (to (concat "*sent mail to "
6377 (or (car (mail-extract-address-components to))
6378 to) "*"))
6379 ((and group (not (string= group "")))
6380 (concat "*sent posting on " group "*"))
6381 (t "*sent mail*"))))
6382 (unless (string-equal name (buffer-name))
6383 (rename-buffer name t)))))
6384 ;; Push the current buffer onto the list. 6362 ;; Push the current buffer onto the list.
6385 (when message-max-buffers 6363 (when message-max-buffers
6386 (setq message-buffer-list 6364 (setq message-buffer-list
6387 (nconc message-buffer-list (list (current-buffer)))))) 6365 (nconc message-buffer-list (list (current-buffer))))))
6388 6366
6367(defun message-default-send-rename-function ()
6368 ;; Note: mail-abbrevs of XEmacs renames buffer name behind Gnus.
6369 (when (string-match
6370 "\\`\\*\\(sent \\|unsent \\)?\\(.+\\)\\*[^\\*]*\\|\\`mail to "
6371 (buffer-name))
6372 (let ((name (match-string 2 (buffer-name)))
6373 to group)
6374 (if (not (or (null name)
6375 (string-equal name "mail")
6376 (string-equal name "posting")))
6377 (setq name (concat "*sent " name "*"))
6378 (message-narrow-to-headers)
6379 (setq to (message-fetch-field "to"))
6380 (setq group (message-fetch-field "newsgroups"))
6381 (widen)
6382 (setq name
6383 (cond
6384 (to (concat "*sent mail to "
6385 (or (car (mail-extract-address-components to))
6386 to) "*"))
6387 ((and group (not (string= group "")))
6388 (concat "*sent posting on " group "*"))
6389 (t "*sent mail*"))))
6390 (unless (string-equal name (buffer-name))
6391 (rename-buffer name t)))))
6392
6389(defun message-mail-user-agent () 6393(defun message-mail-user-agent ()
6390 (let ((mua (cond 6394 (let ((mua (cond
6391 ((not message-mail-user-agent) nil) 6395 ((not message-mail-user-agent) nil)
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index d26df2395ec..f0d3e9f3182 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -345,6 +345,11 @@ textual parts.")
345 nil 345 nil
346 stream))) 346 stream)))
347 347
348(defun nnimap-map-port (port)
349 (if (equal port "imaps")
350 "993"
351 port))
352
348(defun nnimap-open-connection-1 (buffer) 353(defun nnimap-open-connection-1 (buffer)
349 (unless nnimap-keepalive-timer 354 (unless nnimap-keepalive-timer
350 (setq nnimap-keepalive-timer (run-at-time (* 60 15) (* 60 15) 355 (setq nnimap-keepalive-timer (run-at-time (* 60 15) (* 60 15)
@@ -373,7 +378,8 @@ textual parts.")
373 (push nnimap-server-port ports)) 378 (push nnimap-server-port ports))
374 (let* ((stream-list 379 (let* ((stream-list
375 (open-protocol-stream 380 (open-protocol-stream
376 "*nnimap*" (current-buffer) nnimap-address (car ports) 381 "*nnimap*" (current-buffer) nnimap-address
382 (nnimap-map-port (car ports))
377 :type nnimap-stream 383 :type nnimap-stream
378 :return-list t 384 :return-list t
379 :shell-command nnimap-shell-program 385 :shell-command nnimap-shell-program
@@ -1551,7 +1557,7 @@ textual parts.")
1551 (goto-char start) 1557 (goto-char start)
1552 (setq vanished 1558 (setq vanished
1553 (and (eq flag-sequence 'qresync) 1559 (and (eq flag-sequence 'qresync)
1554 (re-search-forward "^\\* VANISHED .* \\([0-9:,]+\\)" 1560 (re-search-forward "^\\* VANISHED .*? \\([0-9:,]+\\)"
1555 (or end (point-min)) t) 1561 (or end (point-min)) t)
1556 (match-string 1))) 1562 (match-string 1)))
1557 (goto-char start) 1563 (goto-char start)
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el
index 54c21703836..8fd5382a181 100644
--- a/lisp/gnus/pop3.el
+++ b/lisp/gnus/pop3.el
@@ -308,7 +308,7 @@ Returns the process associated with the connection."
308 (t 308 (t
309 (or pop3-stream-type 'network))) 309 (or pop3-stream-type 'network)))
310 :capability-command "CAPA\r\n" 310 :capability-command "CAPA\r\n"
311 :end-of-command "^\\(-ERR\\|+OK \\).*\n" 311 :end-of-command "^\\(-ERR\\|+OK\\).*\n"
312 :end-of-capability "^\\.\r?\n\\|^-ERR" 312 :end-of-capability "^\\.\r?\n\\|^-ERR"
313 :success "^\\+OK.*\n" 313 :success "^\\+OK.*\n"
314 :return-list t 314 :return-list t