diff options
| author | Roland McGrath | 1997-02-17 21:44:59 +0000 |
|---|---|---|
| committer | Roland McGrath | 1997-02-17 21:44:59 +0000 |
| commit | 2884cbf0e87b6581b626562afee7709f7d63213f (patch) | |
| tree | 4c49574bdb0755296344ab2ab11aeab62c33fb5f | |
| parent | b89d50357382cf69e5455d4de406e5d23b6e7f3a (diff) | |
| download | emacs-2884cbf0e87b6581b626562afee7709f7d63213f.tar.gz emacs-2884cbf0e87b6581b626562afee7709f7d63213f.zip | |
(update-autoloads-from-directory): Get absolute file names from
directory-files, and expand generated-autoload-file. Subdirs happy now.
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 4614a5c42cb..a4289b6800d 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; autoload.el --- maintain autoloads in loaddefs.el. | 1 | ;;; autoload.el --- maintain autoloads in loaddefs.el. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Roland McGrath <roland@gnu.ai.mit.edu> | 5 | ;; Author: Roland McGrath <roland@gnu.ai.mit.edu> |
| 6 | ;; Keywords: maint | 6 | ;; Keywords: maint |
| @@ -377,11 +377,11 @@ Update loaddefs.el with all the current autoloads from DIR, and no old ones. | |||
| 377 | This uses `update-file-autoloads' (which see) do its work." | 377 | This uses `update-file-autoloads' (which see) do its work." |
| 378 | (interactive "DUpdate autoloads from directory: ") | 378 | (interactive "DUpdate autoloads from directory: ") |
| 379 | (setq dir (expand-file-name dir)) | 379 | (setq dir (expand-file-name dir)) |
| 380 | (let ((files (directory-files dir nil "^[^=].*\\.el$"))) | 380 | (let ((files (directory-files dir t "^[^=].*\\.el$"))) |
| 381 | (save-excursion | 381 | (save-excursion |
| 382 | (set-buffer (find-file-noselect | 382 | (set-buffer (find-file-noselect |
| 383 | (if (file-exists-p generated-autoload-file) | 383 | (if (file-exists-p generated-autoload-file) |
| 384 | generated-autoload-file | 384 | (expand-file-name generated-autoload-file) |
| 385 | (expand-file-name generated-autoload-file | 385 | (expand-file-name generated-autoload-file |
| 386 | dir)))) | 386 | dir)))) |
| 387 | (save-excursion | 387 | (save-excursion |