branch: externals/auctex commit a9c37b7ecd2353093fbecc84561fcace1ac8be80 Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
; Add new make target dynvars-check --- .gitignore | 1 + Makefile.in | 7 +++++++ lpath.el | 9 ++++++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7b8ef9f..ec00156 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,4 @@ preview-latex.el /preview.el PROBLEMS.preview tests/*/auto/* +*.dynvars \ No newline at end of file diff --git a/Makefile.in b/Makefile.in index 0dfca87..a25104d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -363,6 +363,13 @@ uninstall: %.elc: %.el $(ELCC) -f batch-byte-compile $< +dynvars-check: + rm -f $(AUCELC) $(STYLEELC) + EMACS_GENERATE_DYNVARS=1 make some > /dev/null 2>&1 + cat *.dynvars style/*.dynvars > auctex.dynvars + rm -f $(AUCELC) $(STYLEELC) + EMACS_DYNVARS_FILE=auctex.dynvars make some + clean: doc/Makefile latex/Makefile rm -f $(CLEANFILES) cd doc && $(MAKE) clean diff --git a/lpath.el b/lpath.el index 2a4354c..5613683 100644 --- a/lpath.el +++ b/lpath.el @@ -5,6 +5,9 @@ ;;; It is not a part of AUCTeX itself. ;; Make sure we get the right files. -(setq load-path (cons "." load-path) - TeX-lisp-directory "<none>" - TeX-auto-global "<none>") + +(let ((auctex-dir (file-name-directory load-file-name))) + (add-to-list 'load-path auctex-dir) + (add-to-list 'load-path (expand-file-name "style" auctex-dir)) + (setq TeX-lisp-directory "<none>" + TeX-auto-global "<none>"))