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: Sat, 19 Oct 2019 14:56:04 +0300 Message-ID: <83h8456jaj.fsf@gnu.org> References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> <835zkndcz4.fsf@gnu.org> <83ftjrbjhm.fsf@gnu.org> <83ftjr9sx4.fsf@gnu.org> <83eezb9s5b.fsf@gnu.org> <83bluf9qgb.fsf@gnu.org> <835zkn9o01.fsf@gnu.org> <83lfti8ovn.fsf@gnu.org> <83d0eu8c80.fsf@gnu.org> <83lfth6p0y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="255570"; mail-complaints-to="usenet@blaine.gmane.org" Cc: cpitclaudel@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 19 13:56: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 1iLnLv-0014NO-E8 for ged-emacs-devel@m.gmane.org; Sat, 19 Oct 2019 13:56:59 +0200 Original-Received: from localhost ([::1]:53482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLnLt-0001gT-Sr for ged-emacs-devel@m.gmane.org; Sat, 19 Oct 2019 07:56:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59283) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLnLE-0001dE-Dl for emacs-devel@gnu.org; Sat, 19 Oct 2019 07:56:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iLnLE-0004zw-1P; Sat, 19 Oct 2019 07:56:16 -0400 Original-Received: from [176.228.60.248] (port=1241 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iLnLD-0007Ht-9b; Sat, 19 Oct 2019 07:56:15 -0400 In-reply-to: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Sat, 19 Oct 2019 12:00:10 +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:241224 Archived-At: > From: João Távora > Date: Sat, 19 Oct 2019 12:00:10 +0100 > Cc: Clément Pit-Claudel , > Stefan Monnier , emacs-devel > > > > > EZ: Can we step back a notch and start by describing the problem in > > > > EZ: more detail? What diagnostics does Flymake produce in the case > > > > EZ: of .dir-locals.el, and why does it produce that diagnostics? > > > JT: I haven't checked, but if I had to guess, I would say it tries to invoke > > > JT: the byte-compiler on the file, which doesn't make any sense, as you > > > JT: know. As a result, bogus diagnostics are produced. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I thought it was just a guess, and I wanted us to be sure. Are we sure the problem is triggered by an attempt to invoke the byte compiler on the file? > > Creating a major mode for this issue is like shooting sparrows with > > cannons. Why not extend emacs-lisp-mode to DTRT with > > data-that-doesn't-make-sense-as-code instead? > > That is _exactly_ what Clément proposed in his original patch. My understanding is that Clément proposed a new major mode.