From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2468 Path: news.gmane.org!not-for-mail From: Ed L Cashin Newsgroups: gmane.emacs.gnus.user Subject: Re: fun function: get new news, dammit. Date: Mon, 12 May 2003 00:58:03 -0400 Organization: negia.net Message-ID: <87vfwgep7o.fsf@cs.uga.edu> References: <87bryah5rc.fsf@cs.uga.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668887 15224 80.91.229.2 (31 Jan 2006 00:54:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:54:47 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:44 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386-debian-linux-gnu) Cancel-Lock: sha1:7AEZ8ZR5/f/4wSJLrUyl37kKtyE= Cache-Post-Path: alpha.negia.net!unknown@ppp63-172-85-115.silverstreakdsl.com X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Original-X-Complaints-To: abuse@supernews.com Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2608 Original-Lines: 43 X-Gnus-Article-Number: 2608 Tue Jan 17 17:30:44 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2468 Archived-At: Ed L Cashin writes: > Despite gnus' great features, I often wind up switching to the *Group* > buffer, hitting "L", and then doing "M-g" about twenty times or so to > see whether there's new news/mail. > > Finally I made a function that does just that. OK, I this function appeared to work, but here's something really wierd: although the function does exactly what I do -- it calls the same functions the keys are bound to, it sometimes doesn't show new mail when the keys do! That is, I can run elc-get-news-dammit and not see any new mail, then manually hit M-g on an nnimap mailbox, and it shows new messages! That, to me, seems very strange, since "ESC g" is bound to gnus-topic-get-new-news-this-topic, the same function called in elc-get-news-dammit. ... > > (defun elc-get-news-dammit () > "get the news, dammit!" > (interactive) > (let ((gbuf (get-buffer "*Group*"))) > (if (not gbuf) > (error "Cannot find *Group* buffer")) > (switch-to-buffer gbuf) > (gnus-group-list-all-groups) > (save-excursion > (beginning-of-buffer) > (labels > ((rec () > (gnus-topic-get-new-news-this-topic) > (if (= (forward-line) 0) > (rec)))) > (rec))))) -- Singing Science | Now anyone can tell you what a mammal is, "Mammal" | Anyone who understands! | They're warm blooded, have hair on their bodies, | And suckle their young from mammary glands.