From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8645 Path: news.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.user Subject: Re: How to manually download new mail with nnml-get-new-mail set to nil? Date: Fri, 02 Feb 2007 09:29:21 -0500 Organization: Massachusetts Institute of Technology Message-ID: References: <87irekzz4l.fsf@mb3.seikyou.ne.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170427277 27482 80.91.229.12 (2 Feb 2007 14:41:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Feb 2007 14:41:17 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Feb 02 15:41:10 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HCzb1-0006I7-8i for gegu-info-gnus-english@m.gmane.org; Fri, 02 Feb 2007 15:40:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HCzb0-0002x6-TX for gegu-info-gnus-english@m.gmane.org; Fri, 02 Feb 2007 09:40:58 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (usg-unix-v) Cancel-Lock: sha1:8QKVQCStonO6j4VMMQ9LBOU9fvA= Original-Lines: 26 Original-NNTP-Posting-Host: ALL-NIGHT-TOOL.MIT.EDU Original-X-Trace: 1170426561 senator-bedfellow.mit.edu 572 18.7.18.66 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78829 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8645 Archived-At: Gernot Hassenpflug writes: > If I set > > (setq nnml-get-new-mail t) > > then M-g does work on mail groups, but unfortunately this setting also > automatically downloads all mail messages when I start up gnus for the > first time. > > I did not find any command relevant to downloading mail manually on > demand, so I am at the moment using the above variable set to nil on > gnus startup and then switch it to t when I want to download mail, and > then switch it back to nil again. Not very elegant! You could write a Lisp function to do that for you (untested): (defun (gh-get-new-news &optional arg) (interactive) (let ((nnml-get-new-mail t)) (gnus-group-get-new-news arg))) (define-key gnus-group-mode-map "g" 'gh-get-new-news) ...and similarly for M-g if you want to use that. --dzm