Re: Too much shell-escaping
David Kastrup <[email protected]>
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
Jan-Ake Larsson <[email protected]> writes: > Jan-Ake Larsson wrote: >> Perhaps some other auctex is in load-path than the one for which we >> are loading tex-site.el. Would the following work? >> >> (defvar TeX-lisp-directory (expand-file-name >> "auctex" >> (file-name-directory load-file-name)) >> "*The directory where most of the AUCTeX lisp files are located. >> tex-site.el (wherein this variable is defined) resides in its >> parent directory. For the location of lisp files associated with >> styles, see the variables TeX-style-* (hand-generated lisp) and >> TeX-auto-* (automatically generated lisp).") > > After some simple testing here, it seems to work. Are there problems > with using this, anyone? Yes. tex-site.el is placed in an arbitrary startup directory, probably a directory intended for automatic installation. auctex is not necessarily below it. But it would be fine with me if we have a default of lispauctexdir='(expand-file-name "auctex" (file-name-directory load-file-name))))' in our configure.in that only gets overriden when an _explicit_ --with-auctexdir is specified on the command line, so that configure.in has the defaults lispauctexdir='(expand-file-name "auctex" (file-name-directory load-file-name))))' auctexdir='${lispdir}/auctex' but an explicit -with-auctexdir will override _both_ using the current mechanism. This would mean that startup files (tex-site.el and preview-latex.el) get installed in lispdir, and the bulk of the stuff gets installed in auctexdir & previewdir, which default to '${lispdir}/auctex' and '${lispdir}/preview' with auto-detection code relative to the installation as you suggested, but which can be overriden on the command line of configure, in which case the autodetection gets replaced by the lisp-quoted explicit path. That should cater for most things. The XEmacs package system could probably not be catered for just with ./configure options, but since we have an explicit --with-packagedir option, this could also change the lispauctexdir and auctex variable _defaults_ to something appropriate pseudo-relative. Package systems like RedHat and Debian install into fixed paths, so the explicit --with-auctexdir generating an absolute path will always be fine. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum