diff options
| author | Lars Ingebrigtsen | 2022-08-15 07:29:22 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-08-15 07:30:25 +0200 |
| commit | 97da8eeb7c739ca549c9769996fc6da326d587fc (patch) | |
| tree | 6593c83a33b9fbc0438106983a0cf4ddfe6d9edc | |
| parent | 75372c6c4e356d01ffa3a839cf65244dca3a909c (diff) | |
| download | emacs-97da8eeb7c739ca549c9769996fc6da326d587fc.tar.gz emacs-97da8eeb7c739ca549c9769996fc6da326d587fc.zip | |
Make update-directory-autoloads available by default again
* lisp/subr.el (make-directory-autoloads)
(update-directory-autoloads): Make available by default again
(bug#57200).
* lisp/obsolete/autoload.el (make-directory-autoloads): Add
obsoletion form.
(batch-update-autoloads): Fix warning.
| -rw-r--r-- | lisp/obsolete/autoload.el | 8 | ||||
| -rw-r--r-- | lisp/subr.el | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/obsolete/autoload.el b/lisp/obsolete/autoload.el index a56f31629e5..a30f8271a3b 100644 --- a/lisp/obsolete/autoload.el +++ b/lisp/obsolete/autoload.el | |||
| @@ -31,6 +31,10 @@ | |||
| 31 | 31 | ||
| 32 | ;; The functions in this file have been superseded by loaddefs-gen.el. | 32 | ;; The functions in this file have been superseded by loaddefs-gen.el. |
| 33 | 33 | ||
| 34 | ;; Note: When removing this file, also remove the references to | ||
| 35 | ;; `make-directory-autoloads' and `update-directory-autoloads' in | ||
| 36 | ;; subr.el. | ||
| 37 | |||
| 34 | ;;; Code: | 38 | ;;; Code: |
| 35 | 39 | ||
| 36 | (require 'lisp-mode) ;for `doc-string-elt' properties. | 40 | (require 'lisp-mode) ;for `doc-string-elt' properties. |
| @@ -729,6 +733,7 @@ its autoloads into the specified file instead. | |||
| 729 | 733 | ||
| 730 | The function does NOT recursively descend into subdirectories of the | 734 | The function does NOT recursively descend into subdirectories of the |
| 731 | directory or directories specified." | 735 | directory or directories specified." |
| 736 | (declare (obsolete loaddefs-generate "29.1")) | ||
| 732 | (interactive "DUpdate autoloads from directory: \nFWrite to file: ") | 737 | (interactive "DUpdate autoloads from directory: \nFWrite to file: ") |
| 733 | (let* ((files-re (let ((tmp nil)) | 738 | (let* ((files-re (let ((tmp nil)) |
| 734 | (dolist (suf (get-load-suffixes)) | 739 | (dolist (suf (get-load-suffixes)) |
| @@ -902,7 +907,8 @@ should be non-nil)." | |||
| 902 | (let ((args command-line-args-left)) | 907 | (let ((args command-line-args-left)) |
| 903 | (batch-update-autoloads--summary args) | 908 | (batch-update-autoloads--summary args) |
| 904 | (setq command-line-args-left nil) | 909 | (setq command-line-args-left nil) |
| 905 | (make-directory-autoloads args generated-autoload-file))) | 910 | (with-suppressed-warnings ((obsolete make-directory-autoloads)) |
| 911 | (make-directory-autoloads args generated-autoload-file)))) | ||
| 906 | 912 | ||
| 907 | (provide 'autoload) | 913 | (provide 'autoload) |
| 908 | 914 | ||
diff --git a/lisp/subr.el b/lisp/subr.el index 42ce9148a90..cd6a9be099c 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1918,6 +1918,13 @@ be a list of the form returned by `event-start' and `event-end'." | |||
| 1918 | (define-obsolete-function-alias 'user-original-login-name | 1918 | (define-obsolete-function-alias 'user-original-login-name |
| 1919 | #'user-login-name "28.1") | 1919 | #'user-login-name "28.1") |
| 1920 | 1920 | ||
| 1921 | ;; These are in obsolete/autoload.el, but are commonly used by | ||
| 1922 | ;; third-party scripts that assume that they exist without requiring | ||
| 1923 | ;; autoload. These should be removed when obsolete/autoload.el is | ||
| 1924 | ;; removed. | ||
| 1925 | (autoload 'make-directory-autoloads "autoload" nil t) | ||
| 1926 | (autoload 'update-directory-autoloads "autoload" nil t) | ||
| 1927 | |||
| 1921 | 1928 | ||
| 1922 | ;;;; Hook manipulation functions. | 1929 | ;;;; Hook manipulation functions. |
| 1923 | 1930 | ||