From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/6235 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: How to get topic name in summary buffer? Date: Mon, 05 Dec 2005 12:11:57 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <86slt8fln3.fsf@gmail.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671795 30712 80.91.229.2 (31 Jan 2006 01:43:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:43:15 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:36:30 2006 Original-Newsgroups: gnu.emacs.gnus X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:S1lffCu9VAveIwxm0t85Z4OSNwU= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1133783750 134.60.10.123 (5 Dec 2005 12:55:50 +0100) Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.pionier.net.pl!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.uni-ulm.de!viandante.physik.uni-ulm.de!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:6377 Original-Lines: 31 X-Gnus-Article-Number: 6377 Tue Jan 17 17:36:30 2006 Xref: news.gmane.org gmane.emacs.gnus.user:6235 Archived-At: On Mon, Dec 05 2005, leon wrote: > Hello, > > How can I get the topic name in summary buffer? > > What I'm trying to do is writing an archive function which will copy > current article to a nnml group named after the topic name? So groups > under topic 'Science' should be archived to nnml:archive.Science. > > Any ideas? AFAICS, there's no predefined function for this in Gnus. The following function should do the trick: (defun rs-gnus-current-topic (&optional group) "Return the name of the topic for GROUP. If GROUP is nil, try `gnus-newsgroup-name'." (with-current-buffer gnus-group-buffer (and (not group) gnus-newsgroup-name (setq group gnus-newsgroup-name)) (when group (gnus-group-jump-to-group group)) (gnus-current-topic))) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/