From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Thu, 17 Oct 2019 11:47:06 -0400 Message-ID: <83afce42-53ee-9fa1-19b2-294a9a61b3f8@gmail.com> 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=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250915"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: Eli Zaretskii , =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 18:39:41 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 1iL8oO-00139x-9u for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 18:39:40 +0200 Original-Received: from localhost ([::1]:52830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL8oM-0005wv-Q2 for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 12:39:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60451) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL7za-0000Rx-AC for emacs-devel@gnu.org; Thu, 17 Oct 2019 11:47:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL7zZ-0006yq-84 for emacs-devel@gnu.org; Thu, 17 Oct 2019 11:47:10 -0400 Original-Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:43669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL7zZ-0006yg-4M; Thu, 17 Oct 2019 11:47:09 -0400 Original-Received: by mail-qt1-x836.google.com with SMTP id t20so4216799qtr.10; Thu, 17 Oct 2019 08:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xPZVWmcpJ5fpej0fQUtbKO0njWU+nF7jkctLAOCW6bc=; b=Y58R2rf4P/s+GV26hHkFJ1GmWpQT542z43bLBXYnFqBE4Bi9f0R5YH3FhNaExIywpc cXuxW+/wDmTT12R7llOW7zrNzyenSgm0v750ybxcgDyduoCvT5ImWp5jU+8uwC0/dQdu 3xK+7nPnWWHXsR2qC72BzVSG/GRCFz8wrnR5LGhbuD8QkkrR13awML9aPhHUX0apMNCt D7F/GAo7LG2BojqNHxamS/84yS95CDrClrk3FVFK6RhnOzn++lGm9eqZEKGM5qoaGGPE IszgVAoHGrr0piqdyf+WQMOCF7DxTX79NPynRaQBr5IIwTGjRu98yJiH4RRW2FDSzgdg d6LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xPZVWmcpJ5fpej0fQUtbKO0njWU+nF7jkctLAOCW6bc=; b=E8XXSclhuJs+uuHYKXqpVNoJm6te8Z0nJpQXqpgjWoqc7NfJ9ToVmI0f2UtP1ylo83 Fp37LZznHr+5KeSujdxaoafLNwyppG2Id4OdzkMpk3lJVptd43ro2bWbnRFvZIvHkVvK 6qmpybwRxpJpmhQCHWxLCi7HiJ1JDPFaAZyje7Gaj1qoTPA9MxU4i26dyzpQcrjeqInc bwIahZIFdjf1OBGPKm9ygyx4iosPEwyzbzuQH9ald/3P+MG/qRUedGZYkRAC/GERvkYa bqPSvGSx0R8WSV+X+DWLGqOKeCMej4Q/8GGF2MMyTxQkO+PVaIf8Cu6/RSSzAcj+P0ze pFXw== X-Gm-Message-State: APjAAAUYz60IgOWE4NZcVdO78CGdIpOLUp1vQud2W1LfdJjs+FW66BFR 1mVUKGegeas/pp0So44XAkJb05EL X-Google-Smtp-Source: APXvYqwZ1m903GVTPtpHsTxZWNQv4LgKBuQOOA236/1RuLIpXctt6fknIkUMoNP3sjw0bcS9HPpJjg== X-Received: by 2002:ad4:4342:: with SMTP id q2mr4621491qvs.42.1571327228231; Thu, 17 Oct 2019 08:47:08 -0700 (PDT) Original-Received: from [128.30.9.205] (30-9-205.wireless.csail.mit.edu. [128.30.9.205]) by smtp.googlemail.com with ESMTPSA id a9sm1316524qkb.94.2019.10.17.08.47.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 08:47:07 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::836 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:241150 Archived-At: On 2019-10-17 11:45, Yuri Khan wrote: > On Thu, 17 Oct 2019 at 21:57, Clément Pit-Claudel wrote: > >> Flymake in ELisp mode is configured from emacs-lisp-mode, by adding two checkers to flymake-diagnostic-functions. We could change that code to only add the hooks if the file name is not .dir-locals.el, but that seems less clean than creating a separate mode for .dir-locals.el files, since they aren't proper Emacs Lisp files. > > .dir-locals.el is not the only kind of an .el file that is not proper > Emacs Lisp code. Many modes store persistent data in the user’s > .emacs.d, in files ending in .el. Only some of those (e.g. recentf) > take extra steps to make that data valid code. Most just dump a data > structure and call it a day. > > Maybe there should be a base major mode for S-expression files, and > emacs-lisp-mode, along with every other lisp-like mode, deriving from > that? Yes, that would be great. As far as I'm concerned, there's no reason to call these files .el, since most of the emacs-lisp-mode tools are not appropriate on such files.