aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-05 17:16:00 +0000
committerRichard M. Stallman1997-08-05 17:16:00 +0000
commit0ceb5fe0ef79fa080db468c9eedb23754d8d85db (patch)
treeeb78094a959388db8edf871b8234b03d1eaca8ca
parent6656e09937e06bb9a570efe4df5fedab38581b82 (diff)
downloademacs-0ceb5fe0ef79fa080db468c9eedb23754d8d85db.tar.gz
emacs-0ceb5fe0ef79fa080db468c9eedb23754d8d85db.zip
(update-autoloads-from-directories):
Don't process file names that start with `.'.
-rw-r--r--lisp/emacs-lisp/autoload.el54
1 files changed, 27 insertions, 27 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index ed90ead9b4f..986cb74661c 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -31,6 +31,32 @@
31 31
32;;; Code: 32;;; Code:
33 33
34(defvar generated-autoload-file "loaddefs.el"
35 "*File \\[update-file-autoloads] puts autoloads into.
36A `.el' file can set this in its local variables section to make its
37autoloads go somewhere else.")
38
39(defconst generate-autoload-cookie ";;;###autoload"
40 "Magic comment indicating the following form should be autoloaded.
41Used by \\[update-file-autoloads]. This string should be
42meaningless to Lisp (e.g., a comment).
43
44This string is used:
45
46;;;###autoload
47\(defun function-to-be-autoloaded () ...)
48
49If this string appears alone on a line, the following form will be
50read and an autoload made for it. If there is further text on the line,
51that text will be copied verbatim to `generated-autoload-file'.")
52
53(defconst generate-autoload-section-header "\f\n;;;### "
54 "String inserted before the form identifying
55the section of autoloads for a file.")
56
57(defconst generate-autoload-section-trailer "\n;;;***\n"
58 "String which indicates the end of the section of autoloads for a file.")
59
34(defun make-autoload (form file) 60(defun make-autoload (form file)
35 "Turn FORM into an autoload or defvar for source file FILE. 61 "Turn FORM into an autoload or defvar for source file FILE.
36Returns nil if FORM is not a defun, define-skeleton, defmacro or defcustom." 62Returns nil if FORM is not a defun, define-skeleton, defmacro or defcustom."
@@ -71,27 +97,6 @@ Returns nil if FORM is not a defun, define-skeleton, defmacro or defcustom."
71 97
72(put 'define-skeleton 'doc-string-elt 3) 98(put 'define-skeleton 'doc-string-elt 3)
73 99
74(defconst generate-autoload-cookie ";;;###autoload"
75 "Magic comment indicating the following form should be autoloaded.
76Used by \\[update-file-autoloads]. This string should be
77meaningless to Lisp (e.g., a comment).
78
79This string is used:
80
81;;;###autoload
82\(defun function-to-be-autoloaded () ...)
83
84If this string appears alone on a line, the following form will be
85read and an autoload made for it. If there is further text on the line,
86that text will be copied verbatim to `generated-autoload-file'.")
87
88(defconst generate-autoload-section-header "\f\n;;;### "
89 "String inserted before the form identifying
90the section of autoloads for a file.")
91
92(defconst generate-autoload-section-trailer "\n;;;***\n"
93 "String which indicates the end of the section of autoloads for a file.")
94
95;;; Forms which have doc-strings which should be printed specially. 100;;; Forms which have doc-strings which should be printed specially.
96;;; A doc-string-elt property of ELT says that (nth ELT FORM) is 101;;; A doc-string-elt property of ELT says that (nth ELT FORM) is
97;;; the doc-string in FORM. 102;;; the doc-string in FORM.
@@ -287,11 +292,6 @@ are used."
287 (insert generate-autoload-section-trailer))) 292 (insert generate-autoload-section-trailer)))
288 (message "Generating autoloads for %s...done" file))) 293 (message "Generating autoloads for %s...done" file)))
289 294
290(defvar generated-autoload-file "loaddefs.el"
291 "*File \\[update-file-autoloads] puts autoloads into.
292A `.el' file can set this in its local variables section to make its
293autoloads go somewhere else.")
294
295;;;###autoload 295;;;###autoload
296(defun update-file-autoloads (file) 296(defun update-file-autoloads (file)
297 "Update the autoloads for FILE in `generated-autoload-file' 297 "Update the autoloads for FILE in `generated-autoload-file'
@@ -398,7 +398,7 @@ This uses `update-file-autoloads' (which see) do its work."
398 (mapcar (function (lambda (dir) 398 (mapcar (function (lambda (dir)
399 (directory-files (expand-file-name dir) 399 (directory-files (expand-file-name dir)
400 t 400 t
401 "^[^=].*\\.el$"))) 401 "^[^=.].*\\.el$")))
402 dirs))) 402 dirs)))
403 autoloads-file 403 autoloads-file
404 top-dir) 404 top-dir)