From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Thu, 17 Oct 2019 20:35:19 +0300 Message-ID: <83ftjr9sx4.fsf@gnu.org> References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> <87wod4m7sr.fsf@gnus.org> <835zkndcz4.fsf@gnu.org> <83ftjrbjhm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34712"; mail-complaints-to="usenet@blaine.gmane.org" Cc: cpitclaudel@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 19:54:07 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iL9yR-0008ts-Kz for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 19:54:07 +0200 Original-Received: from localhost ([::1]:55352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL9yQ-0002jX-Ak for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 13:54:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51645) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL9gY-0008CN-56 for emacs-devel@gnu.org; Thu, 17 Oct 2019 13:35:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iL9gX-0001pB-Rc; Thu, 17 Oct 2019 13:35:37 -0400 Original-Received: from [176.228.60.248] (port=4421 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iL9gV-0003Dq-Ah; Thu, 17 Oct 2019 13:35:35 -0400 In-reply-to: (message from =?iso-8859-1?Q?Jo?= =?iso-8859-1?Q?=E3o_T=E1vora?= on Thu, 17 Oct 2019 18:04:26 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241158 Archived-At: > From: João Távora > Cc: Eli Zaretskii , Clément Pit-Claudel > , emacs-devel > Date: Thu, 17 Oct 2019 18:04:26 +0100 > > Stefan Monnier writes: > > >>>> A better option would be to have a base `lisp-prog-mode` and hen > >>>> derive emacs-lisp-mode from it. > >>> Exactly. dir-locals-mode should share a parent with emacs-lisp-mode. > >> Yes. Is this very hard to do? > > > > No, it should be straightforward. > > See sample patch below. > > Indeed, quite nice. Eli, would you also opposed to having .dir-locals.el > buffers use emacs-lisp-data-mode by default? We could reuse it for > other things other than dir-locals. As I said, I don't want to introduce a major mode for this tiny problem. It's gross. As for other things, I'm not sure that they matter (no one complained about them yet), and I'm not sure we have a good idea of what exactly does that entail. If there's someone who wants to do the research and suggest what, if anything, could or should be done for those other files differently from emacs-lisp-mode, I'd welcome that, and we could then talk about the best soltion(s). Thanks.