diff options
| author | Gnus developers | 2012-07-09 22:12:19 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-07-09 22:12:19 +0000 |
| commit | 59aadc36c34d253baf245f431dc786d2c35cf1d4 (patch) | |
| tree | e51952e488cdb2fe781bc13aeda023f86e8e55d3 | |
| parent | cda158b40db31dcd6b938ba7ccb6313861594b03 (diff) | |
| download | emacs-59aadc36c34d253baf245f431dc786d2c35cf1d4.tar.gz emacs-59aadc36c34d253baf245f431dc786d2c35cf1d4.zip | |
gnus-sum.el: Merge changes made in Gnus master
2012-07-09 Tassilo Horn <tassilo@member.fsf.org>
* gnus-sum.el (gnus-summary-limit-to-author): Use default value instead
of initial input when reading the author to restrict the summary to.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-sum.el (gnus-select-newsgroup): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
| -rw-r--r-- | lisp/gnus/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 24 |
2 files changed, 24 insertions, 10 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index beb3cc2cf94..5be5dd8cc56 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2012-07-09 Tassilo Horn <tassilo@member.fsf.org> | ||
| 2 | |||
| 3 | * gnus-sum.el (gnus-summary-limit-to-author): Use default value instead | ||
| 4 | of initial input when reading the author to restrict the summary to. | ||
| 5 | |||
| 6 | 2012-07-09 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 7 | |||
| 8 | * gnus-sum.el (gnus-select-newsgroup): Don't assume that the group | ||
| 9 | buffer exists, which it doesn't if we haven't started Gnus. | ||
| 10 | |||
| 1 | 2012-07-09 Katsumi Yamaoka <yamaoka@jpl.org> | 11 | 2012-07-09 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 12 | ||
| 3 | * mm-decode.el (mm-shr): | 13 | * mm-decode.el (mm-shr): |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 10b314a1435..8c4f67504e4 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -5679,7 +5679,9 @@ If SELECT-ARTICLES, only select those articles from GROUP." | |||
| 5679 | ;; Init the dependencies hash table. | 5679 | ;; Init the dependencies hash table. |
| 5680 | (setq gnus-newsgroup-dependencies | 5680 | (setq gnus-newsgroup-dependencies |
| 5681 | (gnus-make-hashtable (length articles))) | 5681 | (gnus-make-hashtable (length articles))) |
| 5682 | (gnus-set-global-variables) | 5682 | (if (gnus-buffer-live-p gnus-group-buffer) |
| 5683 | (gnus-set-global-variables) | ||
| 5684 | (set-default 'gnus-newsgroup-name gnus-newsgroup-name)) | ||
| 5683 | ;; Retrieve the headers and read them in. | 5685 | ;; Retrieve the headers and read them in. |
| 5684 | 5686 | ||
| 5685 | (setq gnus-newsgroup-headers (gnus-fetch-headers articles)) | 5687 | (setq gnus-newsgroup-headers (gnus-fetch-headers articles)) |
| @@ -5961,7 +5963,6 @@ If SELECT-ARTICLES, only select those articles from GROUP." | |||
| 5961 | (setq mark (car marks) | 5963 | (setq mark (car marks) |
| 5962 | mark-type (gnus-article-mark-to-type mark) | 5964 | mark-type (gnus-article-mark-to-type mark) |
| 5963 | var (intern (format "gnus-newsgroup-%s" (car (rassq mark types))))) | 5965 | var (intern (format "gnus-newsgroup-%s" (car (rassq mark types))))) |
| 5964 | |||
| 5965 | ;; We set the variable according to the type of the marks list, | 5966 | ;; We set the variable according to the type of the marks list, |
| 5966 | ;; and then adjust the marks to a subset of the active articles. | 5967 | ;; and then adjust the marks to a subset of the active articles. |
| 5967 | (cond | 5968 | (cond |
| @@ -8230,14 +8231,17 @@ If NOT-MATCHING, excluding articles that have subjects that match a regexp." | |||
| 8230 | "Limit the summary buffer to articles that have authors that match a regexp. | 8231 | "Limit the summary buffer to articles that have authors that match a regexp. |
| 8231 | If NOT-MATCHING, excluding articles that have authors that match a regexp." | 8232 | If NOT-MATCHING, excluding articles that have authors that match a regexp." |
| 8232 | (interactive | 8233 | (interactive |
| 8233 | (list (read-string (if current-prefix-arg | 8234 | (list (let* ((header (gnus-summary-article-header)) |
| 8234 | "Exclude author (regexp): " | 8235 | (default (and header (car (mail-header-parse-address |
| 8235 | "Limit to author (regexp): ") | 8236 | (mail-header-from header)))))) |
| 8236 | (let ((header (gnus-summary-article-header))) | 8237 | (read-string (concat (if current-prefix-arg |
| 8237 | (if (not header) | 8238 | "Exclude author (regexp" |
| 8238 | "" | 8239 | "Limit to author (regexp") |
| 8239 | (car (mail-header-parse-address | 8240 | (if default |
| 8240 | (mail-header-from header)))))) | 8241 | (concat ", default \"" default "\"): ") |
| 8242 | "): ")) | ||
| 8243 | nil nil | ||
| 8244 | default)) | ||
| 8241 | current-prefix-arg)) | 8245 | current-prefix-arg)) |
| 8242 | (gnus-summary-limit-to-subject from "from" not-matching)) | 8246 | (gnus-summary-limit-to-subject from "from" not-matching)) |
| 8243 | 8247 | ||