unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Making it possible to use INFOPATH with Emacs info files
@ 2008-05-01 20:26 Reuben Thomas
  2008-05-02  7:08 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Reuben Thomas @ 2008-05-01 20:26 UTC (permalink / raw)
  To: bug-emacs

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Making it possible to use INFOPATH with Emacs info files
  2008-05-01 20:26 Making it possible to use INFOPATH with Emacs info files Reuben Thomas
@ 2008-05-02  7:08 ` Glenn Morris
  2008-05-02 12:02   ` Reuben Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2008-05-02  7:08 UTC (permalink / raw)
  To: Reuben Thomas; +Cc: bug-emacs

Reuben Thomas wrote:

>   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.

The doc of Info-directory-list says that if INFOPATH ends in a colon,
INFOPATH is combined with Info-default-directory-list. Works for me.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Making it possible to use INFOPATH with Emacs info files
  2008-05-02  7:08 ` Glenn Morris
@ 2008-05-02 12:02   ` Reuben Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Reuben Thomas @ 2008-05-02 12:02 UTC (permalink / raw)
  To: Glenn Morris; +Cc: bug-emacs

On Fri, 2 May 2008, Glenn Morris wrote:

> Reuben Thomas wrote:
>
>>   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.
>
> The doc of Info-directory-list says that if INFOPATH ends in a colon,
> INFOPATH is combined with Info-default-directory-list. Works for me.

Joy, I am living in the future. Thanks very much.

-- 
http://rrt.sc3d.org/ | Analogy midwives, identity murders




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-02 12:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-01 20:26 Making it possible to use INFOPATH with Emacs info files Reuben Thomas
2008-05-02  7:08 ` Glenn Morris
2008-05-02 12:02   ` Reuben Thomas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).