(update-directory-autoloads): Ignore files
authorRichard M. Stallman <rms@gnu.org>
Fri, 6 May 1994 08:11:04 +0000 (08:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 6 May 1994 08:11:04 +0000 (08:11 +0000)
whose names start with =.  Bind enable-local-eval to nil.

lisp/emacs-lisp/autoload.el

index b610444..b24dfd5 100644 (file)
@@ -354,8 +354,9 @@ file \"%s\") doesn't exist.  Remove its autoload section? "
 (defun update-directory-autoloads (dir)
   "Run \\[update-file-autoloads] on each .el file in DIR."
   (interactive "DUpdate autoloads for directory: ")
-  (mapcar 'update-file-autoloads
-         (directory-files dir t "\\.el$"))
+  (let ((enable-local-eval nil))
+    (mapcar 'update-file-autoloads
+           (directory-files dir t "^[^=].*\\.el$")))
   (if (interactive-p)
       (save-excursion
        (set-buffer (find-file-noselect generated-autoload-file))