From 84c0df9c8ee2094e3fe3232ca6f516441ce65299 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Sun, 30 Nov 2003 05:50:44 +0000 Subject: [PATCH] Synch to Gnus 200311300454. --- lisp/ChangeLog | 7 +++++++ lisp/gnus-start.el | 14 ++++++++++++++ lisp/gnus.el | 4 +++- texi/ChangeLog | 5 +++++ texi/gnus-ja.texi | 53 ++++++++++++++++++++++++++++++++++++++-------------- texi/gnus.texi | 49 ++++++++++++++++++++++++++++++++++-------------- 6 files changed, 103 insertions(+), 29 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 132c33b..9cb78a9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2003-11-29 Kevin Greiner + * gnus-start.el (gnus-activate-group): The active range of the + group must include the articles known to the agent. + + * gnus.el (gnus-agent-method-p): Accept a server name as the + method being tested. + 2003-11-29 Alexander Kreuzer (tiny change) * nnrss.el (nnrss-check-group): Set xml when nnrss-use-local is t. diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el index f47b590..279880a 100644 --- a/lisp/gnus-start.el +++ b/lisp/gnus-start.el @@ -37,6 +37,7 @@ (require 'gnus-util) (autoload 'message-make-date "message") (autoload 'gnus-agent-read-servers-validate "gnus-agent") +(autoload 'gnus-agent-load-alist "gnus-agent") (defcustom gnus-startup-file (nnheader-concat gnus-home-directory ".newsrc") "Your `.newsrc' file. @@ -1531,6 +1532,19 @@ newsgroup." (zerop (cdr active)) (gnus-active group)) (gnus-active group) + + (when (and gnus-agent + (gnus-agent-method-p method)) + ;; The agent may be storing articles that are no longer in the + ;; server's active range. If that is the case, the active range + ;; needs to be expanded such that the agent's articles can be + ;; included in the summary. + (let* ((gnus-command-method method) + (alist (gnus-agent-load-alist group))) + (if (and (car alist) + (< (caar alist) (car active))) + (setcar active (caar alist))))) + (gnus-set-active group active) ;; Return the new active info. active))))) diff --git a/lisp/gnus.el b/lisp/gnus.el index 2a6f7d2..8673c75 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el @@ -3957,7 +3957,9 @@ Allow completion over sensible values." (or (eq (car gnus-agent-method-p-cache) method) (setq gnus-agent-method-p-cache (cons method - (member (gnus-method-to-server method) gnus-agent-covered-methods)))) + (member (if (stringp method) + method + (gnus-method-to-server method)) gnus-agent-covered-methods)))) (cdr gnus-agent-method-p-cache)) (defun gnus-online (method) diff --git a/texi/ChangeLog b/texi/ChangeLog index 02f55da..7f59adf 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,8 @@ +2003-11-30 Jesper Harder + + * gnus.texi (RSS): Add nnrss-use-local. + (Foreign Groups): Add `G R'. + 2003-11-29 Jesper Harder * gnusref.tex (subsection*{Notes}): Add `G R'. diff --git a/texi/gnus-ja.texi b/texi/gnus-ja.texi index 5a12f93..35d3448 100644 --- a/texi/gnus-ja.texi +++ b/texi/gnus-ja.texi @@ -2669,6 +2669,13 @@ kiboze $B%0%k!<%W$r:n@.$7$^$9!#%W%m%s%W%H$GL>A0$H!"(Bkiboze $B%0%k!<%W$K!V4^$ @samp{shaving group:alt.sysadmin.recovery} $B$N$h$&$J9gCW$9$kJ8;zNs$rMQ$$(B $B$k$3$H$K$h$C$F!"8!:wBP>]$rFCDj$N%0%k!<%W$K8BDj$9$k$3$H$,2DG=$G$9!#(B +@item G R +@kindex G R ($B%0%k!<%W(B) +@findex gnus-group-make-rss-group +@acronym{RSS} $B$N>pJs6!5k$K4p$E$/%0%k!<%W$r:n$j$^(B +$B$9(B (@code{gnus-group-make-rss-group})$B!#(BURL $B$NF~NO$rB%$5$l$^$9!#(B +@xref{RSS}. + @item G DEL @kindex G DEL ($B%0%k!<%W(B) @findex gnus-group-delete-group @@ -14811,16 +14818,16 @@ Gnus $B$O$3$l$i$N%=!<%9$X$N3&LL$rDs6!$9$k%P%C%/%(%s%I72$r>/$7Hw$($D$D$"$j(B @item nnslashdot-active-url @vindex nnslashdot-active-url -$B%K%e!<%95-;v$H%3%a%s%H$r/$7Hw$($D$D$"$j(B @code{nnultimate} $B$r;O$a$k$?$a$N0lHV4JC1$JJ}K!$O%0%k!<%W%P%C%U%!$G0J2<$N(B $B$h$&$J$b$N$r$9$k$3$H$G$9(B: @kbd{B nnultimate RET http://www.tcj.com/messboard.ubbcgi/ RET}$B!#(B($B6=L#$N$"$k2q5D<<(B -$B$N(B @sc{url} (@samp{Ultimate.cgi} $BEy$r:G8e$K4^$s$G$$$J$$$b$N(B) $B$KJQ$($F$/(B -$B$@$5$$!#(BUltimate $B%&%'%V%5%$%H$K$O$?$/$5$s5s$2$i$l$F$$$^$9!#(B) $B$=$l$+$i%5!<(B -$B%P!<%P%C%U%!$G6=L#$N$"$k%0%k!<%W$r9XFI$7!"%0%k!<%W%P%C%U%!$+$i$=$l$i$rFI(B -$B$s$G$/$@$5$$!#(B +$B$N(B @acronym{URL} (@samp{Ultimate.cgi} $BEy$r:G8e$K4^$s$G$$$J$$$b$N(B) $B$KJQ$((B +$B$F$/$@$5$$!#(BUltimate $B%&%'%V%5%$%H$K$O$?$/$5$s5s$2$i$l$F$$$^$9!#(B) $B$=$l$+(B +$B$i%5!<%P!<%P%C%U%!$G6=L#$N$"$k%0%k!<%W$r9XFI$7!"%0%k!<%W%P%C%U%!$+$i$=$l(B +$B$i$rFI$s$G$/$@$5$$!#(B $B0J2<$N(B @code{nnutimate} $BJQ?t$rJQ992DG=$G$9(B: @@ -14926,13 +14933,22 @@ http://w3m.sourceforge.net/ @cindex nnrss @cindex RSS -$B$$$/$D$+$N%5%$%H$O(B RDF site summary (RSS) $B$r;}$C$F$$$^(B -$B$9(B @uref{http://purl.org/rss/1.0/spec}$B!#$3$l$O$H$F$b5,B'E*$+$DNIo$K?7$7$/$7$F$*$/$?$a$N>pJs$rF@$k$3$H(B -$B$,$G$-$^$9!#(B +@c TRANSLATEME! +Some web sites have an RDF Site Summary (@acronym{RSS}). +@acronym{RSS} is a format for summarizing headlines from news related +sites (such as BBC or CNN). But basically anything list-like can be +presented as an @acronym{RSS} feed: weblogs, changelogs or recent +changes to a wiki (e.g. @url{http://cliki.net/recent-changes.rdf}). -$B4JC1$K(B @code{nnrss} $B$r;H$$;O$a$k$K$O!"%0%k!<%W%P%C%U%!(B -$B$G(B @kbd{B nnrss RET RET} $B$H%?%$%W$7$F!"%0%k!<%W$r9VFI$7$F2<$5$$!#(B +@acronym{RSS} has a quite regular and nice interface, and it's +possible to get the information Gnus needs to keep groups updated. + +Use @kbd{G R} from the summary buffer to subscribe to a feed---you +will be prompted for the location of the feed. + +An easy way to get started with @code{nnrss} is to say something like +the following in the group buffer: @kbd{B nnrss RET y}, then +subscribe to groups. $B0J2<$N(B @code{nnrss} $BJQ?t$,JQ992DG=$G$9(B: @@ -14941,6 +14957,15 @@ http://w3m.sourceforge.net/ @vindex nnrss-directory @code{nnrss} $B$,%U%!%$%k$r=q$-9~$`%G%#%l%/%H%j!<$G!"%G%#%U%)%k%H(B $B$O(B @file{~/News/rss/} $B$G$9!#(B + +@c TRANSLATEME! +@item nnrss-use-local +@vindex nnrss-use-local +@findex nnrss-generate-download-script +If you set @code{nnrss-use-local} to @code{t}, @code{nnrss} will read +the feeds from local files in @code{nnrss-directory}. You can use +the command @code{nnrss-generate-download-script} to generate a +download script using @command{wget}. @end table $B35N,%P%C%U%!$K@bL@$rI=<($5$;$?$$$J$i$P!"0J2<$N%3!<%I$,Lr$KN)$D$G$7$g$&!#(B diff --git a/texi/gnus.texi b/texi/gnus.texi index 6f4bc4b..9a640c1 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -2655,6 +2655,13 @@ If you use the @code{google} search engine, you can limit the search to a particular group by using a match string like @samp{shaving group:alt.sysadmin.recovery}. +@item G R +@kindex G R (Group) +@findex gnus-group-make-rss-group +Make a group based on an @acronym{RSS} feed +(@code{gnus-group-make-rss-group}). You will be prompted for an URL. +@xref{RSS}. + @item G DEL @kindex G DEL (Group) @findex gnus-group-delete-group @@ -2663,7 +2670,7 @@ This function will delete the current group actually delete all the articles in the group, and forcibly remove the group itself from the face of the Earth. Use a prefix only if you are absolutely sure of what you are doing. This command can't be used on -read-only groups (like @code{nntp} group), though. +read-only groups (like @code{nntp} groups), though. @item G V @kindex G V (Group) @@ -15634,18 +15641,18 @@ Where @code{nnslashdot} will store its files. The default is @item nnslashdot-active-url @vindex nnslashdot-active-url -The @sc{url} format string that will be used to fetch the information on -news articles and comments. The default is@* +The @acronym{URL} format string that will be used to fetch the +information on news articles and comments. The default is@* @samp{http://slashdot.org/search.pl?section=&min=%d}. @item nnslashdot-comments-url @vindex nnslashdot-comments-url -The @sc{url} format string that will be used to fetch comments. +The @acronym{URL} format string that will be used to fetch comments. @item nnslashdot-article-url @vindex nnslashdot-article-url -The @sc{url} format string that will be used to fetch the news article. The -default is +The @acronym{URL} format string that will be used to fetch the news +article. The default is @samp{http://slashdot.org/article.pl?sid=%s&mode=nocomment}. @item nnslashdot-threshold @@ -15673,7 +15680,7 @@ information Gnus needs to keep groups updated. The easiest way to get started with @code{nnultimate} is to say something like the following in the group buffer: @kbd{B nnultimate RET -http://www.tcj.com/messboard/ubbcgi/ RET}. (Substitute the @sc{url} +http://www.tcj.com/messboard/ubbcgi/ RET}. (Substitute the @acronym{URL} (not including @samp{Ultimate.cgi} or the like at the end) for a forum you're interested in; there's quite a list of them on the Ultimate web site.) Then subscribe to the groups you're interested in from the @@ -15731,14 +15738,21 @@ The password for your account on the web server. @cindex nnrss @cindex RSS -Some sites have RDF site summary (RSS) -@uref{http://purl.org/rss/1.0/spec}. It has a quite regular and nice -interface, and it's possible to get the information Gnus needs to keep -groups updated. +Some web sites have an RDF Site Summary (@acronym{RSS}). +@acronym{RSS} is a format for summarizing headlines from news related +sites (such as BBC or CNN). But basically anything list-like can be +presented as an @acronym{RSS} feed: weblogs, changelogs or recent +changes to a wiki (e.g. @url{http://cliki.net/recent-changes.rdf}). + +@acronym{RSS} has a quite regular and nice interface, and it's +possible to get the information Gnus needs to keep groups updated. + +Use @kbd{G R} from the summary buffer to subscribe to a feed---you +will be prompted for the location of the feed. -The easiest way to get started with @code{nnrss} is to say something -like the following in the group buffer: @kbd{B nnrss RET RET}, then -subscribe groups. +An easy way to get started with @code{nnrss} is to say something like +the following in the group buffer: @kbd{B nnrss RET y}, then +subscribe to groups. The following @code{nnrss} variables can be altered: @@ -15748,6 +15762,13 @@ The following @code{nnrss} variables can be altered: The directory where @code{nnrss} stores its files. The default is @file{~/News/rss/}. +@item nnrss-use-local +@vindex nnrss-use-local +@findex nnrss-generate-download-script +If you set @code{nnrss-use-local} to @code{t}, @code{nnrss} will read +the feeds from local files in @code{nnrss-directory}. You can use +the command @code{nnrss-generate-download-script} to generate a +download script using @command{wget}. @end table The following code may be helpful, if you want to show the description in -- 1.7.10.4