From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Thu, 17 Oct 2019 15:50:41 -0400 Message-ID: References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> <87wod4m7sr.fsf@gnus.org> <835zkndcz4.fsf@gnu.org> <83ftjrbjhm.fsf@gnu.org> <83ftjr9sx4.fsf@gnu.org> <83eezb9s5b.fsf@gnu.org> <83bluf9qgb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9865"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: cpitclaudel@gmail.com, =?windows-1252?B?Sm/jbyBU4XZvcmE=?= , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 21:51:28 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 1iLBnu-0002LR-9R for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 21:51:27 +0200 Original-Received: from localhost ([::1]:58410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLBnt-0004go-5J for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 15:51:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45035) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLBnM-0004gH-RU for emacs-devel@gnu.org; Thu, 17 Oct 2019 15:50:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLBnL-0003pC-Fb for emacs-devel@gnu.org; Thu, 17 Oct 2019 15:50:48 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:60768) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLBnK-0003oJ-0M; Thu, 17 Oct 2019 15:50:46 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D1E688122F; Thu, 17 Oct 2019 15:50:44 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6B65E80D4B; Thu, 17 Oct 2019 15:50:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1571341843; bh=uw/xRXcDC/oiy3xNaNiASC8IDwZoT9N4sh06quqZ3r4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WZGi/htBUXOEmf/VdoVQ8SY9f38/Lo4DBmh8bj+c2gTRbFz9p5zopM7kh9+xKIBJQ OZMMEEO2qFWrHbHeIF+iMr7OMcEGsGiBXhIyIiDzVaab8x5gLhA3y37sOrDdqD+nEG DO+MxH08kY1UPIP2hwGqIEZWEfusEBRW8CgBX1e/rP5goOWSvrZIav3JVETrh4l2dC PspJdfsyc3FoF0q1qB5NjeKuJKOtfl953SAdRqBGwcpKVwsFpa5vRSpEpr8h7USURx nv/2nfjtjIpjVkqU4EDkvVveE4GDc9NXBwWWi3PmgMj5HVxjwRXdRg8BB8mdxh6c6j ARZpa1wK69KiA== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5FBD9120480; Thu, 17 Oct 2019 15:50:43 -0400 (EDT) In-Reply-To: <83bluf9qgb.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 17 Oct 2019 21:28:36 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 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:241173 Archived-At: > "Gross" means that it solves the problem not where it is caused, and FWIW, I disagree on this judgment: it's not the only acceptable place to solve this problem, but I think it's pretty close to its origin. Fixing it in fly*.el would be "gross" as would become evident if you tried to write a patch for it. If you want the patch to be specific to flymake it'll have to go either to `elisp-mode` or to elisp-flymake-*, all of which live in elisp-mode.el. Of course, changing `elisp-mode` or elisp-flymake-* of course won't help fixing the problem for flycheck (nor will it help with other things we may want to fix such as the M-C-x binding which makes no sense in .dir-locals.el, or the presence of "Byte-compile this file" in the menu, ...). I don't care if we make it a separate major mode or not, but I think it's important to recognize that the origin of the problem is the difference between buffers that contain Elisp code and buffers that contain Elisp data. I agree that at some level they are theoretically the same, but in practice they exhibit important differences. Stefan