From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pierre =?UTF-8?B?VMOpY2hvdWV5cmVz?= Newsgroups: gmane.emacs.help Subject: Re: What's the right way to define a custom info path. Date: Wed, 25 Nov 2015 20:54:25 +0100 Message-ID: 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: 7Bit X-Trace: ger.gmane.org 1448481289 6918 80.91.229.3 (25 Nov 2015 19:54:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 19:54:49 +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 20:54:43 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 1a1g9K-000471-LJ for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Nov 2015 20:54:42 +0100 Original-Received: from localhost ([::1]:47415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1g9M-0001FY-G3 for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Nov 2015 14:54:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1g97-0001Ao-CI for help-gnu-emacs@gnu.org; Wed, 25 Nov 2015 14:54:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1g96-00084B-DW for help-gnu-emacs@gnu.org; Wed, 25 Nov 2015 14:54:29 -0500 Original-Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]:15190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1g96-000844-7C for help-gnu-emacs@gnu.org; Wed, 25 Nov 2015 14:54:28 -0500 Original-Received: from killashandra.asgard.fr (unknown [IPv6:2a01:e35:2e14:eab0:223:54ff:fe39:301f]) by smtp2-g21.free.fr (Postfix) with ESMTPS id 5AE1B4B005A for ; Wed, 25 Nov 2015 20:53:58 +0100 (CET) User-Agent: KNode/4.14.10 Original-Newsgroups: gmane.emacs.help Original-Lines: 50 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:e0c:1:1599::11 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:108217 Archived-At: First, thanks for the answer. I note that the recommended way to setup info is to use INFOPATH. But, just for my knowledge, I would ask you about one or two things below. Eli Zaretskii wrote: >> ... >> ** My questions >> Have I do something wrong with my config ? Should I set an INFOPATH >> env var with absolutes paths ? If the answer of the previous questions >> is : No, should I open bugs ? > > The way to set this up correctly is to define the INFOPATH environment > variable (outside Emacs) which mentions the directories with Info > files in the proper order. The Emacs is supposed to automatically > pick up the directories from INFOPATH, and you should be able to read > your manuals without any further problems. > > You are instead trying to futz with Emacs variables that are not > supposed to do that well. I suggest to save yourself a lot of trouble > and go via INFOPATH. > >> ** My questions >> Have I do something wrong with my config ? Should I set an INFOPATH >> env var with absolutes paths ? > > Yes to INFOPATH. > >> If the answer of the previous questions is : No, should I open bugs ? > > No, there's no bug here, AFAICT. If you want to set up > Info-directory-list or Info-additional-directory-list, you must load > info.elc first. (But again, I don't recommend going that way.) But these two variables could be modified with the custom machinery, and so without requiring info[.elc] aren't they ? But I understand your advice that doing that is discouraged. Second, the default value for Info-default-directory-list (as computed by the defcustom in info.el) is ("%emacs_dir/info") on my windows install. Is this the expected behaviour ? this value is obviously overridden by info- initialize and become, in my install, ("c:/programmes/emacs/info"). Again is this the expected behaviour ? Third, in the windows patform (substitute-env-vars "%emacs_dir%") doesn't produce "c:/programmes/emacs" as I expected. But (substitute-env-vars "$emacs_dir") do the expansion. Is this the expected behaviour ? Is it that we should not offer a version that performs primary processing ? Thanks agin for your answers.