From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: bug#8158: Definition of auto-mode-alist Date: Wed, 2 Mar 2011 22:22:47 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299105635 23441 80.91.229.12 (2 Mar 2011 22:40:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 22:40:35 +0000 (UTC) Cc: 8158@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 02 23:40:31 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuuiX-0000Af-D8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 23:40:28 +0100 Original-Received: from localhost ([127.0.0.1]:44452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuuiU-00045R-BA for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 17:40:22 -0500 Original-Received: from [140.186.70.92] (port=36991 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuufB-000266-RP for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:36:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuufA-0005H6-9n for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:36:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuufA-0005H2-7T for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:36:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PuuRi-0005F2-6Y; Wed, 02 Mar 2011 17:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Mar 2011 22:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8158 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8158-submit@debbugs.gnu.org id=B8158.129910457620137 (code B ref 8158); Wed, 02 Mar 2011 22:23:02 +0000 Original-Received: (at 8158) by debbugs.gnu.org; 2 Mar 2011 22:22:56 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuuRc-0005Ej-2X for submit@debbugs.gnu.org; Wed, 02 Mar 2011 17:22:56 -0500 Original-Received: from exprod7og126.obsmtp.com ([64.18.2.206]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PuuRa-0005EW-0S for 8158@debbugs.gnu.org; Wed, 02 Mar 2011 17:22:54 -0500 Original-Received: from source ([209.85.210.47]) (using TLSv1) by exprod7ob126.postini.com ([64.18.6.12]) with SMTP ID DSNKTW7DN/uZB5sAyBdNpXYSfK0NWdH7VquV@postini.com; Wed, 02 Mar 2011 14:22:54 PST Original-Received: by pzk12 with SMTP id 12so78143pzk.34 for <8158@debbugs.gnu.org>; Wed, 02 Mar 2011 14:22:47 -0800 (PST) Original-Received: by 10.142.195.12 with SMTP id s12mr232435wff.6.1299104567119; Wed, 02 Mar 2011 14:22:47 -0800 (PST) Original-Received: by 10.142.199.21 with HTTP; Wed, 2 Mar 2011 14:22:47 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 02 Mar 2011 17:23:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44531 Archived-At: On 2 March 2011 22:18, Lennart Borgman wrote: > On Wed, Mar 2, 2011 at 11:02 PM, Reuben Thomas wrote: >> A comment in files.el says: >> >> =A0;; Note: The entries for the modes defined in cc-mode.el (c-mode, >> =A0;; c++-mode, java-mode and more) are added through autoload >> =A0;; directives in that file. =A0That way is discouraged since it >> =A0;; spreads out the definition of the initial value. >> >> Isn't this a bit unmodular as Emacs continues to grow, and given loaddef= s.el? >> >> If the maintainers agree, then the last sentence should be changed to >> encourage the removal of the initial values back into the relevant >> mode files. > > I think I disagree. This sort of information must be coordinated so it > need to be in a central place. Why does it have to be coordinated? The most obvious reason seems to me "to avoid clashes", but this is detectable by parsing auto-mode-alist. Generating a warning when there are clashing settings for the same suffix would also be handy for 3rd party modes, which cannot integrate their information in this way. For modes that are part of Emacs, this system is fragile, as it's easy to forget that part of the mode is in files.el. --=20 http://rrt.sc3d.org