diff options
| author | Gnus developers | 2011-02-22 13:31:15 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-02-22 13:31:15 +0000 |
| commit | 8e22bee0402f250c522f58acaa7ebebfa283615a (patch) | |
| tree | afe4d024d31454fc586e54728de9af033029a7a4 | |
| parent | 2f8f196d1f8aa746b568972a7670c8c20adf0449 (diff) | |
| download | emacs-8e22bee0402f250c522f58acaa7ebebfa283615a.tar.gz emacs-8e22bee0402f250c522f58acaa7ebebfa283615a.zip | |
Merge changes made in Gnus trunk.
gnus.texi (Article Date): Clarify gnus-article-update-date-headers.
gnus-msg.el (gnus-inews-add-send-actions): Restore the winconf name after exit.
gnus-sum.el (gnus-summary-show-article): When called with t as the value, show the raw article.
nnimap.el (nnimap-open-connection-1): Revert last change, since auth-source now accepts numbers.
auth-source.el (auth-source-netrc-parse): Accept a number as the port spec, too.
(auth-source-ensure-strings): New function.
gnus-art.el (gnus-article-update-date-headers): Doc fix.
(gnus-article-setup-buffer): Always restart the date timer so that user changes to the frequency is respected.
nnimap.el (nnimap-open-connection-1): auth-source expects strings as port numbers, so make sure it gets that if nnimap-server-port is explicit.
nnimap.el (nnimap-inbox): Doc fix.
| -rw-r--r-- | doc/misc/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 7 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 29 | ||||
| -rw-r--r-- | lisp/gnus/auth-source.el | 10 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 11 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 12 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 7 |
8 files changed, 65 insertions, 18 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 7d32b16790e..217702b7c0f 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-02-21 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus.texi (Article Date): Clarify gnus-article-update-date-headers. | ||
| 4 | |||
| 1 | 2011-02-20 Lars Ingebrigtsen <larsi@gnus.org> | 5 | 2011-02-20 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * gnus.texi (Window Layout): Document layout names. | 7 | * gnus.texi (Window Layout): Document layout names. |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index d40522a44d5..f990ee69a08 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -9502,8 +9502,11 @@ Say how much time has elapsed between the article was posted and now | |||
| 9502 | Date: 6 weeks, 4 days, 1 hour, 3 minutes, 8 seconds ago | 9502 | Date: 6 weeks, 4 days, 1 hour, 3 minutes, 8 seconds ago |
| 9503 | @end example | 9503 | @end example |
| 9504 | 9504 | ||
| 9505 | This line is updated continually by default. If you wish to switch | 9505 | This line is updated continually by default. The frequency (in |
| 9506 | that off, say: | 9506 | seconds) is controlled by the @code{gnus-article-update-date-headers} |
| 9507 | variable. | ||
| 9508 | |||
| 9509 | If you wish to switch updating off, say: | ||
| 9507 | 9510 | ||
| 9508 | @vindex gnus-article-update-date-headers | 9511 | @vindex gnus-article-update-date-headers |
| 9509 | @lisp | 9512 | @lisp |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ff48920e69c..3695b94b510 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,32 @@ | |||
| 1 | 2011-02-22 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-msg.el (gnus-inews-add-send-actions): Restore the winconf name | ||
| 4 | after exit. | ||
| 5 | |||
| 6 | * gnus-sum.el (gnus-summary-show-article): When called with t as the | ||
| 7 | value, show the raw article. | ||
| 8 | |||
| 9 | 2011-02-21 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 10 | |||
| 11 | * nnimap.el (nnimap-open-connection-1): Revert last change, since | ||
| 12 | auth-source now accepts numbers. | ||
| 13 | |||
| 14 | * auth-source.el (auth-source-netrc-parse): Accept a number as the port | ||
| 15 | spec, too. | ||
| 16 | (auth-source-ensure-strings): New function. | ||
| 17 | |||
| 18 | * gnus-art.el (gnus-article-update-date-headers): Doc fix. | ||
| 19 | (gnus-article-setup-buffer): Always restart the date timer so that user | ||
| 20 | changes to the frequency is respected. | ||
| 21 | |||
| 22 | * nnimap.el (nnimap-open-connection-1): auth-source expects strings as | ||
| 23 | port numbers, so make sure it gets that if nnimap-server-port is | ||
| 24 | explicit. | ||
| 25 | |||
| 26 | 2011-02-21 Simon Josefsson <simon@josefsson.org> | ||
| 27 | |||
| 28 | * nnimap.el (nnimap-inbox): Doc fix. | ||
| 29 | |||
| 1 | 2011-02-20 Chong Yidong <cyd@stupidchicken.com> | 30 | 2011-02-20 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 31 | ||
| 3 | * shr-color.el (shr-color->hexadecimal): Use renamed function names | 32 | * shr-color.el (shr-color->hexadecimal): Use renamed function names |
diff --git a/lisp/gnus/auth-source.el b/lisp/gnus/auth-source.el index e033b01ae97..57fecc7ae32 100644 --- a/lisp/gnus/auth-source.el +++ b/lisp/gnus/auth-source.el | |||
| @@ -680,6 +680,15 @@ while \(:host t) would find all host entries." | |||
| 680 | 680 | ||
| 681 | ;;; Backend specific parsing: netrc/authinfo backend | 681 | ;;; Backend specific parsing: netrc/authinfo backend |
| 682 | 682 | ||
| 683 | (defun auth-source-ensure-strings (values) | ||
| 684 | (unless (listp values) | ||
| 685 | (setq values (list values))) | ||
| 686 | (mapcar (lambda (value) | ||
| 687 | (if (numberp value) | ||
| 688 | (format "%s" value) | ||
| 689 | value)) | ||
| 690 | values)) | ||
| 691 | |||
| 683 | (defvar auth-source-netrc-cache nil) | 692 | (defvar auth-source-netrc-cache nil) |
| 684 | 693 | ||
| 685 | ;;; (auth-source-netrc-parse "~/.authinfo.gpg") | 694 | ;;; (auth-source-netrc-parse "~/.authinfo.gpg") |
| @@ -693,6 +702,7 @@ Note that the MAX parameter is used so we can exit the parse early." | |||
| 693 | ;; We got already parsed contents; just return it. | 702 | ;; We got already parsed contents; just return it. |
| 694 | file | 703 | file |
| 695 | (when (file-exists-p file) | 704 | (when (file-exists-p file) |
| 705 | (setq port (auth-source-ensure-strings port)) | ||
| 696 | (with-temp-buffer | 706 | (with-temp-buffer |
| 697 | (let ((tokens '("machine" "host" "default" "login" "user" | 707 | (let ((tokens '("machine" "host" "default" "login" "user" |
| 698 | "password" "account" "macdef" "force" | 708 | "password" "account" "macdef" "force" |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 19eee78ab17..2a36c43130c 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -1040,7 +1040,7 @@ Some of these headers are updated automatically. See | |||
| 1040 | (item :tag "User-defined" :value 'user-defined))) | 1040 | (item :tag "User-defined" :value 'user-defined))) |
| 1041 | 1041 | ||
| 1042 | (defcustom gnus-article-update-date-headers 1 | 1042 | (defcustom gnus-article-update-date-headers 1 |
| 1043 | "How often to update the date header. | 1043 | "A number that says how often to update the date header (in seconds). |
| 1044 | If nil, don't update it at all." | 1044 | If nil, don't update it at all." |
| 1045 | :version "24.1" | 1045 | :version "24.1" |
| 1046 | :group 'gnus-article-headers | 1046 | :group 'gnus-article-headers |
| @@ -4505,13 +4505,10 @@ commands: | |||
| 4505 | (setq gnus-summary-buffer | 4505 | (setq gnus-summary-buffer |
| 4506 | (gnus-summary-buffer-name gnus-newsgroup-name)) | 4506 | (gnus-summary-buffer-name gnus-newsgroup-name)) |
| 4507 | (gnus-summary-set-local-parameters gnus-newsgroup-name) | 4507 | (gnus-summary-set-local-parameters gnus-newsgroup-name) |
| 4508 | (cond | 4508 | (when article-lapsed-timer |
| 4509 | ((and gnus-article-update-date-headers | 4509 | (gnus-stop-date-timer)) |
| 4510 | (not article-lapsed-timer)) | 4510 | (when gnus-article-update-date-headers |
| 4511 | (gnus-start-date-timer gnus-article-update-date-headers)) | 4511 | (gnus-start-date-timer gnus-article-update-date-headers)) |
| 4512 | ((and (not gnus-article-update-date-headers) | ||
| 4513 | article-lapsed-timer) | ||
| 4514 | (gnus-stop-date-timer))) | ||
| 4515 | (current-buffer))))) | 4512 | (current-buffer))))) |
| 4516 | 4513 | ||
| 4517 | ;; Set article window start at LINE, where LINE is the number of lines | 4514 | ;; Set article window start at LINE, where LINE is the number of lines |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index b199dcc572c..29ac43115c8 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -388,6 +388,7 @@ Thank you for your help in stamping out bugs. | |||
| 388 | (yanked (make-symbol "gnus-setup-yanked-articles")) | 388 | (yanked (make-symbol "gnus-setup-yanked-articles")) |
| 389 | (group (make-symbol "gnus-setup-message-group"))) | 389 | (group (make-symbol "gnus-setup-message-group"))) |
| 390 | `(let ((,winconf (current-window-configuration)) | 390 | `(let ((,winconf (current-window-configuration)) |
| 391 | (,winconf-name gnus-current-window-configuration) | ||
| 391 | (,buffer (buffer-name (current-buffer))) | 392 | (,buffer (buffer-name (current-buffer))) |
| 392 | (,article gnus-article-reply) | 393 | (,article gnus-article-reply) |
| 393 | (,yanked gnus-article-yanked-articles) | 394 | (,yanked gnus-article-yanked-articles) |
| @@ -432,7 +433,7 @@ Thank you for your help in stamping out bugs. | |||
| 432 | (progn | 433 | (progn |
| 433 | ,@forms) | 434 | ,@forms) |
| 434 | (gnus-inews-add-send-actions ,winconf ,buffer ,article ,config | 435 | (gnus-inews-add-send-actions ,winconf ,buffer ,article ,config |
| 435 | ,yanked) | 436 | ,yanked ,winconf-name) |
| 436 | (setq gnus-message-buffer (current-buffer)) | 437 | (setq gnus-message-buffer (current-buffer)) |
| 437 | (set (make-local-variable 'gnus-message-group-art) | 438 | (set (make-local-variable 'gnus-message-group-art) |
| 438 | (cons ,group ,article)) | 439 | (cons ,group ,article)) |
| @@ -527,7 +528,8 @@ Gcc: header for archiving purposes." | |||
| 527 | (throw 'found (cons (cadr elem) (caddr elem))))))))) | 528 | (throw 'found (cons (cadr elem) (caddr elem))))))))) |
| 528 | 529 | ||
| 529 | (defun gnus-inews-add-send-actions (winconf buffer article | 530 | (defun gnus-inews-add-send-actions (winconf buffer article |
| 530 | &optional config yanked) | 531 | &optional config yanked |
| 532 | winconf-name) | ||
| 531 | (gnus-make-local-hook 'message-sent-hook) | 533 | (gnus-make-local-hook 'message-sent-hook) |
| 532 | (add-hook 'message-sent-hook (if gnus-agent 'gnus-agent-possibly-do-gcc | 534 | (add-hook 'message-sent-hook (if gnus-agent 'gnus-agent-possibly-do-gcc |
| 533 | 'gnus-inews-do-gcc) nil t) | 535 | 'gnus-inews-do-gcc) nil t) |
| @@ -538,8 +540,10 @@ Gcc: header for archiving purposes." | |||
| 538 | `(lambda (&optional arg) | 540 | `(lambda (&optional arg) |
| 539 | (gnus-post-method arg ,gnus-newsgroup-name))) | 541 | (gnus-post-method arg ,gnus-newsgroup-name))) |
| 540 | (message-add-action | 542 | (message-add-action |
| 541 | `(when (gnus-buffer-exists-p ,buffer) | 543 | `(progn |
| 542 | (set-window-configuration ,winconf)) | 544 | (setq gnus-current-window-configuration ,winconf-name) |
| 545 | (when (gnus-buffer-exists-p ,buffer) | ||
| 546 | (set-window-configuration ,winconf))) | ||
| 543 | 'exit 'postpone 'kill) | 547 | 'exit 'postpone 'kill) |
| 544 | (let ((to-be-marked (cond | 548 | (let ((to-be-marked (cond |
| 545 | (yanked | 549 | (yanked |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 789308c4ab9..2d78a5698df 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -9525,8 +9525,7 @@ C-u g', show the raw article." | |||
| 9525 | ((not arg) | 9525 | ((not arg) |
| 9526 | ;; Select the article the normal way. | 9526 | ;; Select the article the normal way. |
| 9527 | (gnus-summary-select-article nil 'force)) | 9527 | (gnus-summary-select-article nil 'force)) |
| 9528 | ((or (equal arg '(16)) | 9528 | ((equal arg '(16)) |
| 9529 | (eq arg t)) | ||
| 9530 | ;; C-u C-u g | 9529 | ;; C-u C-u g |
| 9531 | (let ((gnus-inhibit-article-treatments t)) | 9530 | (let ((gnus-inhibit-article-treatments t)) |
| 9532 | (gnus-summary-select-article nil 'force))) | 9531 | (gnus-summary-select-article nil 'force))) |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 83b8c416283..138875ba477 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -72,14 +72,15 @@ The default is to try `ssl' first, and then `network'.") | |||
| 72 | "ssh %s imapd")) | 72 | "ssh %s imapd")) |
| 73 | 73 | ||
| 74 | (defvoo nnimap-inbox nil | 74 | (defvoo nnimap-inbox nil |
| 75 | "The mail box where incoming mail arrives and should be split out of.") | 75 | "The mail box where incoming mail arrives and should be split out of. |
| 76 | For example, \"INBOX\".") | ||
| 76 | 77 | ||
| 77 | (defvoo nnimap-split-methods nil | 78 | (defvoo nnimap-split-methods nil |
| 78 | "How mail is split. | 79 | "How mail is split. |
| 79 | Uses the same syntax as nnmail-split-methods") | 80 | Uses the same syntax as `nnmail-split-methods'.") |
| 80 | 81 | ||
| 81 | (defvoo nnimap-split-fancy nil | 82 | (defvoo nnimap-split-fancy nil |
| 82 | "Uses the same syntax as nnmail-split-fancy.") | 83 | "Uses the same syntax as `nnmail-split-fancy'.") |
| 83 | 84 | ||
| 84 | (defvoo nnimap-unsplittable-articles '(%Deleted %Seen) | 85 | (defvoo nnimap-unsplittable-articles '(%Deleted %Seen) |
| 85 | "Articles with the flags in the list will not be considered when splitting.") | 86 | "Articles with the flags in the list will not be considered when splitting.") |