From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Date: Sun, 16 Oct 2022 09:17:49 -0400 Message-ID: References: <87sfjsgkl4.fsf@posteo.net> <865ygn4pno.fsf@mail.linkov.net> <864jw4q4ni.fsf@mail.linkov.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38424"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 58486@debbugs.gnu.org, Philip Kaludercic , Stefan Kangas To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 16 15:18:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ok3Ww-0009jn-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 15:18:15 +0200 Original-Received: from localhost ([::1]:42674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ok3Wv-00043l-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Oct 2022 09:18:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ok3Wk-000415-JN for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 09:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ok3Wk-0007mR-Ax for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 09:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ok3Wk-0007ep-2S for bug-gnu-emacs@gnu.org; Sun, 16 Oct 2022 09:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Oct 2022 13:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58486 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.166592628129429 (code B ref 58486); Sun, 16 Oct 2022 13:18:02 +0000 Original-Received: (at 58486) by debbugs.gnu.org; 16 Oct 2022 13:18:01 +0000 Original-Received: from localhost ([127.0.0.1]:43648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok3Wj-0007ea-5O for submit@debbugs.gnu.org; Sun, 16 Oct 2022 09:18:01 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:61992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ok3Wg-0007eJ-UO for 58486@debbugs.gnu.org; Sun, 16 Oct 2022 09:17:59 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 13DDB4408A1; Sun, 16 Oct 2022 09:17:53 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 99048440897; Sun, 16 Oct 2022 09:17:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1665926271; bh=HyipmGLac/45nP1AjKvYiHo+gVRkV9bBwhlpTzE40ac=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=C3VcfCWQT+7BgOCRz6UjKbxCQs96DPX2WelWbSdlVD7jEfLbhTxq+K8vBbV5akfYS BC3qcr6oBjEDoVjD3cIoSm47hovbCDw8VhXF3Kr14RNB5X3mhW6xhOiCCqr4oGzFeV U/wWnKhd+5UWRs2AQV2np8sshe3PDCcOxAw7VYZ9mOR0c1a4ykt/6SCDEhOF/8iU22 8CI5sfrBUkQvG6USKZPkLVb4Lkg3ko8TuPClHMNwaTOz4nqX96PqJOiY3YNBO32Kj3 uqwrb1EfgvH3ljvvR35jUWyj/qPtLe26xMR1p+Qkd16QXqZ+WrV3j6RV5cdyThmsF2 JzSkDYPKN9ayw== Original-Received: from pastel (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6146512051F; Sun, 16 Oct 2022 09:17:51 -0400 (EDT) In-Reply-To: <864jw4q4ni.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 15 Oct 2022 22:16:01 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245644 Archived-At: >> To stay in the spirit of bug#58075, if we consider the major mode >> specified in `auto-mode-alist` (and `mode:` cookies) as a proxy for >> "file type", maybe we should arrange to try and avoid byte-compiling >> those `.el` files whose major mode is `lisp-data-mode` (or: is not >> `emacs-lisp-mode`)? > > I don't know if such case is possible that auto-mode-alist specifies > lisp-data-mode for a file type to avoid byte-compiling, but > some file of that type needs to override its file type's default > by using a cookie `no-byte-compile: nil`? I don't understand what you're saying. The auto-mode-alist's purpose is not "to avoid byte-compiling" but to indicate what kind of content is to be found in the file. And all I'm suggesting is that we should take advantage of that info in more places, for example when we decide whether to byte-compile something. Stefan