From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: What's the right way to define a custom info path. Date: Wed, 25 Nov 2015 22:24:22 +0200 Message-ID: <83bnahx1xl.fsf@gnu.org> References: <1603934532.294950108.1448466307513.JavaMail.root@spooler5n-g27.priv.proxad.net> <83wpt6vty5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1448483160 6671 80.91.229.3 (25 Nov 2015 20:26:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 20:26:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 25 21:25:50 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1gdS-0005Eh-7h for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Nov 2015 21:25:50 +0100 Original-Received: from localhost ([::1]:47531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1gdT-0002lR-UE for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Nov 2015 15:25:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1gdI-0002lJ-Qi for help-gnu-emacs@gnu.org; Wed, 25 Nov 2015 15:25:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1gdB-0000TC-QE for help-gnu-emacs@gnu.org; Wed, 25 Nov 2015 15:25:40 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:48556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1gdB-0000Sx-Hm for help-gnu-emacs@gnu.org; Wed, 25 Nov 2015 15:25:33 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NYE00L000MKPM00@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Wed, 25 Nov 2015 22:27:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYE00FH30TM5070@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Wed, 25 Nov 2015 22:27:22 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108219 Archived-At: > From: Pierre T=E9choueyres > Date: Wed, 25 Nov 2015 20:54:25 +0100 >=20 > > No, there's no bug here, AFAICT. If you want to set up > > Info-directory-list or Info-additional-directory-list, you must l= oad > > info.elc first. (But again, I don't recommend going that way.) >=20 > But these two variables could be modified with the custom machinery= , and so=20 > without requiring info[.elc] aren't they ? Yes, you could do that. But I interpreted your message as a request to set them up in Lisp, not via Custom. > But I understand your advice that doing that is discouraged. No, it's not discouraged. It just is harder to set up correctly, whereas the semantics of INFOPATH is simple. > Second, the default value for Info-default-directory-list (as compu= ted by=20 > the defcustom in info.el) is ("%emacs_dir/info") on my windows inst= all. Is=20 > this the expected behaviour ? Yes. That value is never used. > this value is obviously overridden by info- > initialize and become, in my install, ("c:/programmes/emacs/info"). > Again is this the expected behaviour ? Yes. > Third, in the windows patform (substitute-env-vars "%emacs_dir%") d= oesn't=20 > produce "c:/programmes/emacs" as I expected. But (substitute-env-va= rs=20 > "$emacs_dir") do the expansion. Is this the expected behaviour ? Yes. substitute-env-vars supports the Unix style of environment variables. > Is it that we should not offer a version that performs primary > processing ? We could, but why bother? When info loads, it recomputes the value according to where Emacs was installed.