emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r108980: gnus-sum.el: Merge changes m


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r108980: gnus-sum.el: Merge changes made in Gnus master
Date: Mon, 09 Jul 2012 22:12:19 +0000
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108980
author: Gnus developers <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Mon 2012-07-09 22:12:19 +0000
message:
  gnus-sum.el: Merge changes made in Gnus master
  
  2012-07-09 Tassilo Horn <address@hidden>
  * 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 <address@hidden>
  * gnus-sum.el (gnus-select-newsgroup): Don't assume that the group
    buffer exists, which it doesn't if we haven't started Gnus.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/gnus-sum.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2012-07-09 02:13:07 +0000
+++ b/lisp/gnus/ChangeLog       2012-07-09 22:12:19 +0000
@@ -1,3 +1,13 @@
+2012-07-09  Tassilo Horn  <address@hidden>
+
+       * 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-07-09  Lars Magne Ingebrigtsen  <address@hidden>
+
+       * gnus-sum.el (gnus-select-newsgroup): Don't assume that the group
+       buffer exists, which it doesn't if we haven't started Gnus.
+
 2012-07-09  Katsumi Yamaoka  <address@hidden>
 
        * mm-decode.el (mm-shr):

=== modified file 'lisp/gnus/gnus-sum.el'
--- a/lisp/gnus/gnus-sum.el     2012-06-26 22:52:31 +0000
+++ b/lisp/gnus/gnus-sum.el     2012-07-09 22:12:19 +0000
@@ -5679,7 +5679,9 @@
       ;; Init the dependencies hash table.
       (setq gnus-newsgroup-dependencies
            (gnus-make-hashtable (length articles)))
-      (gnus-set-global-variables)
+      (if (gnus-buffer-live-p gnus-group-buffer)
+         (gnus-set-global-variables)
+       (set-default 'gnus-newsgroup-name gnus-newsgroup-name))
       ;; Retrieve the headers and read them in.
 
       (setq gnus-newsgroup-headers (gnus-fetch-headers articles))
@@ -5961,7 +5963,6 @@
       (setq mark (car marks)
            mark-type (gnus-article-mark-to-type mark)
            var (intern (format "gnus-newsgroup-%s" (car (rassq mark types)))))
-
       ;; We set the variable according to the type of the marks list,
       ;; and then adjust the marks to a subset of the active articles.
       (cond
@@ -8230,14 +8231,17 @@
   "Limit the summary buffer to articles that have authors that match a regexp.
 If NOT-MATCHING, excluding articles that have authors that match a regexp."
   (interactive
-   (list (read-string (if current-prefix-arg
-                         "Exclude author (regexp): "
-                       "Limit to author (regexp): ")
-                     (let ((header (gnus-summary-article-header)))
-                       (if (not header)
-                           ""
-                         (car (mail-header-parse-address
-                               (mail-header-from header))))))
+   (list (let* ((header (gnus-summary-article-header))
+               (default (and header (car (mail-header-parse-address
+                                          (mail-header-from header))))))
+          (read-string (concat (if current-prefix-arg
+                                   "Exclude author (regexp"
+                                 "Limit to author (regexp")
+                               (if default
+                                   (concat ", default \"" default "\"): ")
+                                 "): "))
+                       nil nil
+                       default))
         current-prefix-arg))
   (gnus-summary-limit-to-subject from "from" not-matching))
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]