[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
load-paths while generating autoloads
From: |
Colin Walters |
Subject: |
load-paths while generating autoloads |
Date: |
13 Jan 2002 01:56:44 -0500 |
Hello all,
I had a hard time tracking down a bug while working on autoload.el.
When we generate autoloads, emacs will use the default load path, which
includes the target installation path. I had an old installation of
emacs there, and it kept picking up the old autoload.elc instead of my
modified one in the build directory. Anyways, do these changes to
Makefile.in look good?
Index: Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/Makefile.in,v
retrieving revision 1.28
diff -u -u -r1.28 Makefile.in
--- Makefile.in 21 Dec 2001 11:05:18 -0000 1.28
+++ Makefile.in 13 Jan 2002 06:55:53 -0000
@@ -170,7 +170,7 @@
autoloads: loaddefs.el doit
wd=$(lisp); $(setwins); \
echo Directories: $$wins; \
- $(EMACS) $(EMACSOPT) -l autoload --eval '(setq generated-autoload-file
"$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
+ $(EMACS) $(EMACSOPT) --eval "(setq default-directory \"$(lisp)\"
load-path (quote (\"$(lisp)\")))" -l $(lisp)/subdirs.el -l autoload --eval
'(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f
batch-update-autoloads $$wins
subdirs.el:
$(MAKE) $(MFLAGS) update-subdirs
- load-paths while generating autoloads,
Colin Walters <=