From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Thu, 17 Oct 2019 18:04:26 +0100 Message-ID: References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> <87wod4m7sr.fsf@gnus.org> <835zkndcz4.fsf@gnu.org> <83ftjrbjhm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="159714"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cc: Eli Zaretskii , =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 19:21:22 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 1iL9Sk-000fSg-Ir for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 19:21:22 +0200 Original-Received: from localhost ([::1]:54174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL9Si-00065a-Js for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 13:21:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44576) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL9CX-0006Sx-Kd for emacs-devel@gnu.org; Thu, 17 Oct 2019 13:04:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL9CW-0001mo-Fe for emacs-devel@gnu.org; Thu, 17 Oct 2019 13:04:37 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:53495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL9CV-0001lx-BT; Thu, 17 Oct 2019 13:04:35 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id i16so3326993wmd.3; Thu, 17 Oct 2019 10:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=L6qoj2v4bl7PKucHXyARLNqtdBto+Bf250VKRN/SgUg=; b=MRaIYwapI8uTttQVORkA5SYcgJeK9nqsX7xO3RkT0YAXOlsl4xyqHWgnGJiMP2HWqi HQONz4JXJtTrg10NtTA9TBJjutnnh0YICdBQk53uySRxdyleAf1DVAPEuqzfQY203MFT zj16hCQ7DR1s0YAj63muEFisraMTbQkUYK+pkf6MTfAAavu89ntS/pfqccpaDhDHNnz5 6Pf4bVeH8nhXquPeoeTCayk1IRTtqFeVDTXYqYeKRQTidfHDMAD8LPqdpzJI5AgD9H4P 6AqeuIYmZu+d4fZu1DRxF++wL4hnq69YY4Vne0GXS6Zqx7iDrfGQOz9GN7MSTEETQcKb emSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=L6qoj2v4bl7PKucHXyARLNqtdBto+Bf250VKRN/SgUg=; b=ERdZ/txwBTjRY/TlT29xLG6BRlemO48qG60c35FS9JA49B79Xu2kMhRQrZPLqWYRE/ q6he8l1lOJHVo40+Igy93FPl54fsi6YYQfA+r0ZjtBT9LO/0iNcjW4EFNiJ9Hn7QtWIT Ev5Ivj/qd8xOc9CYOxD+AG7VMaigTX3NVmIDryJ6U7Xy4guFqh/7OYTu/0eHpeDBL/rE +6WKzf1Ga2eNtfYP6LvV7Ugq29IIpNsFlCaoPpjLKERSU8v4vyV8Q+lKCqOPX09QwF39 xbUklgnf7/nobwAzI6uirvB7q5KEZZJh7t0+buNnpjDGDR5v+21Gp1yvXnnXgHZpmecz xlHA== X-Gm-Message-State: APjAAAUNLnudMvjYHgF8s+kh+L1WYhadJOYsO9p1e9ffaFgWg9UzHl76 /NsO1Va1Gz2jWRfPtXuCCwuk8ugK X-Google-Smtp-Source: APXvYqyAvfmvhB8ojzIJ92rxu/X+lIEgO1Bn8XQjIkmyKuEaBPQphZO8kJY8Ui5T397vM4aYisJCtQ== X-Received: by 2002:a1c:ed0d:: with SMTP id l13mr3716352wmh.54.1571331872746; Thu, 17 Oct 2019 10:04:32 -0700 (PDT) Original-Received: from GONDOMAR.yourcompany.com (mail1.siscog.pt. [89.115.233.242]) by smtp.gmail.com with ESMTPSA id p7sm2644640wma.34.2019.10.17.10.04.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 10:04:30 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 17 Oct 2019 12:37:56 -0400") X-Antivirus: AVG (VPS 191015-6, 16-10-2019), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::330 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:241154 Archived-At: Stefan Monnier writes: >>>> A better option would be to have a base `lisp-prog-mode` and hen >>>> derive emacs-lisp-mode from it. >>> Exactly. dir-locals-mode should share a parent with emacs-lisp-mode. >> Yes. Is this very hard to do? > > No, it should be straightforward. > See sample patch below. Indeed, quite nice. Eli, would you also opposed to having .dir-locals.el buffers use emacs-lisp-data-mode by default? We could reuse it for other things other than dir-locals. Jo=E3o