From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63980 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: autoload variables Date: Mon, 13 Nov 2006 20:08:33 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: 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 1163446585 23963 80.91.229.2 (13 Nov 2006 19:36:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2006 19:36:25 +0000 (UTC) Original-X-From: ding-owner+M12503@lists.math.uh.edu Mon Nov 13 20:36:23 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GjhaY-0005UH-9a for ding-account@gmane.org; Mon, 13 Nov 2006 20:35:26 +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 1GjhWs-0001h0-2M; Mon, 13 Nov 2006 13:31:38 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1GjhWo-0001gY-Jk for ding@lists.math.uh.edu; Mon, 13 Nov 2006 13:31:34 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1GjhWk-0001T0-J2 for ding@lists.math.uh.edu; Mon, 13 Nov 2006 13:31:34 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GjhWi-00078q-00 for ; Mon, 13 Nov 2006 20:31:28 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GjhWM-0004jz-LT for ding@gnus.org; Mon, 13 Nov 2006 20:31:10 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Nov 2006 20:31:06 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Nov 2006 20:31:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 66 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:63980 Archived-At: On Mon, Nov 13 2006, Katsumi Yamaoka wrote: > Isn't this funny? > > NNTPSERVER=flab; export NNTPSERVER > emacs -batch -Q -eval '(message "%s" (getenv "NNTPSERVER"))' > => flab > emacs -batch -Q -eval '(message "%s" (gnus-getenv-nntpserver))' > => flab > emacs -batch -Q -eval '(message "%s" gnus-select-method)' > => nil I always have set NNTPSERVER set, both when building and running Emacs and I get the same results. > In Emacs, `gnus-getenv-nntpserver' and `gnus-select-method' are > defined in loaddefs.el but it is not loaded when Emacs starts. Isn't loaddefs.el dumped into the binary? > I guess the nil value of `gnus-select-method' was set at the > time when I built Emacs. This is not true according to my observation. > It suggests that the default value of `gnus-select-method' is > decided according to the Linux distributions, without minding what > is suitable to a user. I don't have an idea to fix this except for > removing the autoload cookie. The idea of the autoload for `gnus-select-method' was to make `M-x customize-variable RET gnus-select-method RET' work without starting or even loading Gnus. But maybe my change was incorrect, cf. Nelson Ferreira's report for XEmacs: . Here a different approach: --8<---------------cut here---------------start------------->8--- --- gnus.el 25 Oct 2006 13:30:08 +0200 1.56 +++ gnus.el 13 Nov 2006 18:42:07 +0100 @@ -1239,7 +1239,6 @@ :group 'gnus-server :type 'file) -;;;###autoload (defun gnus-getenv-nntpserver () "Find default nntp server. Check the NNTPSERVER environment variable and the @@ -1251,7 +1250,8 @@ (when (re-search-forward "[^ \t\n\r]+" nil t) (match-string 0)))))) -;;;###autoload +;;;###autoload(when (fboundp 'custom-autoload) (custom-autoload 'gnus-select-method "gnus")) + (defcustom gnus-select-method (condition-case nil (nconc --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/