From 8f9f1701f632ed72f511fb66bf14417b63524e9a Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 27 Jan 2022 03:56:49 +0100 Subject: [PATCH] Don't discourage auto-mode-alist entries in autoloads * lisp/files.el (auto-mode-alist, interpreter-mode-alist): Delete comment discouraging entries in autoload directives. (Bug#8158) --- lisp/files.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/files.el b/lisp/files.el index aabe8f445e0..4ba71e61442 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2757,8 +2757,7 @@ since only a single case-insensitive search through the alist is made." (defvar auto-mode-alist ;; Note: The entries for the modes defined in cc-mode.el (c-mode, ;; c++-mode, java-mode and more) are added through autoload - ;; directives in that file. That way is discouraged since it - ;; spreads out the definition of the initial value. + ;; directives in that file. (mapcar (lambda (elt) (cons (purecopy (car elt)) (cdr elt))) @@ -3056,8 +3055,7 @@ and `magic-mode-alist', which determines modes based on file contents.") (defvar interpreter-mode-alist ;; Note: The entries for the modes defined in cc-mode.el (awk-mode ;; and pike-mode) are added through autoload directives in that - ;; file. That way is discouraged since it spreads out the - ;; definition of the initial value. + ;; file. (mapcar (lambda (l) (cons (purecopy (car l)) (cdr l))) -- 2.39.5