]> git.eshelyaron.com Git - emacs.git/commitdiff
(autoloads): Skip preloaded files. (Bug#4446)
authorGlenn Morris <rgm@gnu.org>
Tue, 6 Oct 2009 03:12:55 +0000 (03:12 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 6 Oct 2009 03:12:55 +0000 (03:12 +0000)
lisp/ChangeLog
lisp/Makefile.in

index 50c6e57bccd394947af43f2650d55fd4c911aef2..d7a4f85f4eed124478f10065a5b5599eadf4f14e 100644 (file)
@@ -1,5 +1,11 @@
 2009-10-06  Glenn Morris  <rgm@gnu.org>
 
+       * emacs-lisp/autoload.el (autoload-excludes): New variable.
+       (autoload-generate-file-autoloads): Skip files in autoload-excludes.
+       (batch-update-autoloads): Process a string value of autoload-excludes,
+       set during the build process.
+       * Makefile.in (autoloads): Skip preloaded files.  (Bug#4446)
+
        * net/tramp.el (tramp-handle-start-file-process): Move tramp-error call
        inside with-parsed...  macro so that `v' is defined.
 
index 78e95900b7219194605e2c30207822ffac321003..61f4d51461c9db938a2c69956f10726228808f46 100644 (file)
@@ -145,13 +145,16 @@ finder-data: doit
 
 # The chmod +w is to handle env var CVSREAD=1.  Files named
 # are identified by being the value of `generated-autoload-file'.
-autoloads: $(LOADDEFS) doit
+# The Makefile dependency is to make any missing-file error more explicit.
+autoloads: $(LOADDEFS) ../src/Makefile doit
        chmod +w $(lisp)/ps-print.el $(lisp)/emulation/tpu-edt.el \
          $(lisp)/emacs-lisp/cl-loaddefs.el $(lisp)/mail/rmail.el \
          $(lisp)/dired.el $(lisp)/ibuffer.el
        wd=$(lisp); $(setwins_almost); \
        echo Directories: $$wins; \
-       $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
+       preload=`sed -n -e '/^lisp=/ s/$${lispsource}//g p' ../src/Makefile | \
+         sed 's/^lisp= //'`; \
+       $(emacs) -l autoload --eval "(setq generated-autoload-file \"$(lisp)/loaddefs.el\" autoload-excludes \"$${preload}\")" -f batch-update-autoloads $$wins
 
 # This is required by the bootstrap-emacs target in ../src/Makefile, so
 # we know that if we have an emacs executable, we also have a subdirs.el.