Re: Too much shell-escaping

David Kastrup <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Jan-Ake Larsson <[email protected]> writes:

> David Kastrup wrote:
>> That we can accommodate package systems _and_ install in sensible
>> startup directory.  
>
> Very good. This is just a suggestion: 
>
>   --with-lispdir=DIR      Where to install lisp files, note that most
>                           of AUCTeX will be installed in a subdirectory
>
> Could become:
>   --with-lispdir=DIR      Where to install the bulk of AUCTeX files,
>                           preferably a subdirectory of some directory
>                           in load-path.

Leave off the "preferably".  If you specify it, the initfile will know
where to find it.

>   --with-initfiledir=DIR  Where your package init files go.
>
>
> --with-auctexdir seems like a strange name to me.

Definitely.  However, we have in automake

AM_PATH_LISPDIR
    Searches for the program emacs, and, if found, sets the output
    variable lispdir to the full path to Emacs' site-lisp directory.

    Note that this test assumes the emacs found to be a version that
    supports Emacs Lisp (such as GNU Emacs or XEmacs). Other emacsen
    can cause this test to hang (some, like old versions of
    MicroEmacs, start up in interactive mode, requiring `C-x C-c' to
    exit, which is hardly obvious for a non-emacs user). In most
    cases, however, you should be able to use `C-c' to kill the
    test. In order to avoid problems, you can set EMACS to "no" in the
    environment, or use the `--with-lispdir' option to configure to
    explictly set the correct path (if you're sure you have an emacs
    that supports Emacs Lisp.


So there already _is_ a convention that lispdir is a location in
load-path, one intended for top-level code.  And that would be our
initialization files usually.

So we should follow this convention.  So it would appear to look
consistent, we need the following:

a) lispdir is autodetected unless overridden with --with-lispdir
b) startup file is placed into ${lispdir}/tex-site.el unless
overridden with --with-packagedir or
--with-texsite=/path/and/filename.el

No wait.  We have tex-mik.el and fptex.el to install into the same
place.  Rats, things could have been so easy.  So probably just
--with-texsitedir=...

c) the bulk of AUCTeX is placed into lispdir/auctex unless overridden
with --with-auctexdir=...

The same scheme would go for preview-latex, more or less.

The option names are still up for grabs, but lispdir is taken, and
since it is supposed to be possible to run a bunch of configure
scripts for different packages with the same options, the installation
places unique to AUCTeX and preview-latex should also have
corresponding unique options.  Other possibilities are auclispdir and
auctexlispdir.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.