From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#8158: Definition of auto-mode-alist Date: Wed, 26 Jan 2022 19:14:11 -0800 Message-ID: References: <87o87hdtcj.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38533"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 8158@debbugs.gnu.org, Stefan Monnier , Reuben Thomas To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 27 04:15:43 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCvGA-0009qN-Oi for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jan 2022 04:15:42 +0100 Original-Received: from localhost ([::1]:49350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCvG9-0007r2-8u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 22:15:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCvFW-0007qg-H0 for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 22:15:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCvFW-0003w8-7V for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 22:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCvFW-0005FZ-00 for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 22:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jan 2022 03:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8158 X-GNU-PR-Package: emacs Original-Received: via spool by 8158-submit@debbugs.gnu.org id=B8158.164325326020107 (code B ref 8158); Thu, 27 Jan 2022 03:15:01 +0000 Original-Received: (at 8158) by debbugs.gnu.org; 27 Jan 2022 03:14:20 +0000 Original-Received: from localhost ([127.0.0.1]:53953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCvEq-0005EA-1s for submit@debbugs.gnu.org; Wed, 26 Jan 2022 22:14:20 -0500 Original-Received: from mail-pl1-f173.google.com ([209.85.214.173]:42909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCvEo-0005Dp-11 for 8158@debbugs.gnu.org; Wed, 26 Jan 2022 22:14:18 -0500 Original-Received: by mail-pl1-f173.google.com with SMTP id i1so1312941pla.9 for <8158@debbugs.gnu.org>; Wed, 26 Jan 2022 19:14:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=QfMOannflHpbTNAuOo5SZSym7zFf7mUDcrqs8eHQ3m0=; b=iWRlg/VotQec27hDGs69ytw7m4BVJkg6w52D2boNBvXqibfHi3WLywRKY5/yYqrTD7 NwrulVb+mSKFqBAiYYSxd2jrjTTB3A6f8bkFALTnGIR55IGIx57HYRrTKM57/0nILSND IGkY71tIBSXChLJ7CL67lQuWDsruyDRxQ0ME978DdtMfW3eNGONyekNTJyxNjHI1mUEP QALe/O8bx88TTopmbadLcJedK/Pwr25MqWseq+ZL8RlkfBHfvL8W7MJIHydhhAr/+PVu jKbx8HLcgatJLsqqBO/W3h1C0DxqegFVhj38wLBKEUjJxf/uQdUB8hgD8SBt8gekUPpr LY3w== X-Gm-Message-State: AOAM531KqSGWMeGWOhqPyODiE8eTGvCTDPefAW+c+9LMKCwQgdKFACog DMp/WYPgUMPrfO7zv6fFGJIQyBjE7CXBcHhQSqA= X-Google-Smtp-Source: ABdhPJyYq0LclR0Yg+fUVUA83l72z/QHcxwZvmR8LMR8rHHNYmgGUsAOchVRi69t/6iePn53jx3RtfRYbPhO89sY6lw= X-Received: by 2002:a17:90b:384d:: with SMTP id nl13mr2032118pjb.133.1643253252289; Wed, 26 Jan 2022 19:14:12 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 26 Jan 2022 19:14:11 -0800 In-Reply-To: <87o87hdtcj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 22 Oct 2021 16:31:08 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225322 Archived-At: close 8158 29.1 thanks Lars Ingebrigtsen writes: > Stefan Kangas writes: > >> Does anyone object to just removing the above comment? And similarly >> for `interpreter-mode-alist', I suppose. > > I think removing the comment is fine. No further comments here within 3 months, so I've now installed the below change on master. diff --git a/lisp/files.el b/lisp/files.el index aabe8f445e..4ba71e6144 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2757,8 +2757,7 @@ auto-mode-case-fold (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 @@ conf-mode-maybe (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)))