From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: Making it possible to use INFOPATH with Emacs info files Date: Thu, 1 May 2008 21:26:20 +0100 (BST) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1209673600 18512 80.91.229.12 (1 May 2008 20:26:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2008 20:26:40 +0000 (UTC) To: bug-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 01 22:27:16 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JrfN5-0006zB-Of for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 May 2008 22:27:16 +0200 Original-Received: from localhost ([127.0.0.1]:44749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrfMO-0004Ho-Kq for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 May 2008 16:26:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JrfMJ-0004FD-8P for bug-gnu-emacs@gnu.org; Thu, 01 May 2008 16:26:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JrfMH-0004Cw-MM for bug-gnu-emacs@gnu.org; Thu, 01 May 2008 16:26:26 -0400 Original-Received: from [199.232.76.173] (port=54628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JrfMH-0004Ci-DV for bug-gnu-emacs@gnu.org; Thu, 01 May 2008 16:26:25 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JrfMH-0002oQ-7V for bug-gnu-emacs@gnu.org; Thu, 01 May 2008 16:26:25 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:37986 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JrfLv-0001w5-MZ for bug-emacs@gnu.org; Thu, 01 May 2008 16:26:03 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JrfMD-0002ny-V7 for bug-emacs@gnu.org; Thu, 01 May 2008 16:26:24 -0400 Original-Received: from pelican.sc3d.org ([216.184.201.86]) by monty-python.gnu.org with esmtps (SSL 3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JrfMC-0002nc-S3 for bug-emacs@gnu.org; Thu, 01 May 2008 16:26:21 -0400 DKIM-Signature: a=rsa-sha1; t=1209673580; x=1210278380; s=key1024; d=sc3d.org; c=relaxed/relaxed; q=dns; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type; b=4UcE6vu6AfowHCHA0grvMfZc6Ms18gSYtiOUUtcKUkaP8uAF6WlTvk4lvh5Qu5AybS1k2eviHf6Vi483hxEghU2Ras2dOPxAawra2XZXyHWXgAC+Gct4ukQ2BDNUDqmz9Uq+9Nmp8Aexvgqns1mUtLCh/4ZpTfIkE8U2pHacjmg= Original-Received: from canta (cpc1-popl1-0-0-cust121.popl.cable.ntl.com [81.106.80.122]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id HZB93719 for ; Thu, 01 May 2008 16:26:19 -0400 X-X-Sender: rrt@canta User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17907 Archived-At: Because I sometimes install programs in my home directory, I use INFOPATH to specify the system directories plus one in my home directory. However, this gets me into trouble with Emacs, because it takes my INFOPATH for its default info directory list: This variable `Info-default-directory-list' is used as the default for initializing `Info-directory-list' when Info is started, unless the environment variable INFOPATH is set. which means that if I set INFOPATH, then I don't get access to Emacs's own info files (under /usr/share/info/emacs-22) unless I manually add this path to Info-directory-list. With info, this works, because info searches subdirectories of INFOPATH directories for files. Emacs seems not to. It seems to me that Emacs's info reader should always behave like that of the standalone info reader. Hence, Emacs should be made to look in subdirectories of Info-directory-list for info files. (There's a separate issue that with the present semantics of INFOPATH it's impossible for a user simply to extend the system path. I've written to bug-texinfo@gnu.org about this. One solution would be to allow an empty path segment to mean "insert system path here" as it does with some other path variables. But any such solution should be adopted by the standalone info reader first, I think, to give Emacs a behaviour to follow, rather than the other way around.) (This bug came up in Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446376 ) -- http://rrt.sc3d.org/ | poetry, n. platitude made obscure