diff options
| author | Lars Magne Ingebrigtsen | 2011-06-30 01:02:47 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-06-30 01:02:47 +0000 |
| commit | 3451795ca11e5794ba37a54f5c02aca8c9099890 (patch) | |
| tree | a7407a742944d5b2c78953b882a19d7035d91f60 | |
| parent | 2f31f37ab7cf4a29f9b5fbe68b5f18cad7db00ba (diff) | |
| download | emacs-3451795ca11e5794ba37a54f5c02aca8c9099890.tar.gz emacs-3451795ca11e5794ba37a54f5c02aca8c9099890.zip | |
Merge changes made in Gnus trunk.
message.el (message-point-in-header-p): Tweak the function to default to saying that we're not in the headers if there is no separator at all. This makes it possible to use the Message version of `M-q' in buffers with no headers (bug#7987).
(message-point-in-header-p): Fix last checkin to work with an empty mail-header-separator, too.
auth-source.el (auth-source-netrc-saver): If the user says "don't ask again, save the choice via customize.
message.el (message-send-mail-function): Add `sendmail-query-once'.
nnimap.el (nnimap-finish-retrieve-group-infos): If the server has ended the connection, bail out before waiting infinitely on a new connection.
| -rw-r--r-- | lisp/gnus/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/gnus/auth-source.el | 7 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 4 |
4 files changed, 35 insertions, 5 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ec7cca9fdff..558aa4ad3d8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2011-06-30 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * message.el (message-point-in-header-p): Tweak the function to default | ||
| 4 | to saying that we're not in the headers if there is no separator at | ||
| 5 | all. This makes it possible to use the Message version of `M-q' in | ||
| 6 | buffers with no headers (bug#7987). | ||
| 7 | (message-point-in-header-p): Fix last checkin to work with an empty | ||
| 8 | mail-header-separator, too. | ||
| 9 | |||
| 10 | * auth-source.el (auth-source-netrc-saver): If the user says "don't ask | ||
| 11 | again, save the choice via customize. | ||
| 12 | |||
| 13 | 2011-06-29 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 14 | |||
| 15 | * message.el (message-send-mail-function): Add `sendmail-query-once'. | ||
| 16 | |||
| 17 | * nnimap.el (nnimap-finish-retrieve-group-infos): If the server has | ||
| 18 | ended the connection, bail out before waiting infinitely on a new | ||
| 19 | connection. | ||
| 20 | |||
| 1 | 2011-06-28 Teodor Zlatanov <tzz@lifelogs.com> | 21 | 2011-06-28 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 22 | ||
| 3 | * gnus-msg.el (gnus-bug): Add Package and Version pseudo-headers to bug | 23 | * gnus-msg.el (gnus-bug): Add Package and Version pseudo-headers to bug |
diff --git a/lisp/gnus/auth-source.el b/lisp/gnus/auth-source.el index c9cfc14fc55..72f0cb7ae58 100644 --- a/lisp/gnus/auth-source.el +++ b/lisp/gnus/auth-source.el | |||
| @@ -1363,9 +1363,10 @@ Respects `auth-source-save-behavior'. Uses | |||
| 1363 | (help-mode)))) | 1363 | (help-mode)))) |
| 1364 | (?n (setq add "" | 1364 | (?n (setq add "" |
| 1365 | done t)) | 1365 | done t)) |
| 1366 | (?N (setq add "" | 1366 | (?N |
| 1367 | done t | 1367 | (setq add "" |
| 1368 | auth-source-save-behavior nil)) | 1368 | done t) |
| 1369 | (customize-save-variable 'auth-source-save-behavior nil)) | ||
| 1369 | (?e (setq add (read-string "Line to add: " add))) | 1370 | (?e (setq add (read-string "Line to add: " add))) |
| 1370 | (t nil))) | 1371 | (t nil))) |
| 1371 | 1372 | ||
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 58740c32e9c..6016644260a 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -659,6 +659,7 @@ Done before generating the new subject of a forward." | |||
| 659 | (defcustom message-send-mail-function | 659 | (defcustom message-send-mail-function |
| 660 | (cond ((eq send-mail-function 'smtpmail-send-it) 'message-smtpmail-send-it) | 660 | (cond ((eq send-mail-function 'smtpmail-send-it) 'message-smtpmail-send-it) |
| 661 | ((eq send-mail-function 'feedmail-send-it) 'feedmail-send-it) | 661 | ((eq send-mail-function 'feedmail-send-it) 'feedmail-send-it) |
| 662 | ((eq send-mail-function 'sendmail-query-once) 'sendmail-query-once) | ||
| 662 | ((eq send-mail-function 'mailclient-send-it) | 663 | ((eq send-mail-function 'mailclient-send-it) |
| 663 | 'message-send-mail-with-mailclient) | 664 | 'message-send-mail-with-mailclient) |
| 664 | (t (message-send-mail-function))) | 665 | (t (message-send-mail-function))) |
| @@ -3424,8 +3425,12 @@ Message buffers and is not meant to be called directly." | |||
| 3424 | (defun message-point-in-header-p () | 3425 | (defun message-point-in-header-p () |
| 3425 | "Return t if point is in the header." | 3426 | "Return t if point is in the header." |
| 3426 | (save-excursion | 3427 | (save-excursion |
| 3427 | (not (re-search-backward | 3428 | (and |
| 3428 | (concat "^" (regexp-quote mail-header-separator) "\n") nil t)))) | 3429 | (not |
| 3430 | (re-search-backward | ||
| 3431 | (concat "^" (regexp-quote mail-header-separator) "\n") nil t)) | ||
| 3432 | (re-search-forward | ||
| 3433 | (concat "^" (regexp-quote mail-header-separator) "\n") nil t)))) | ||
| 3429 | 3434 | ||
| 3430 | (defun message-do-auto-fill () | 3435 | (defun message-do-auto-fill () |
| 3431 | "Like `do-auto-fill', but don't fill in message header." | 3436 | "Like `do-auto-fill', but don't fill in message header." |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 2cfc88987f6..e78c20bdeef 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1227,6 +1227,10 @@ textual parts.") | |||
| 1227 | 1227 | ||
| 1228 | (deffoo nnimap-finish-retrieve-group-infos (server infos sequences) | 1228 | (deffoo nnimap-finish-retrieve-group-infos (server infos sequences) |
| 1229 | (when (and sequences | 1229 | (when (and sequences |
| 1230 | ;; Check that the process is still alive. | ||
| 1231 | (get-buffer-process (nnimap-buffer)) | ||
| 1232 | (memq (process-status (get-buffer-process (nnimap-buffer))) | ||
| 1233 | '(open run)) | ||
| 1230 | (nnimap-possibly-change-group nil server)) | 1234 | (nnimap-possibly-change-group nil server)) |
| 1231 | (with-current-buffer (nnimap-buffer) | 1235 | (with-current-buffer (nnimap-buffer) |
| 1232 | ;; Wait for the final data to trickle in. | 1236 | ;; Wait for the final data to trickle in. |