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 16:32:59 -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> <831rvb9m9d.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="189756"; 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, joaotavora@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 22:33:33 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 1iLCSh-000nCT-RI for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 22:33:32 +0200 Original-Received: from localhost ([::1]:59278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLCSf-0007v9-Vh for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 16:33:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLCSP-0007t7-HQ for emacs-devel@gnu.org; Thu, 17 Oct 2019 16:33:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLCSL-00089F-Ct for emacs-devel@gnu.org; Thu, 17 Oct 2019 16:33:13 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55218) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLCSH-00085m-60; Thu, 17 Oct 2019 16:33:05 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6FD51100881; Thu, 17 Oct 2019 16:33:02 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 16EBE1007C0; Thu, 17 Oct 2019 16:33:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1571344381; bh=j8upubnyWN4c+y5bScqEuegdc+zyLhiqQfyVClhAaAw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=W67rkkYsiFMS55Kti/VOpr56O4BtDkNjJD1Nz75ANgy4IBfiZeaKmth/R7lFlA2vA gg6aOxPQMHlKXnDlG3aIicQ2QbaGBPg41fIzcZssHm/qkLSELN/aGqdbEu4G7fMgG3 JE0ON5jSlF3FfhkJnFcILud2bbCsMmvao2mrozvyg/74MMsKB6xcfTd3u4frVJ3lUr hqEeBCL8ph2nhxCzFTWEZBAcukdxBscd6xOPTLB2DvMFL9ucOGQGjlDGCyPxXpDiYu 0FF81FyyzCSB8WKXr215wEZES/PviW1GxZ5PAktWyi58rzbEm/U45LzpzwSf/x658q qYl0ZAuCfMv+w== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E05071209B5; Thu, 17 Oct 2019 16:33:00 -0400 (EDT) In-Reply-To: <831rvb9m9d.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 17 Oct 2019 22:59:10 +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:241177 Archived-At: > elisp-flymake-* at least have the advantage of having "flymake" in > their names, so some relation is evident. Just because the original description of the problem talked about flymake doesn't mean the problem is specific to flymake. >> I agree that at some level they are theoretically the same, but in >> practice they exhibit important differences. > Differences that are important for an Emacs major mode? > What differences are those? To quote the email to which you reply: ... 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, ... These probably aren't that important, admittedly. But completion in .dir-locals.el doesn't work very well right now, because the data has the form (VAR . VAL) but the completion function presumes this is Elisp *code* where the head of a list should be a function rather than a variable, so it will give you bogus completions when trying to complete the variable names. We couldn't cleanly fix this completion in a generic emacs-lisp-data-mode, tho: we'd need something more specific like a dir-locals-mode. > And why not make emacs-lisp-mode recognize these differences and > support them accordingly? As I said "I don't care if we make it a separate major mode or not". Tho I was partly lying: I do think a separate major mode is a better choice down the line (e.g. it makes it easier to use auto-mode-alist and -*-...-*- to specify the behavior to use for .dir-locals.el, ~/.emacs.d/bookmarks, ~/.emacs.d/tramp, ~/.emacs.d/ecomplterc, ...), but that's a fairly minor detail compared to the fact that the issue goes much further than "flymake in .dir-locals.el". Stefan