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 09:40:32 -0400 Message-ID: References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6563"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs developers , =?windows-1252?Q?Cl=E9ment?= Pit-Claudel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 16:52: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 1iL799-0001Xz-4L for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 16:52:59 +0200 Original-Received: from localhost ([::1]:49816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL797-0007q5-Ti for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 10:52:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38515) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL61A-0004Jh-73 for emacs-devel@gnu.org; Thu, 17 Oct 2019 09:40:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL618-0005w7-LW for emacs-devel@gnu.org; Thu, 17 Oct 2019 09:40:39 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52745) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iL618-0005vf-FL for emacs-devel@gnu.org; Thu, 17 Oct 2019 09:40:38 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4E451811EE; Thu, 17 Oct 2019 09:40:37 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 35DEF80E08; Thu, 17 Oct 2019 09:40:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1571319636; bh=D2EmSHOYdexa6smITWvMflcOiYxoj/0SAzziDUoaaic=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cJOOmInMYzjYC7Aa5ZERDEDuNYLItVLNubWQqXhr4g2eIWWVOjfcvTF0lX1Tj3a1u BxSRvNMcfdRVOCkz3tsQkYQhqKO1DElbgztxNAsXKcY8k3t7Sq/LSwtVaX4rgmW7YL YxVuP0Ots4PuokFvXXNiRoYetoswyi1zLI+FIi6LnYhm6D74PTdyUm78AJosj1ONfc xBOhQs+dZteMX3h6TtYx10yUZ/M8kX8ZFlDjphEbusmB7MO/zIkl0Pj7W3BYgQhcw5 n0Y17G0IZf8ntwrmMirNQ1M08kio4QqY8lI99cW0M0ZZLWzR5gsQHO4FxYXeAzSdB9 V5CZ197gCXa7A== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 07222120547; Thu, 17 Oct 2019 09:40:36 -0400 (EDT) In-Reply-To: (Andreas Schwab's message of "Thu, 17 Oct 2019 10:55:44 +0200") 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:241138 Archived-At: >> .dir-locals.el files are currently opened in emacs-lisp-mode, but they are >> not proper Emacs Lisp files; > In which way are they not proper? They use the Sexp syntax of Elisp, but other than that, they're not Elisp in the sense that they don't contain Elisp expressions. I think it makes a lot of sense to make them use a different major-mode. Not just for flymake. They could also use different font-lock rules, they could benefit fromad-hoc key-bindings to add/remove settings, ... Stefan