From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: New ELPA package ada-lite Date: Thu, 18 Aug 2022 09:33:33 +0300 Message-ID: <83tu6aawn6.fsf@gnu.org> References: <86y1vpfl1k.fsf@stephe-leake.org> <83fshwhqkw.fsf@gnu.org> <86o7wjfb11.fsf@stephe-leake.org> <8335dvdqku.fsf@gnu.org> <86k076fjdr.fsf@stephe-leake.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37831"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 18 08:38:18 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oOZAY-0009Zt-Px for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Aug 2022 08:38:18 +0200 Original-Received: from localhost ([::1]:60602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOZAW-0006q5-5x for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Aug 2022 02:38:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOZ67-0004Rq-9r for emacs-devel@gnu.org; Thu, 18 Aug 2022 02:33:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOZ65-0003gd-Gu; Thu, 18 Aug 2022 02:33:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WbQexVcOZwwIPeVn4PIJQYz2bCsDGXJLpxkO2RoEofI=; b=auXbo+sHhVBc bMZ83032fIOVg6R9rTyaCYQWP4JA42P6XD/y1tQ0oWC3xm7TuGfQX34mO3Riar8mb15BnHdWqcmR4 R5qXZjX821y250N0hrwgMcwpRrLqWvEtJCB2d1eRNvxml3AnAh3cNntDVBt3AnZZWjc68LEyJS+Eo as1cpxZ/yLKp3uBod/JJLAckXF4LaBtlWsO68I+caEymJ/89pah7Okw+LooyW+I8oBQVoasWhsb+j EL4gJ4gWPiGq49HDAsvIv9qCqC8DD6ZF37l4xsiRiDUAhEKSdr/R+gPbqucR6sT3MRJI0YM7ADxFR EZL/qlJdI98HdwwTZaZc/A==; Original-Received: from [87.69.77.57] (port=1920 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOZ64-0000pv-4T; Thu, 18 Aug 2022 02:33:41 -0400 In-Reply-To: <86k076fjdr.fsf@stephe-leake.org> (message from Stephen Leake on Wed, 17 Aug 2022 18:08:48 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293586 Archived-At: > From: Stephen Leake > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Wed, 17 Aug 2022 18:08:48 -0700 > > Eli Zaretskii writes: > > >> From: Stephen Leake > >> Cc: Stefan Monnier , emacs-devel@gnu.org > >> Date: Wed, 17 Aug 2022 02:56:58 -0700 > >> > >> Eli Zaretskii writes: > >> > >> > Would it make sense to have the lite mode in core? > >> > >> I don't think so; that would mean any use of ada-mode would cause a > >> conflict in auto-mode-alist. > > > > Why would they conflict? Or, IOW, why wouldn't it be possible to make > > them not conflict, assuming that no one will activate both modes in > > the same buffer? > > ada-mode does this: > > (add-to-list 'auto-mode-alist '("\\.ad[abs]\\'" . ada-mode)) > > > ada-lite-mode does this: > > (add-to-list 'auto-mode-alist '("\\.ad[abs]\\'" . ada-lite-mode)) > > > Whichever is done last ends up first in auto-mode-alist, and is the one > that (assoc ".ads" auto-mode-alist) returns. OK, and how is this a problem? It's quite clear that the last one will win, but that's not the situation I would like us to support. I would like Emacs to have some minimal support for Ada OOTB. If a user _also_ downloads and installs the larger package from ELPA, it is expected that they will only have that larger mode for Ada files. IOW, I still don't see any problem with that.