From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Sat, 19 Oct 2019 21:35:44 +0000 Message-ID: <20191019213544.GD7911@ACM> References: <835zkn9o01.fsf@gnu.org> <83lfti8ovn.fsf@gnu.org> <83d0eu8c80.fsf@gnu.org> <83lfth6p0y.fsf@gnu.org> <7f141905-6be3-2c21-e2af-b5926dd80223@gmail.com> <83a79w7rg6.fsf@gnu.org> <38522c1f-8127-0560-7cc5-7bdce849e650@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="145202"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Eli Zaretskii , emacs-devel@gnu.org, =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel , monnier@iro.umontreal.ca, joaotavora@gmail.com To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 19 23:36:59 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 1iLwPB-000bb6-Dl for ged-emacs-devel@m.gmane.org; Sat, 19 Oct 2019 23:36:57 +0200 Original-Received: from localhost ([::1]:38904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLwP9-0004If-LC for ged-emacs-devel@m.gmane.org; Sat, 19 Oct 2019 17:36:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55992) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLwOD-0004IC-UH for emacs-devel@gnu.org; Sat, 19 Oct 2019 17:35:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLwOB-0006v5-Uu for emacs-devel@gnu.org; Sat, 19 Oct 2019 17:35:57 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:58161 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1iLwOB-0006rV-C0 for emacs-devel@gnu.org; Sat, 19 Oct 2019 17:35:55 -0400 Original-Received: (qmail 81336 invoked by uid 3782); 19 Oct 2019 21:35:53 -0000 Original-Received: from acm.muc.de (p2E5D550D.dip0.t-ipconnect.de [46.93.85.13]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 19 Oct 2019 23:35:49 +0200 Original-Received: (qmail 12044 invoked by uid 1000); 19 Oct 2019 21:35:44 -0000 Content-Disposition: inline In-Reply-To: <38522c1f-8127-0560-7cc5-7bdce849e650@yandex.ru> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 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:241239 Archived-At: Hello, Dmitry. On Sat, Oct 19, 2019 at 23:41:19 +0300, Dmitry Gutov wrote: > On 19.10.2019 17:14, Eli Zaretskii wrote: > > In the latter case, we will have to devise some way of turning on > > that new mode automatically in most cases. > I don't think that should be a prerequisite. > But even if we wanted that, do we have a lot of other similar files > that are created by the user, as opposed to being auto-generated? In > the latter case we can add a 'mode: elisp-data-mode' to the file while > it's generated with little effort. Just as little effort is "elisp-data-only: t" in the local variables section. This unambiguously does not contort the notion of major mode. -- Alan Mackenzie (Nuremberg, Germany).