auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] how to use the git repository to obtain the latest aucTeX?


From: Nicolas Richard
Subject: Re: [AUCTeX] how to use the git repository to obtain the latest aucTeX?
Date: Fri, 30 Aug 2013 13:16:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Tassilo Horn <address@hidden> writes:
> (add-to-list 'Info-directory-list "~/code/auctex/doc")

  TL;DR
Use:
(require 'info) ; unless already require'd earlier
(add-to-list 'Info-additional-directory-list "~/code/auctex/doc")

  Longer version
>From what I understand (and I spent a lot of time trying to grasp these
things at some point), what you suggest is ok if Info-directory-list is
already initialized (exists and is non-nil), which is usually not the
case while reading .emacs. At best it will produce an error (if info was
not yet loaded), or it will produce no error but the variable won't get
filled properly with system-wide info dirs (only those explicitly added
with a line like above). That's at least what I see with a recent emacs.
Also, it is a defvar, not a defcustom, so it is not meant to be changed.
Anyhow, I would personally consider it ok to run in an already emacs
instance, but there are other documented options.

I think the best way is to set the INFOPATH variable, as it will also
allow use of standalone 'info'. A trailing path-separator (this is ":")
is a good thing to have in that variable (see docstring of
Info-directory-list). But this option isn't going to affect a currently
running emacs. (I mean, even after C-x C-e)

The next best choice would be Info-additional-directory-list (mentionned
in docstring of Info-default-directory-list), since this should affect
both currently running + future emacs instances, but not standalone
info.

Adding to Info-default-directory-list would be another choice, but not
recommended (see its docstring), won't affect running emacs (except rare
case), won't affect standalone info, and in fact won't affect anything
if INFOPATH is set but doesn't end with a path-separator.

-- 
Nicolas.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]