From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Felix Mueller Newsgroups: gmane.emacs.devel Subject: Re: NS do not set INFOPATH Date: Sat, 16 May 2009 13:06:02 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242472010 8255 80.91.229.12 (16 May 2009 11:06:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2009 11:06:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 16 13:06:43 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M5Hiw-00064F-8J for ged-emacs-devel@m.gmane.org; Sat, 16 May 2009 13:06:38 +0200 Original-Received: from localhost ([127.0.0.1]:32770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5Hiv-0002jT-Ke for ged-emacs-devel@m.gmane.org; Sat, 16 May 2009 07:06:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5Hio-0002hz-GT for emacs-devel@gnu.org; Sat, 16 May 2009 07:06:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5Hij-0002g4-JR for emacs-devel@gnu.org; Sat, 16 May 2009 07:06:29 -0400 Original-Received: from [199.232.76.173] (port=51721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5Hij-0002fs-G1 for emacs-devel@gnu.org; Sat, 16 May 2009 07:06:25 -0400 Original-Received: from www151.your-server.de ([213.133.104.151]:36011) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5Hii-0005L5-Or for emacs-devel@gnu.org; Sat, 16 May 2009 07:06:24 -0400 Original-Received: from [213.73.116.87] (helo=ereboook.local) by www151.your-server.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1M5HiQ-0005Zz-00 for emacs-devel@gnu.org; Sat, 16 May 2009 13:06:07 +0200 In-Reply-To: (Adrian Robert's message of "Sat, 16 May 2009 05:08:45 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (darwin) X-Authenticated-Sender: felix@enqueue.eu X-Virus-Scanned: Clear (Could not determin AV Version) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110924 Archived-At: Hi, * Adrian Robert -- [2009-05-16] writes: > Felix Mueller enqueue.eu> writes: >> I would find it less intrusive, if Emacs.app did not set INFOPATH upon >> start up if it was not set before. This would enable users to make >> changes to Info-default-directory-list in their initialization >> files. > > Thanks for this patch. It looks like it improves the behavior from > before, even if it's not perfect. I will look at incorporating it. I think, setting an environment variable on startup is not a good idea, but an easier alternative would be to simply add a colon to resourcePath in nsterm.m (~ line 418). This way, contents of INFOPATH and Info-default-directory-list are merged when invoking info. >> It might be prudent to change that if Emacs is built non >> self-contained. > > Does the new method cause a failure to find the right info directory in > this case? I only tested it using the default prefix (/usr/local). This works fine. >> If you decide against changing the behavior, I would find it helpful >> if you included a hint in the documentation. > > Do I take it the macos.texi portion of your patch should ONLY be applied > if the other parts are NOT applied Yes. * Leo -- [2009-05-16] writes: > Actually from the documentation, it looks like > Info-default-directory-list is not for users to customise, > Info-additional-directory-list is. OK, but would you not find it more useful if this variable /could/ be changed to effectively add info directories (e.g. in the system wide initialization file to include fink info directories)? I would typically not expect most of the programs I use to set an environment variable by themselves, and I spent a couple of minutes figuring out what was happening and checking for other places that might be responsible for the INFOPATH environment variable. That's why I wrote the email :-) Thanks! -- Felix Mueller felix@enqueue.eu