summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/autoload.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index 7a0a43631de..56d3e32f996 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -693,8 +693,9 @@ Calls `update-directory-autoloads' on the command line arguments."
(insert-file-contents mfile)
(when (re-search-forward "^lisp= " nil t)
(setq lim (line-end-position))
- (while (re-search-forward "\\${lispsource}\\([^ ]*\\)\\.elc?" lim t)
- (push (concat (expand-file-name (match-string 1) ldir) ".el")
+ (while (re-search-forward "\\${lispsource}\\([^ ]+\\.el\\)c?\\>"
+ lim t)
+ (push (expand-file-name (match-string 1) ldir)
autoload-excludes)))))))
(let ((args command-line-args-left))
(setq command-line-args-left nil)