diff options
| author | Glenn Morris | 2008-04-05 18:51:12 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-05 18:51:12 +0000 |
| commit | 5ec993427a38630a5a23a4b09345a6a5009cf037 (patch) | |
| tree | 741ff9b496287946efb956a7e39c60980fd64883 | |
| parent | ce28a62838e239d9b1aeab4acd6abcca7f1ebe9e (diff) | |
| download | emacs-5ec993427a38630a5a23a4b09345a6a5009cf037.tar.gz emacs-5ec993427a38630a5a23a4b09345a6a5009cf037.zip | |
(autoload-ensure-default-file): Provide a feature.
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index dadb6aa0ea8..e6bca3b15dd 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -240,19 +240,22 @@ put the output in." | |||
| 240 | (defun autoload-ensure-default-file (file) | 240 | (defun autoload-ensure-default-file (file) |
| 241 | "Make sure that the autoload file FILE exists and if not create it." | 241 | "Make sure that the autoload file FILE exists and if not create it." |
| 242 | (unless (file-exists-p file) | 242 | (unless (file-exists-p file) |
| 243 | (write-region | 243 | (let ((basename (file-name-nondirectory file))) |
| 244 | (concat ";;; " (file-name-nondirectory file) | 244 | (write-region |
| 245 | " --- automatically extracted autoloads\n" | 245 | (concat ";;; " basename |
| 246 | ";;\n" | 246 | " --- automatically extracted autoloads\n" |
| 247 | ";;; Code:\n\n" | 247 | ";;\n" |
| 248 | "\n;; Local Variables:\n" | 248 | ";;; Code:\n\n" |
| 249 | ";; version-control: never\n" | 249 | "\n" |
| 250 | ";; no-byte-compile: t\n" | 250 | "(provide '" (file-name-sans-extension basename) ")\n" |
| 251 | ";; no-update-autoloads: t\n" | 251 | ";; Local Variables:\n" |
| 252 | ";; End:\n" | 252 | ";; version-control: never\n" |
| 253 | ";;; " (file-name-nondirectory file) | 253 | ";; no-byte-compile: t\n" |
| 254 | " ends here\n") | 254 | ";; no-update-autoloads: t\n" |
| 255 | nil file)) | 255 | ";; End:\n" |
| 256 | ";;; " basename | ||
| 257 | " ends here\n") | ||
| 258 | nil file))) | ||
| 256 | file) | 259 | file) |
| 257 | 260 | ||
| 258 | (defun autoload-insert-section-header (outbuf autoloads load-name file time) | 261 | (defun autoload-insert-section-header (outbuf autoloads load-name file time) |