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: Sun, 20 Oct 2019 08:38:13 +0300 Message-ID: <8336fo6koq.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> <7f141905-6be3-2c21-e2af-b5926dd80223@gmail.com> <5c9ce9a7-aaa7-8299-e5be-498cb4f2b173@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="213233"; mail-complaints-to="usenet@blaine.gmane.org" Cc: cpitclaudel@gmail.com, emacs-devel@gnu.org, joaotavora@gmail.com, monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 20 07:38: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 1iM3ve-000tGG-LF for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 07:38:58 +0200 Original-Received: from localhost ([::1]:50616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iM3vd-0001Fv-Hg for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 01:38:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47160) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iM3v7-0001Fc-8i for emacs-devel@gnu.org; Sun, 20 Oct 2019 01:38:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iM3v6-0008Rt-JJ; Sun, 20 Oct 2019 01:38:24 -0400 Original-Received: from [176.228.60.248] (port=2488 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iM3v6-0000Wv-3F; Sun, 20 Oct 2019 01:38:24 -0400 In-reply-to: <5c9ce9a7-aaa7-8299-e5be-498cb4f2b173@yandex.ru> (message from Dmitry Gutov on Sat, 19 Oct 2019 23:38:20 +0300) 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:241245 Archived-At: > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > From: Dmitry Gutov > Date: Sat, 19 Oct 2019 23:38:20 +0300 > > On 19.10.2019 15:53, Clément Pit-Claudel wrote: > > Finally, what motivated me to propose a split was the fact that a fix was needed in two places (Flymake and Flycheck), and likely in others (company and completion-at-point-functions should ideally work differently in .dir-locals.el; imenu doesn't make much sense there, ELisp syntax-highlighting is sub-optimal for these files outside of `eval' forms, etc.). > > Exactly. > > xref-backend-functions and project-external-roots-functions come to mind > as well. And they all will have to duplicate the check. What check did you have in mind? AFAIK, the hooks you mention don't need to byte-compile the file, so the issue at hand is not relevant for them. And at least for Xref, I don't see why it should handle ELisp data files differently from any other ELisp files.