From: yamaoka Date: Thu, 10 Nov 2005 23:57:51 +0000 (+0000) Subject: Synch to No Gnus 200511101827. X-Git-Tag: t-gnus-6_17_4-quimby-~243 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd66726b303d1927fdd3930eaacc4c43e44dfef;p=elisp%2Fgnus.git- Synch to No Gnus 200511101827. --- diff --git a/texi/ChangeLog b/texi/ChangeLog index 8ea95ad..c259fd5 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,16 @@ +2005-11-10 Reiner Steib + + * gnus-coding.texi (Gnus Coding Style): Add MIME subsection. + (Gnus Maintainance Guide): Improvements. + + * gnus.texi (Sorting the Summary Buffer): Replace 2005-10-29 + change by a reference to `Group Parameters'. Use `(not ...)' in + example instead of `lambda' expression. + (Group Parameters): Add simplified sorting example based on + example for `Sorting the Summary Buffer' from Jari Aalto + . + (Example Methods): Add example for an indirect connection. + 2005-11-10 Katsumi Yamaoka * gnus.texi (XVarious): Fix description of gnus-use-toolbar; add diff --git a/texi/gnus-coding.texi b/texi/gnus-coding.texi index 41ddece..ac38113 100644 --- a/texi/gnus-coding.texi +++ b/texi/gnus-coding.texi @@ -168,12 +168,21 @@ Message mode buffers. Message mode is intended to be a replacement for Emacs mail mode. There should be no Gnus dependencies in @file{message.el}. +@subsection Emacs @acronym{MIME} + +The files @file{mml*.el} and @file{mm-*.el} provide @acronym{MIME} +functionality for Emacs. + +@acronym{MML} (@acronym{MIME} Meta Language) is supposed to be +independent from Gnus. Alas it is not anymore. + + @subsection Gnus backends The files @file{nn*.el} provide functionality for accessing NNTP (@file{nntp.el}), IMAP (@file{nnimap.el}) and several other Mail back ends (probably @file{nnml.el}, @file{nnfolder.el} and -@file{nnmaildir.el} are the ones most widely used mail back ends). +@file{nnmaildir.el} are the most widely used mail back ends). @c message / gnus @@ -191,25 +200,42 @@ ends (probably @file{nnml.el}, @file{nnfolder.el} and @section Compatibility -@c Compatibility with XEmacs and older Emacs versions in v5-10 and in the -@c trunk. - -@c @table -@c x -@c @end table +@c Compatibility with XEmacs and older Emacs versions in v5-10 and in +@c the trunk. + +No Gnus should work on: +@itemize @bullet +@item +Emacs 21.1 and up. +@item +XEmacs 21.4 and up. +@end itemize + +Gnus 5.10 should work on: +@itemize @bullet +@item +Emacs 20.7 and up. +@item +XEmacs 21.1 and up. +@end itemize @node Gnus Maintainance Guide @chapter Gnus Maintainance Guide @section Stable and development versions -The CVS trunk is developed quite actively. - -@c Most of the time Gnus is developed on the trunk. - -@c Exeption: several month of feature freeze after a release, -@c e.g. 5.10.1 +The development of Gnus normally is done on the CVS trunk, i.e. there +are no separate branches to develop and test new features. Most of the +time, the trunk is developed quite actively with more or less daily +changes. Only after a new major release, e.g. 5.10.1, there's usually a +feature period of several months. After the release of Gnus 5.10.6 the +development of new features started again on the trunk while the 5.10 +series is continued on the stable branch (v5-10) from which more stable +releases will be done when needed (5.10.7, @dots{}). +Stable releases of Gnus finally become part of Emacs. E.g. Gnus 5.8 +became a part of Emacs 21 (relabeled to Gnus 5.9). The 5.10 series will +become part of Emacs 22 (as Gnus 5.11). @section Syncing @@ -221,60 +247,63 @@ The CVS trunk is developed quite actively. @c @c -I do Emacs->Gnus less often (than Gnus->Emacs) because it tends to -require more manual work. - -By default I sync about once a week. I also try to follow any Gnus -threads on the mailing lists and make sure any changes being discussed -are kept more up-to-date (so say 1-2 days delay for "topical" changes). - - -@c - -BTW, just to add even more verbose explanation about the syncing thing: - -Basically my idea is that the Emacs-Gnus gateway will cause all common -files in Emacs and Gnus v5-10 to be identical except when there's a very -good reason (e.g., the Gnus version string in Emacs says "5.11", but the -v5-10 version string remains "5.10.whatever"). Furthermore, all changes -in these files in either Emacs or the v5-10 branch will be installed -into the Gnus CVS trunk, again except where there's a good reason -(typically so far the only exception has been that the changes already -exist in the trunk in modified form). Because of this, when the next -Emacs Gnus upgrade comes, it should be very easy -- just plonk in the -files from the Gnus trunk without worrying about lost changes from the -Emacs tree. +In the past, the inclusion of Gnus into Emacs was quite cumbersome. For +each change made to Gnus in Emacs repository, it had to be checked that +it was applied to the new Gnus version, too. Else, bug fixes done in +Emacs repository might have been lost. + +With the inclusion of Gnus 5.10, Miles Bader has set up an Emacs-Gnus +gateway to ensure the bug fixes from Emacs CVS are propagated to Gnus +CVS semi-automatically. These bug fixes are installed on the stable +branch and on the trunk. Basically the idea is that the gateway will +cause all common files in Emacs and Gnus v5-10 to be identical except +when there's a very good reason (e.g., the Gnus version string in Emacs +says @samp{5.11}, but the v5-10 version string remains @samp{5.10.x}). +Furthermore, all changes in these files in either Emacs or the v5-10 +branch will be installed into the Gnus CVS trunk, again except where +there's a good reason. +@c (typically so far the only exception has been that the changes +@c already exist in the trunk in modified form). +Because of this, when the next major version of Gnus will be included in +Emacs, it should be very easy -- just plonk in the files from the Gnus +trunk without worrying about lost changes from the Emacs tree. The effect of this is that as hacker, you should generally only have to make changes in one place: - 1) If it's a file which is thought of as being outside of Gnus (e.g., - the new "encrypt.el"), you should probably make the change in the - Emacs tree, and it will show up in the Gnus tree a few days later. - - If you don't have Emacs CVS access (or it's inconvenient), you can - change such a file in the v5-10 branch, and it should propagate to - Emacs CVS -- however, it will get some extra scrutiny (by me) to see - if the changes are possibly controversial and need discussion on the - mailing list. [Many changes are obvious bug-fixes however, so often - there won't be any problem.] - - 2) If it's to a Gnus file, and it's important enough that it should be - part of Emacs/v5-10, then you can make the change on the v5-10 - branch, and it will go into Emacs CVS and the Gnus CVS trunk (a few - days later). - - If you know that there will be conflicts (perhaps because the - affected source code is different in v5-10 and the Gnus CVS trunk), - then you can install your change in both places, and when I try to - sync them, there will be a conflict -- however, since in most such - cases there would be a conflict _anyway_, it's often easier for me - to resolve it simply if I see two "identical" changes, and can just - choose the proper one, rather than having to actually fix the code. - - 3) For general Gnus development changes, of course you just make the - change on the Gnus CVS trunk and it goes into Emacs a few years - later... :-) +@itemize +@item +If it's a file which is thought of as being outside of Gnus (e.g., the +new @file{encrypt.el}), you should probably make the change in the Emacs +tree, and it will show up in the Gnus tree a few days later. + +If you don't have Emacs CVS access (or it's inconvenient), you can +change such a file in the v5-10 branch, and it should propagate to Emacs +CVS -- however, it will get some extra scrutiny (by Miles) to see if the +changes are possibly controversial and need discussion on the mailing +list. Many changes are obvious bug-fixes however, so often there won't +be any problem. + +@item +If it's to a Gnus file, and it's important enough that it should be part +of Emacs and the v5-10 branch, then you can make the change on the v5-10 +branch, and it will go into Emacs CVS and the Gnus CVS trunk (a few days +later). The most prominent examples for such changes are bug-fixed +including improvements on the documentation. + +If you know that there will be conflicts (perhaps because the affected +source code is different in v5-10 and the Gnus CVS trunk), then you can +install your change in both places, and when I try to sync them, there +will be a conflict -- however, since in most such cases there would be a +conflict @emph{anyway}, it's often easier for me to resolve it simply if +I see two @samp{identical} changes, and can just choose the proper one, +rather than having to actually fix the code. + +@item +For general Gnus development changes, of course you just make the +change on the Gnus CVS trunk and it goes into Emacs a few years +later... :-) +@end itemize Of course in any case, if you just can't wait for me to sync your change, you can commit it in more than one place and probably there will @@ -283,6 +312,17 @@ can be easily resolved automatically (sometimes I notice silly things in such multiple commits, like whitespace differences, and unify those ;-). +@c I do Emacs->Gnus less often (than Gnus->Emacs) because it tends to +@c require more manual work. + +@c By default I sync about once a week. I also try to follow any Gnus +@c threads on the mailing lists and make sure any changes being discussed +@c are kept more up-to-date (so say 1-2 days delay for "topical" changes). + +@c + +@c BTW, just to add even more verbose explanation about the syncing thing: + @section Miscellanea @heading @file{GNUS-NEWS} diff --git a/texi/gnus-ja.texi b/texi/gnus-ja.texi index 8f9c39a..6a60e8a 100644 --- a/texi/gnus-ja.texi +++ b/texi/gnus-ja.texi @@ -3093,6 +3093,32 @@ nntp+news.gnus.org:gmane.text.docbook.apps $B$r(B @code{nil} $B$K@_Dj$7$F2<$5$$!#$"$k$$$O!"$=$l$i$,>o$KBgJ8;z$H>.J8;z$r6h(B $BJL$7$J$$$h$&$K$7$?$$$J$i!"$=$l$r(B @code{t} $B$K@_Dj$7$F2<$5$$!#(B +@code{gnus-parameters} $B$r2p$9$k$3$H$K$h$C$F!"%0%k!<%W$K$h$C$F0[$J$kJB$Y(B +$BBX$($rDj5A$9$k$3$H$,$G$-$^$9!#$3$l$O!"(B@acronym{NNTP} $B$G$OI=Bj$G!"(B +@acronym{RSS} $B%0%k!<%W$G$O:G?7$N%K%e!<%9$,@hF,$K$J$k$h$&$KF|IU$G!"$=$l$>(B +$B$lJB$YBX$($r9T$J$&Nc$G$9!#$3$NNc$N:G=i$N%0%k!<%W$O!"(Bnews.gmane.org $B$+$i(B +$Bo;~FI$_9~$_$^$9!#FC$K(B Emacs $B$G$3(B -$B$N$h$&$J@_Dj$r;H$&I,MW$,@8$8$?$H$-$O!"(B@code{cl} $B$rI,MW$H$7$J$$%3!<%I$K=q(B -$B$-49$($k$3$H$r9MN8$7$F2<$5$$!#Fq$7$/$O$"$j$^$;$s!#(B) - -@lisp -(require 'cl) - -(defun my-gnus-summary-mode-hook-group-select () - (flet ((lsetq (x val) ;; Local setq - (set (make-local-variable x) val))) - (cond - ;; In Group buffer to make Debian daily news group press: G m - ;; and point it to nntp server news.gmane.org and - ;; group gmane.linux.debian.user.news - ((string-match "nntp.*debian.user.news" gnus-newsgroup-name) - (lsetq 'gnus-show-threads nil) - (lsetq 'gnus-article-sort-functions 'gnus-article-sort-by-date-reverse) - (lsetq 'gnus-use-adaptive-scoring nil) - (lsetq 'gnus-use-scoring nil)) - ;; In Group buffer to read Debian weekly news RSS feed press: G R - ;; and point it to url: - ;; http://packages.debian.org/unstable/newpkg_main.en.rdf - ((string-match "nnrss.*debian" gnus-newsgroup-name) - (lsetq 'gnus-show-threads nil) - (lsetq 'gnus-article-sort-functions 'gnus-article-sort-by-subject) - (lsetq 'gnus-use-adaptive-scoring nil) - (lsetq 'gnus-use-scoring t) - (lsetq 'gnus-score-find-score-files-function 'gnus-score-find-single) - (lsetq 'gnus-summary-line-format "%U%R%z%d %I%(%[ %s %]%)\n"))))) - -(defun my-gnus-summary-mode-hook () - (my-gnus-summary-mode-hook-group-select)) -@end lisp - @vindex gnus-thread-score-function $BJQ?t(B @code{gnus-thread-score-function} ($B%G%#%U%)%k%H$O(B @code{+}) $B$K@_Dj(B $B$5$l$F$$$k4X?t$O!"%9%l%C%I$NAm%9%3%"$r7W;;$9$k$?$a$KMQ$$$i$l$^$9!#LrN)$D(B @@ -6966,6 +6954,9 @@ gnus $B$O(B @code{Subject} $BMs$rD4$Y$k$3$H$K$h$C$F%9%l%C%I$r=8$a$^$9!#$3$l$O gnus-article-sort-by-subject)) @end lisp +@code{gnus-parameters} $B$r2p$9$k$3$H$K$h$C$F!"%0%k!<%W$K$h$C$F0[$J$kJB$Y(B +$BBX$($rDj5A$9$k$3$H$,$G$-$^$9!#(B@xref{Group Parameters}. + @node Asynchronous Fetching @section $BHsF14|5-;vH$7$F2<$5$$!#(B +@code{nntp-via-rlogin-command-switches} $B$b;2>H$7$F2<$5$$!#4V@\E*$K@\B3$9(B +$B$k>l9g$NNc$G$9(B: + +@lisp +(setq gnus-select-method + '(nntp "indirect" + (nntp-address "news.server.example") + (nntp-via-user-name "intermediate_user_name") + (nntp-via-address "intermediate.host.example") + (nntp-via-rlogin-command "ssh") + (nntp-end-of-line "\n") + (nntp-via-rlogin-command-switches ("-C" "-t" "-e" "none")) + (nntp-open-connection-function nntp-open-via-rlogin-and-telnet))) +@end lisp $BKIJI$NCf$K$$$?$H$7$F$b(B "runsocks" $B$N$h$&$J%i%C%Q!<%3%^%s%I$rDL$7$F30$N@$(B $B3&$KD>@\%"%/%;%9$G$-$k$N$J$i$P!"0J2<$N$h$&$K(B socks $B2=$5$l$?(B telnet $B$G%K%e!<(B @@ -24891,7 +24895,6 @@ RFC 1731 $B$O(B @acronym{IMAP} $B$N(B GSSAPI/Kerberos4 $B$Ne!#(B diff --git a/texi/gnus.texi b/texi/gnus.texi index 5a79d5a..3dcdcb4 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -3124,6 +3124,33 @@ value of the @code{gnus-parameters-case-fold-search} variable to @code{nil}. Otherwise, set it to @code{t} if you want to compare them always in a case-insensitive manner. +You can define different sorting to different groups via +@code{gnus-parameters}. Here is an example to sort an @acronym{NNTP} +group by subject and an @acronym{RSS} group by reverse date to see the +latest news at the top. In this example, the first group is the Debian +daily news group @code{gmane.linux.debian.user.news} from +news.gmane.org. The @acronym{RSS} group corresponds to the Debian +weekly news RSS feed +@url{http://packages.debian.org/unstable/newpkg_main.en.rdf}, +@xref{RSS}. + +@lisp +(setq + gnus-parameters + '(("nntp.*gmane\\.debian\\.user\\.news" + (gnus-show-threads nil) + (gnus-article-sort-functions '((not gnus-article-sort-by-date))) + (gnus-use-adaptive-scoring nil) + (gnus-use-scoring nil)) + ("nnrss.*debian" + (gnus-show-threads nil) + (gnus-article-sort-functions 'gnus-article-sort-by-subject) + (gnus-use-adaptive-scoring nil) + (gnus-use-scoring t) + (gnus-score-find-score-files-function 'gnus-score-find-single) + (gnus-summary-line-format "%U%R%z%d %I%(%[ %s %]%)\n")))) +@end lisp + @node Listing Groups @section Listing Groups @@ -7077,46 +7104,10 @@ say something like: @lisp (setq gnus-thread-sort-functions - '((lambda (t1 t2) - (not (gnus-thread-sort-by-number t1 t2))) + '((not gnus-thread-sort-by-number) gnus-thread-sort-by-score)) @end lisp -Yet more examples. You can define different sorting to different -groups. Here is an example for where one @acronym{NNTP} group is -sorted by subject and the @acronym{RSS} group is sorted by date to see -the latest news at the top. - -@lisp -(require 'cl) - -(defun my-gnus-summary-mode-hook-group-select () - (flet ((lsetq (x val) ;; Local setq - (set (make-local-variable x) val))) - (cond - ;; In Group buffer to make Debian daily news group press: G m - ;; and point it to nntp server news.gmane.org and - ;; group gmane.linux.debian.user.news - ((string-match "nntp.*debian.user.news" gnus-newsgroup-name) - (lsetq 'gnus-show-threads nil) - (lsetq 'gnus-article-sort-functions 'gnus-article-sort-by-date-reverse) - (lsetq 'gnus-use-adaptive-scoring nil) - (lsetq 'gnus-use-scoring nil)) - ;; In Group buffer to read Debian weekly news RSS feed press: G R - ;; and point it to url: - ;; http://packages.debian.org/unstable/newpkg_main.en.rdf - ((string-match "nnrss.*debian" gnus-newsgroup-name) - (lsetq 'gnus-show-threads nil) - (lsetq 'gnus-article-sort-functions 'gnus-article-sort-by-subject) - (lsetq 'gnus-use-adaptive-scoring nil) - (lsetq 'gnus-use-scoring t) - (lsetq 'gnus-score-find-score-files-function 'gnus-score-find-single) - (lsetq 'gnus-summary-line-format "%U%R%z%d %I%(%[ %s %]%)\n"))))) - -(defun my-gnus-summary-mode-hook () - (my-gnus-summary-mode-hook-group-select)) -@end lisp - @vindex gnus-thread-score-function The function in the @code{gnus-thread-score-function} variable (default @code{+}) is used for calculating the total score of a thread. Useful @@ -7150,6 +7141,8 @@ say something like: gnus-article-sort-by-subject)) @end lisp +You can define group specific sorting via @code{gnus-parameters}, +@xref{Group Parameters}. @node Asynchronous Fetching @@ -12466,7 +12459,19 @@ configuration to the example above: (nntp-via-rlogin-command "ssh") @end lisp -See also @code{nntp-via-rlogin-command-switches}. +See also @code{nntp-via-rlogin-command-switches}. Here's an example for +an indirect connection: +@lisp +(setq gnus-select-method + '(nntp "indirect" + (nntp-address "news.server.example") + (nntp-via-user-name "intermediate_user_name") + (nntp-via-address "intermediate.host.example") + (nntp-via-rlogin-command "ssh") + (nntp-end-of-line "\n") + (nntp-via-rlogin-command-switches ("-C" "-t" "-e" "none")) + (nntp-open-connection-function nntp-open-via-rlogin-and-telnet))) +@end lisp If you're behind a firewall, but have direct access to the outside world through a wrapper command like "runsocks", you could open a socksified