Don't scan compiled module files for autoloads
* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Ignore compiled module files. Make sure the extension really ends the file name.
This commit is contained in:
parent
9a758b4ccc
commit
b2f32e4c9a
1 changed files with 7 additions and 1 deletions
|
@ -766,7 +766,13 @@ write its autoloads into the specified file instead."
|
||||||
(interactive "DUpdate autoloads from directory: ")
|
(interactive "DUpdate autoloads from directory: ")
|
||||||
(let* ((files-re (let ((tmp nil))
|
(let* ((files-re (let ((tmp nil))
|
||||||
(dolist (suf (get-load-suffixes))
|
(dolist (suf (get-load-suffixes))
|
||||||
(unless (string-match "\\.elc" suf) (push suf tmp)))
|
;; We don't use module-file-suffix below because
|
||||||
|
;; we don't want to depend on whether Emacs was
|
||||||
|
;; built with or without modules support, nor
|
||||||
|
;; what is the suffix for the underlying OS.
|
||||||
|
(unless (string-match "\\.\\(elc\\|\\so\\|dll\\)\\'"
|
||||||
|
suf)
|
||||||
|
(push suf tmp)))
|
||||||
(concat "^[^=.].*" (regexp-opt tmp t) "\\'")))
|
(concat "^[^=.].*" (regexp-opt tmp t) "\\'")))
|
||||||
(files (apply 'nconc
|
(files (apply 'nconc
|
||||||
(mapcar (lambda (dir)
|
(mapcar (lambda (dir)
|
||||||
|
|
Loading…
Add table
Reference in a new issue