From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Fri, 18 Oct 2019 10:38:36 +0200 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> <835zkn9o01.fsf@gnu.org> <83lfti8ovn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ba8a8105952b4455" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153787"; mail-complaints-to="usenet@blaine.gmane.org" Cc: cpitclaudel@gmail.com, Emacs developers , =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Stefan Monnier To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 10:40:01 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 1iLNnl-000dsh-1X for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2019 10:40:01 +0200 Original-Received: from localhost ([::1]:36674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLNnj-0007P2-Sb for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2019 04:39:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40462) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLNn4-0007Ip-2z for emacs-devel@gnu.org; Fri, 18 Oct 2019 04:39:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLNn1-0004tw-TG for emacs-devel@gnu.org; Fri, 18 Oct 2019 04:39:17 -0400 Original-Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:42505) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLNn0-0004sh-Dd; Fri, 18 Oct 2019 04:39:14 -0400 Original-Received: by mail-qk1-x72e.google.com with SMTP id f16so4534886qkl.9; Fri, 18 Oct 2019 01:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6TCLjaa36S47q4tieDcyJAY3pINxPunLCdzy2SyLR9E=; b=uCkOirJZODt+MMke4P51Kaa4bvmRBgCkzUcaf+rMzYAWx879MLdCJOqL5NM2NOg9Di f+UhqpqHVvmw4eOocjmDTfRIQZPzhastk0JVasSV5ErUw0OXtnrpO0dsSQdwS0XDM3kn UdvHFdgOsV1HBDjhG6jfa5Jcs0AsyiatWYY4I3fNG5phaL/002qO2fiJaoty0sIEG5/q 8rwolIenK3rnh0z7k894nYKRf/z6mvwKJsBs+udXY5Xn5MDSXHK1ArQHud48gIrNWJck bF5mQn9zFHAbvuT5LS/Nr/5fpjGxJuacoG8E0osY9SGe903pjGw8sPkBFI7PtKCEY7De 2TsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6TCLjaa36S47q4tieDcyJAY3pINxPunLCdzy2SyLR9E=; b=c8YsYsw58NVqyTSXWbHCboRj+pL9eDJtX+ENHMkPwgyz0OAIwkWKJSkNF0Wl/YLyL4 0x2zb5yCXATBqrY/uMD4OLnqTPAYKmTZ2XdvOqsBgN8yDXmkHa3Q1o0/vLd6Q6lRSeBj Cpu7fBm1kUNDY3VhOY7o22wrhgL1Wu8ayLLjYou2wDBK6ILoicIA1cOK6qURzvkZRnm7 D7UJ7OjdkyR3YZoTp5PfvKVS64Mcaq1q0ZePvb/Z0ujgxBsJzlghOLcKcHGL8IgFdWRy VZVWi7UI0I9rsFTswwZR40m8jTV6Cm/92ob+CyFVaz/QIYnSWQNgCNi+wnSttFa5xpMG KUOg== X-Gm-Message-State: APjAAAVMeI5TI6QtqwC/8EarmgYzO09psn7/JwiLmQUfb461YniC42X+ AdhINh6I3HfezQs0u3tOHdrJw8CMtoaLZSMZxfucbw== X-Google-Smtp-Source: APXvYqysO3bOTUKUv4fOOiki2Y/+o/S7mp2ZtmaTvR2GHBUMu+0I3E4AUE/xyRGzGtbL0PuRBPfe8vhMd/Azo2LJNio= X-Received: by 2002:a37:2f42:: with SMTP id v63mr1102387qkh.277.1571387952760; Fri, 18 Oct 2019 01:39:12 -0700 (PDT) In-Reply-To: <83lfti8ovn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72e 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:241192 Archived-At: --000000000000ba8a8105952b4455 Content-Type: text/plain; charset="UTF-8" On Fri, Oct 18, 2019 at 10:11 AM Eli Zaretskii wrote: > The byte compiler already knows to ignore .dir-locals.el, at least in > one of its commands. [Slightly aside:] Too late now, but perhaps .dir-locals.el should have not used the .el extension. Perhaps we should've reserved .el for lisp code (in the usual meaning of the term). .dir-locals.el is just a configuration file, even if it contains elisp data. .emacs.desktop is a save file containing real elisp code (I mean, function calls like setq and desktop-create-buffer, not just data lists) and it's not called .emacs-desktop.el, after all. As a consequence, I imagine, of nobody usually either editing or directly loading .emacs.desktop (though I've edited it a few times). [On topic:] I think I agree with Eli. It would perhaps make sense to have (in the distribution, or in ELPA) a general mode to edit lisp data with all the bells & whistles, and if so, its facilities would likely influence the way other elisp data files are designed in the future. But a mode just to edit one specific file type seems too much complexity for too little gain. --000000000000ba8a8105952b4455 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Oct 18, 2019 at 10:11 AM Eli Zaretskii <eliz@gnu.org> wrote:

> The byte c= ompiler already knows to ignore .dir-locals.el, at least in
> one of = its commands.

[Slightly aside:]

Too late now, but perhaps .di= r-locals.el should=C2=A0have not used the .el extension. Perhaps we should&= #39;ve reserved .el for lisp code (in the usual meaning of the term).
=C2=A0.dir-locals.el is just a configuration file, even if it contains el= isp data. .emacs.desktop is a save file containing=C2=A0real elisp code (I = mean, function calls like setq and desktop-create-buffer, not just data lis= ts) and it's not called .emacs-desktop.el, after all. As a consequence,= I imagine, of nobody usually either editing or directly loading .emacs.des= ktop (though I've edited it a few times).

[On topic:]

I t= hink I agree with Eli. It would perhaps make sense to have (in the distribu= tion, or in ELPA) a general mode to edit lisp data with all the bells &= whistles, and if so, its facilities would likely influence the way other e= lisp data files are designed in the future. But a mode just to edit one spe= cific file type seems too much complexity for too little gain.
--000000000000ba8a8105952b4455--