comparison lisp/emacs-lisp/autoload.el @ 50806:50dd49abb157

(update-directory-autoloads): Renamed from update-autoloads-from-directories.
author Richard M. Stallman <rms@gnu.org>
date Sun, 04 May 2003 13:08:49 +0000
parents 0d8b17d428b5
children 4972b38db032
comparison
equal deleted inserted replaced
50805:5323eb52475f 50806:50dd49abb157
1 ;;; autoload.el --- maintain autoloads in loaddefs.el 1 ;; autoload.el --- maintain autoloads in loaddefs.el
2 2
3 ;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2001 3 ;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2001
4 ;; Free Software Foundation, Inc. 4 ;; Free Software Foundation, Inc.
5 5
6 ;; Author: Roland McGrath <roland@gnu.org> 6 ;; Author: Roland McGrath <roland@gnu.org>
473 (goto-char begin) 473 (goto-char begin)
474 (search-forward generate-autoload-section-trailer) 474 (search-forward generate-autoload-section-trailer)
475 (delete-region begin (point))) 475 (delete-region begin (point)))
476 476
477 ;;;###autoload 477 ;;;###autoload
478 (defun update-autoloads-from-directories (&rest dirs) 478 (defun update-directory-autoloads (&rest dirs)
479 "\ 479 "\
480 Update loaddefs.el with all the current autoloads from DIRS, and no old ones. 480 Update loaddefs.el with all the current autoloads from DIRS, and no old ones.
481 This uses `update-file-autoloads' (which see) do its work." 481 This uses `update-file-autoloads' (which see) do its work.
482 In an interactive call, you must give one argument, the name
483 of a single directory. In a call from Lisp, you can supply multiple
484 directories as separate arguments, but this usage is discouraged.
485
486 The function does NOT recursively descend into subdirectories of the
487 directory or directories specified."
482 (interactive "DUpdate autoloads from directory: ") 488 (interactive "DUpdate autoloads from directory: ")
483 (let* ((files-re (let ((tmp nil)) 489 (let* ((files-re (let ((tmp nil))
484 (dolist (suf load-suffixes 490 (dolist (suf load-suffixes
485 (concat "^[^=.].*" (regexp-opt tmp t) "\\'")) 491 (concat "^[^=.].*" (regexp-opt tmp t) "\\'"))
486 (unless (string-match "\\.elc" suf) (push suf tmp))))) 492 (unless (string-match "\\.elc" suf) (push suf tmp)))))