]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't discourage auto-mode-alist entries in autoloads
authorStefan Kangas <stefan@marxist.se>
Thu, 27 Jan 2022 02:56:49 +0000 (03:56 +0100)
committerStefan Kangas <stefan@marxist.se>
Thu, 27 Jan 2022 02:57:45 +0000 (03:57 +0100)
* lisp/files.el (auto-mode-alist, interpreter-mode-alist): Delete
comment discouraging entries in autoload directives.  (Bug#8158)

lisp/files.el

index aabe8f445e0e4344c34c2d70c95bbc238ceef4a9..4ba71e614421b92b78708222e88be52ed155736c 100644 (file)
@@ -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)))