From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68287 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: How to avoid loading certain things in batch mode Date: Wed, 11 Feb 2009 21:36:13 +0100 Message-ID: <87tz704soy.fsf@marauder.physik.uni-ulm.de> References: <877i3yfctl.fsf@newsguy.com> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234387533 25357 80.91.229.12 (11 Feb 2009 21:25:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2009 21:25:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16728@lists.math.uh.edu Wed Feb 11 22:26:48 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LXMbM-0003gy-3J for ding-account@gmane.org; Wed, 11 Feb 2009 22:26:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LXMZX-0002HX-IG; Wed, 11 Feb 2009 15:24:43 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LXMZW-0002HF-7b for ding@lists.math.uh.edu; Wed, 11 Feb 2009 15:24:42 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LXMZT-0005sE-4v for ding@lists.math.uh.edu; Wed, 11 Feb 2009 15:24:42 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LXMZn-0007rp-00 for ; Wed, 11 Feb 2009 22:24:59 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LXMZT-00017z-FA for ding@gnus.org; Wed, 11 Feb 2009 21:24:39 +0000 Original-Received: from p4fd46764.dip.t-dialin.net ([79.212.103.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Feb 2009 21:24:39 +0000 Original-Received: from Reiner.Steib by p4fd46764.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Feb 2009 21:24:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4fd46764.dip.t-dialin.net X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Copies-To: nobody User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:pT3BzFvU4Ofv0V8IMqECq3qQWy4= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68287 Archived-At: On Tue, Feb 10 2009, Harry Putnam wrote: > For example: > emacs -batch -l ~/.emacs -l ~/.gnus -f gnus-agent-batch > [...] > Loading /home/gnusu/.emacs-dir/sub_gnus.el... > Symbol's value as variable is void: gnus-summary-mode-map > > That file (sub_gnus.el) loads fine in a live session but balks when gnus > is run in batch mode. We could give more specific help if you posted the code in question. > I wondered if I might be able to construct a conditional that would > know gnus is being run in batch mode.. and to skip certain code that > way? ,----[ v noninteractive RET ] | noninteractive is a variable defined in `src/emacs.c'. | Its value is nil | | Documentation: | Non-nil means Emacs is running without interactive terminal. `---- You can use code like... (unless noninteractive ...fancy stuff...) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/