diff options
| author | Gnus developers | 2011-07-31 22:15:44 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-07-31 22:15:44 +0000 |
| commit | 93855df97b1f05c7edce377c8af9da444b3dcc66 (patch) | |
| tree | c8168f77da05745fbdb613d59a728e6d1c7d5a8c | |
| parent | e8500ff4af0d6c390f66a1f6d7d22695e590a8af (diff) | |
| download | emacs-93855df97b1f05c7edce377c8af9da444b3dcc66.tar.gz emacs-93855df97b1f05c7edce377c8af9da444b3dcc66.zip | |
Merge changes made in Gnus trunk.
nnmaildir.el (nnmaildir-request-accept-article): Don't call `unix-sync' unless it's defined.
gnus-art.el (gnus-article-stop-animations): Use `elt' instead of `aref' for XEmacs compatibiltiy.
spam.el (spam-fetch-field-fast): Rewrite slightly for clarity.
gnus-sum.el (gnus-summary-refer-thread): Since lambdas aren't closures, quote the form properly (bug#9194).
gnus-sum.el (gnus-summary-insert-new-articles): Clean up slightly.
(gnus-summary-insert-new-articles): Protect against servers that are down.
| -rw-r--r-- | lisp/gnus/ChangeLog | 25 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 44 | ||||
| -rw-r--r-- | lisp/gnus/nnmaildir.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/spam.el | 50 |
5 files changed, 75 insertions, 49 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index acdd1033933..b4b28005a87 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2011-07-31 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * nnmaildir.el (nnmaildir-request-accept-article): Don't call | ||
| 4 | `unix-sync' unless it's defined. | ||
| 5 | |||
| 6 | 2011-07-31 Marcus Harnisch <marcus.harnisch@gmx.net> (tiny change) | ||
| 7 | |||
| 8 | * gnus-art.el (gnus-article-stop-animations): Use `elt' instead of | ||
| 9 | `aref' for XEmacs compatibiltiy. | ||
| 10 | |||
| 11 | 2011-07-31 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 12 | |||
| 13 | * spam.el (spam-fetch-field-fast): Rewrite slightly for clarity. | ||
| 14 | |||
| 15 | 2011-07-31 Dave Abrahams <dave@boostpro.com> (tiny change) | ||
| 16 | |||
| 17 | * gnus-sum.el (gnus-summary-refer-thread): Since lambdas aren't | ||
| 18 | closures, quote the form properly (bug#9194). | ||
| 19 | |||
| 20 | 2011-07-31 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 21 | |||
| 22 | * gnus-sum.el (gnus-summary-insert-new-articles): Clean up slightly. | ||
| 23 | (gnus-summary-insert-new-articles): Protect against servers that are | ||
| 24 | down. | ||
| 25 | |||
| 1 | 2011-07-29 Daniel Dehennin <daniel.dehennin@baby-gnu.org> | 26 | 2011-07-29 Daniel Dehennin <daniel.dehennin@baby-gnu.org> |
| 2 | 27 | ||
| 3 | * mm-decode.el (mm-dissect-buffer): Add a default content-disposition | 28 | * mm-decode.el (mm-dissect-buffer): Add a default content-disposition |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index c29000f4691..28c6aca367c 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -4541,7 +4541,7 @@ commands: | |||
| 4541 | (defun gnus-article-stop-animations () | 4541 | (defun gnus-article-stop-animations () |
| 4542 | (dolist (timer (and (boundp 'timer-list) | 4542 | (dolist (timer (and (boundp 'timer-list) |
| 4543 | timer-list)) | 4543 | timer-list)) |
| 4544 | (when (eq (aref timer 5) 'image-animate-timeout) | 4544 | (when (eq (elt timer 5) 'image-animate-timeout) |
| 4545 | (cancel-timer timer)))) | 4545 | (cancel-timer timer)))) |
| 4546 | 4546 | ||
| 4547 | ;; Set article window start at LINE, where LINE is the number of lines | 4547 | ;; Set article window start at LINE, where LINE is the number of lines |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 5917c9d7cef..a8cf5e7c427 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -9015,9 +9015,9 @@ non-numeric or nil fetch the number specified by the | |||
| 9015 | (refs (split-string (or (mail-header-references header) | 9015 | (refs (split-string (or (mail-header-references header) |
| 9016 | ""))) | 9016 | ""))) |
| 9017 | (gnus-parse-headers-hook | 9017 | (gnus-parse-headers-hook |
| 9018 | (lambda () (goto-char (point-min)) | 9018 | `(lambda () (goto-char (point-min)) |
| 9019 | (keep-lines | 9019 | (keep-lines |
| 9020 | (regexp-opt (append refs (list id subject))))))) | 9020 | (regexp-opt ',(append refs (list id subject))))))) |
| 9021 | (gnus-fetch-headers (list last) (if (numberp limit) | 9021 | (gnus-fetch-headers (list last) (if (numberp limit) |
| 9022 | (* 2 limit) limit) t))))) | 9022 | (* 2 limit) limit) t))))) |
| 9023 | (when (listp new-headers) | 9023 | (when (listp new-headers) |
| @@ -12851,26 +12851,26 @@ If ALL is a number, fetch this number of articles." | |||
| 12851 | (defun gnus-summary-insert-new-articles () | 12851 | (defun gnus-summary-insert-new-articles () |
| 12852 | "Insert all new articles in this group." | 12852 | "Insert all new articles in this group." |
| 12853 | (interactive) | 12853 | (interactive) |
| 12854 | (prog1 | 12854 | (let ((old (sort (mapcar 'car gnus-newsgroup-data) '<)) |
| 12855 | (let ((old (sort (mapcar 'car gnus-newsgroup-data) '<)) | 12855 | (old-high gnus-newsgroup-highest) |
| 12856 | (old-high gnus-newsgroup-highest) | 12856 | (nnmail-fetched-sources (list t)) |
| 12857 | (nnmail-fetched-sources (list t)) | 12857 | (new-active (gnus-activate-group gnus-newsgroup-name 'scan)) |
| 12858 | i new) | 12858 | i new) |
| 12859 | (setq gnus-newsgroup-active | 12859 | (unless new-active |
| 12860 | (gnus-copy-sequence | 12860 | (error "Couldn't fetch new data")) |
| 12861 | (gnus-activate-group gnus-newsgroup-name 'scan))) | 12861 | (setq gnus-newsgroup-active (gnus-copy-sequence new-active)) |
| 12862 | (setq i (cdr gnus-newsgroup-active) | 12862 | (setq i (cdr gnus-newsgroup-active) |
| 12863 | gnus-newsgroup-highest i) | 12863 | gnus-newsgroup-highest i) |
| 12864 | (while (> i old-high) | 12864 | (while (> i old-high) |
| 12865 | (push i new) | 12865 | (push i new) |
| 12866 | (decf i)) | 12866 | (decf i)) |
| 12867 | (if (not new) | 12867 | (if (not new) |
| 12868 | (message "No gnus is bad news") | 12868 | (message "No gnus is bad news") |
| 12869 | (gnus-summary-insert-articles new) | 12869 | (gnus-summary-insert-articles new) |
| 12870 | (setq gnus-newsgroup-unreads | 12870 | (setq gnus-newsgroup-unreads |
| 12871 | (gnus-sorted-nunion gnus-newsgroup-unreads new)) | 12871 | (gnus-sorted-nunion gnus-newsgroup-unreads new)) |
| 12872 | (gnus-summary-limit (gnus-sorted-nunion old new)))) | 12872 | (gnus-summary-limit (gnus-sorted-nunion old new)))) |
| 12873 | (gnus-summary-position-point))) | 12873 | (gnus-summary-position-point)) |
| 12874 | 12874 | ||
| 12875 | ;;; Bookmark support for Gnus. | 12875 | ;;; Bookmark support for Gnus. |
| 12876 | (declare-function bookmark-make-record-default | 12876 | (declare-function bookmark-make-record-default |
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el index 8e2cd4bdde3..bbace7c784a 100644 --- a/lisp/gnus/nnmaildir.el +++ b/lisp/gnus/nnmaildir.el | |||
| @@ -1381,7 +1381,8 @@ by nnmaildir-request-article.") | |||
| 1381 | (error | 1381 | (error |
| 1382 | (gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil | 1382 | (gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil |
| 1383 | 'excl) | 1383 | 'excl) |
| 1384 | (unix-sync))) ;; no fsync :( | 1384 | (when (fboundp 'unix-sync) |
| 1385 | (unix-sync)))) ;; no fsync :( | ||
| 1385 | (nnheader-cancel-timer 24h) | 1386 | (nnheader-cancel-timer 24h) |
| 1386 | (condition-case err | 1387 | (condition-case err |
| 1387 | (add-name-to-file tmpfile curfile) | 1388 | (add-name-to-file tmpfile curfile) |
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el index 33dbaaa1f0c..c7f993d7293 100644 --- a/lisp/gnus/spam.el +++ b/lisp/gnus/spam.el | |||
| @@ -1581,31 +1581,31 @@ to find it out)." | |||
| 1581 | (when (numberp article) | 1581 | (when (numberp article) |
| 1582 | (let* ((data-header (or prepared-data-header | 1582 | (let* ((data-header (or prepared-data-header |
| 1583 | (spam-fetch-article-header article)))) | 1583 | (spam-fetch-article-header article)))) |
| 1584 | (if (arrayp data-header) | 1584 | (cond |
| 1585 | (cond | 1585 | ((not (arrayp data-header)) |
| 1586 | ((equal field 'number) | 1586 | (gnus-message 6 "Article %d has a nil data header" article)) |
| 1587 | (mail-header-number data-header)) | 1587 | ((equal field 'number) |
| 1588 | ((equal field 'from) | 1588 | (mail-header-number data-header)) |
| 1589 | (mail-header-from data-header)) | 1589 | ((equal field 'from) |
| 1590 | ((equal field 'message-id) | 1590 | (mail-header-from data-header)) |
| 1591 | (mail-header-message-id data-header)) | 1591 | ((equal field 'message-id) |
| 1592 | ((equal field 'subject) | 1592 | (mail-header-message-id data-header)) |
| 1593 | (mail-header-subject data-header)) | 1593 | ((equal field 'subject) |
| 1594 | ((equal field 'references) | 1594 | (mail-header-subject data-header)) |
| 1595 | (mail-header-references data-header)) | 1595 | ((equal field 'references) |
| 1596 | ((equal field 'date) | 1596 | (mail-header-references data-header)) |
| 1597 | (mail-header-date data-header)) | 1597 | ((equal field 'date) |
| 1598 | ((equal field 'xref) | 1598 | (mail-header-date data-header)) |
| 1599 | (mail-header-xref data-header)) | 1599 | ((equal field 'xref) |
| 1600 | ((equal field 'extra) | 1600 | (mail-header-xref data-header)) |
| 1601 | (mail-header-extra data-header)) | 1601 | ((equal field 'extra) |
| 1602 | (t | 1602 | (mail-header-extra data-header)) |
| 1603 | (gnus-error | 1603 | (t |
| 1604 | 5 | 1604 | (gnus-error |
| 1605 | "spam-fetch-field-fast: unknown field %s requested" | 1605 | 5 |
| 1606 | field) | 1606 | "spam-fetch-field-fast: unknown field %s requested" |
| 1607 | nil)) | 1607 | field) |
| 1608 | (gnus-message 6 "Article %d has a nil data header" article))))) | 1608 | nil))))) |
| 1609 | 1609 | ||
| 1610 | (defun spam-fetch-field-from-fast (article &optional prepared-data-header) | 1610 | (defun spam-fetch-field-from-fast (article &optional prepared-data-header) |
| 1611 | (spam-fetch-field-fast article 'from prepared-data-header)) | 1611 | (spam-fetch-field-fast article 'from prepared-data-header)) |