From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 09:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58486 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 58486@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166565192014603 (code B ref -1); Thu, 13 Oct 2022 09:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Oct 2022 09:05:20 +0000 Received: from localhost ([127.0.0.1]:59526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiu9X-0003nT-Mx for submit@debbugs.gnu.org; Thu, 13 Oct 2022 05:05:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:33384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiu9W-0003nM-7I for submit@debbugs.gnu.org; Thu, 13 Oct 2022 05:05:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiu9V-0005TX-Vy for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 05:05:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiu9T-0001i5-Ed for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 05:05:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B4FD7240028 for ; Thu, 13 Oct 2022 11:05:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665651912; bh=hJWZlQ9ZIEUjLeVPVmnvKctHYIj250YbONQzGAdL8Zw=; h=From:To:Subject:Autocrypt:Date:From; b=D44y0b66d/XBgDhkYx31OXXH8mV9WjpWYxi2pM/Dn58WyiQ3uQeShkZGMP7Khzt6H VOBNKZr8DG03XugH+eJ3Kjl3xyYqLQk1aMdMMezyuPZkhGp9jwTX6sYZb5TbFW0J/Y voH/JA8nVtGjVmVukT7R2U4qEnroPoyyHaSE3cF4qn6LXL0ljJ3QcRm0G3+n+c4Nyf 2GPjvOKIUnfjrQhTE1sG2ZIM22oxka2H7M5gEbdS+Dl6qGHeipNCAexl+ZUxUF53eY BtSHeGJKTZADRX3HX15tlXrmKs2JdErXRIpfpj0/q3fZV7Ey+eKNBA9CwZsGrijNA+ NNnE1rM/NCAqw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mp3WX1nryz9rxN for ; Thu, 13 Oct 2022 11:05:12 +0200 (CEST) From: Philip Kaludercic Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 13 Oct 2022 09:05:11 +0000 Message-ID: <87sfjsgkl4.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Tags: patch When selecting a number of .el files in Dired and byte-compiling them I'll usually also select a .dir-locals.el file that won't compile. Would annotating them as non-byte-compilable files be sensible? In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-10-13 built on rhea Repository revision: 36505800b5a0c8d7b4af5ceb54483cfdfdbf6925 Repository branch: local System Description: Fedora Linux 36 (Workstation Edition) Configured using: 'configure --with-pgtk --with-imagemagick' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Prevent-.dir-locals.el-from-being-byte-compiled.patch >From 8bf2e39c36a66df7e415800caa77c9116648effb Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Wed, 5 Oct 2022 19:45:27 +0200 Subject: [PATCH] Prevent .dir-locals.el from being byte-compiled * lisp/files-x.el (modify-dir-local-variable): Add a 'no-byte-compile' file local variable when generating a .dir-locals.el file. --- lisp/files-x.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files-x.el b/lisp/files-x.el index da1e44e250..f6d5d6cc27 100644 --- a/lisp/files-x.el +++ b/lisp/files-x.el @@ -489,7 +489,7 @@ modify-dir-local-variable dir-locals-directory-cache)) ;; Insert modified alist of directory-local variables. - (insert ";;; Directory Local Variables\n") + (insert ";;; Directory Local Variables -*- no-byte-compile: t -*-\n") (insert ";;; For more information see (info \"(emacs) Directory Variables\")\n\n") (princ (dir-locals-to-string (sort variables -- 2.37.3 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 13 09:47:40 2022 Received: (at control) by debbugs.gnu.org; 13 Oct 2022 13:47:41 +0000 Received: from localhost ([127.0.0.1]:60018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiyYm-0005Cq-JX for submit@debbugs.gnu.org; Thu, 13 Oct 2022 09:47:40 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:36648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiyYZ-0005BO-Qg for control@debbugs.gnu.org; Thu, 13 Oct 2022 09:47:37 -0400 Received: by mail-ot1-f45.google.com with SMTP id r34-20020a05683044a200b0065a12392fd7so63542otv.3 for ; Thu, 13 Oct 2022 06:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=MnMWnAXNMwmyTDq6h50YpQtKOSkJcvd9oXuid11sxB0=; b=o66lu6A5bEak8JXHA/Um+fHI54HE27LNKoFCsKSSqhAOKFWpzQIMKvurU68Qn4hIlI sboDTfwMimCKMGhYoBoTGLmlXRbzJ+J0KJoNiXB4UmFeknJI8hD/JFdynBZzC7cDHrJ9 6bmNVOB0vNfHDoZ6/L0NNcyD78OlO6FNc49V63v9EfjjzjZVx3PaPwH4CZ9yozxO9sYe fUmsUYImX+iDYDqQmrmOu3kgFrQ/s6/ZiCnIjVIpD9am6XuC6SfAtjXxRt3nKEjQqsKQ BoMVPGlWtLleScf2Augzj9T+UqUacaoC83VEabWFh8/Azlg6WGxExRuyRcxL+y31CtjJ d0KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MnMWnAXNMwmyTDq6h50YpQtKOSkJcvd9oXuid11sxB0=; b=VjTdOLYnhkdvIlUvVOqmiYmN9qs9sutqLZ8xnBZzg8LK2YlEsRBNC6D9qB+AJwAmKU oqXiRTuIRX3Gb5nlfZ0z2PqF65P7CMuW9BYaBfU4Mmd71g+BuuL2Nm4iWbhRTVPC+gcI uxXPX9WTgomnPd1ilOEtsyAMvx1kI7ayycK2pe2qN0MjusuLh2FPJBilJwC7XAI1Jr6A i2gYiKtlB/Du5xPY3KifYuG/g32P3QX856b0798uZWQaHwGZ3AumlXcJ6x0ITSlEis1n yIEcHomMTR8xSJLe36ny46csgOPd/uc0nTVrIrKYOmu1AsUnmhpW0v9Cv/wKYqyhM72G MnuQ== X-Gm-Message-State: ACrzQf0bmiFipT8opglKMnO4IaGs3N2WFi69cHqGiPYIO+k7WFrshMWE CDPnW3YT/kXxHwNdaeygyORufANp+EPnF0TWXTXWJ4dX X-Google-Smtp-Source: AMsMyM4TrYhF9HNQissYNlN38q3ig3Vf7hXrv2F32pckBqWj7DuHsZ+megfyGxGwKl0sbN/P/HOn+S6wUKXinsFroOM= X-Received: by 2002:a05:6830:3c1:b0:637:28be:7920 with SMTP id p1-20020a05683003c100b0063728be7920mr27199otc.105.1665668842048; Thu, 13 Oct 2022 06:47:22 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 13 Oct 2022 15:47:21 +0200 From: Stefan Kangas X-Hashcash: 1:20:221013:control@debbugs.gnu.org::8y2ZA6B/oVOD9cdC:j7v MIME-Version: 1.0 Date: Thu, 13 Oct 2022 15:47:21 +0200 Message-ID: Subject: control message for bug #58486 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 58486 wishlist quit From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 14:21: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 To: Philip Kaludercic , 58486@debbugs.gnu.org Cc: Stefan Monnier Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.16656708132747 (code B ref 58486); Thu, 13 Oct 2022 14:21:02 +0000 Received: (at 58486) by debbugs.gnu.org; 13 Oct 2022 14:20:13 +0000 Received: from localhost ([127.0.0.1]:34455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiz4G-0000iE-W6 for submit@debbugs.gnu.org; Thu, 13 Oct 2022 10:20:13 -0400 Received: from mail-oa1-f52.google.com ([209.85.160.52]:38876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiz4D-0000hy-LK for 58486@debbugs.gnu.org; Thu, 13 Oct 2022 10:20:12 -0400 Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-1322d768ba7so2454710fac.5 for <58486@debbugs.gnu.org>; Thu, 13 Oct 2022 07:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=4xq6DG5MiaMqkUVMIu85NKHTNjpefTI/CpnQutLyH1g=; b=BqCPyfRETpR6Q3X5G+oeHl7Lz2Pm2CuB6UtovyXD1q3AjO6Us3ZxDnUG8WILXESlVi jFvj11BPvYwG0LzVS5gFdpGgvPzvCQ1/lML1aFtVsV0RIUxsRy9gBV24JxxSo8H5xyLG QWmLTZaShVQ55+A6Bf8LEt82RsQZ+F6OoYf1axEW/dcCh9rY09urIK6C4KXif0uAS6Do 63QNMf9xwAWABRT2adaUVio3woSBJl6AskBHQugwHnED5BTdVTHQ4CA5vpGNrKTUtz+L KsTeUjG66dAXI5Xi0zqyWQNRiDfH8zwpKdvt+QKy3pn3oqcg2IxBZE5bMv/geOge2MNh AtOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4xq6DG5MiaMqkUVMIu85NKHTNjpefTI/CpnQutLyH1g=; b=PP9XrkQw5hCYQsl4L6KG7+HlU5b/vhu3oHaNSm67yIULO4civfXuqh9dhDkqAx1r2e T9lBW5GGGJPH66DBkbALhZaHCgA4IbdAkGQyfxQv39aMcupww5hWpsrYPD8+KY1ZUNNv SBs6xK0igPHGoUtAR66s3pwDJMW/KLuAwIj/s6NybNv8mUs/yc+F8tSE3lZ6vWNeqUma ESyLPZ8+bJ4dJgEjJrh2RRbQGeJsLUgY8uF50tMx4y3Q82ox9MAG7zra4yqBO+ymrM32 mg4caidRPSEmgDMiMwFD7mp43G7lGNlkpRKj+rccm+dM6j7hOZjJFZu7VXpyVAkYGfMn eSKw== X-Gm-Message-State: ACrzQf2IbUDNPE5H/3pmglgX3Izrk1spLwcdLvX60BxRJmm8QY7E6HVc Hdu95v/Xk+UGgn0Xz8rBNXR71vcsUbUKIzVdy5E= X-Google-Smtp-Source: AMsMyM731BfK1iyjUpuAle33T939O/hN5X8aqvI/HbSWJ4kUXoj1SU0W69fupC93QwhVVuztxqs9ddbKB2E/l97uKcE= X-Received: by 2002:a05:6870:9126:b0:132:b724:e96c with SMTP id o38-20020a056870912600b00132b724e96cmr5670989oae.199.1665670804036; Thu, 13 Oct 2022 07:20:04 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 13 Oct 2022 16:20:03 +0200 From: Stefan Kangas In-Reply-To: <87sfjsgkl4.fsf@posteo.net> References: <87sfjsgkl4.fsf@posteo.net> X-Hashcash: 1:20:221013:monnier@iro.umontreal.ca::nvJuGx4PYWWTs8At:88BG MIME-Version: 1.0 Date: Thu, 13 Oct 2022 16:20:03 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philip Kaludercic writes: > When selecting a number of .el files in Dired and byte-compiling them > I'll usually also select a .dir-locals.el file that won't compile. > Would annotating them as non-byte-compilable files be sensible? Makes sense to me, FWIW. Though Stefan M might point out that these files should actually be called ".dir-locals.eld". Which, BTW, we should probably add support for. And "*.eld" files should never be compiled, I think? (Don't forget to add the cookie to our .dir-locals.el as well.) From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 14:33: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 To: Stefan Kangas Cc: 58486@debbugs.gnu.org, Stefan Monnier Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.16656715644205 (code B ref 58486); Thu, 13 Oct 2022 14:33:02 +0000 Received: (at 58486) by debbugs.gnu.org; 13 Oct 2022 14:32:44 +0000 Received: from localhost ([127.0.0.1]:34486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oizGO-00015l-0c for submit@debbugs.gnu.org; Thu, 13 Oct 2022 10:32:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oizGL-00015R-Dc for 58486@debbugs.gnu.org; Thu, 13 Oct 2022 10:32:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 497C2240105 for <58486@debbugs.gnu.org>; Thu, 13 Oct 2022 16:32:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665671555; bh=MO0Mcs6IAqpiSvQyyKii9g/LZnQAs5NNcV/vRKwVR2o=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=OAOH7D7LDTtvrOjujw/yxMf0rOzqc5DlZQ1zIsf3DaIPGPyv5jFAoKfyFqRHZy/dM aVRZy6a6IQygruT3rqwpzIvdZGNUBidtCaZlTPwppcsVHVHfbfSmzn+6Mt51d+L123 fKm0moYgxpXcmOXoG815+EPlXXbm+Bth26sqTiLchogjBOrdhYbmsg3iyQqJ1Z6CyT V3JPdBdJK1MrIdwIvHH2Oa/sBW8WRd2tKI2OoZWHpZvykm2vEYzNp3x+aHRx7xSNBF M7+i0jjJHNsxgL9nAsY8MKFXZ1fLEbrcPtCCU0SNnmjQIxZ/Y0MSqZiKoS6rSG9kHg eaR2N5WFggWQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MpBnD04C2z9rxH; Thu, 13 Oct 2022 16:32:31 +0200 (CEST) From: Philip Kaludercic In-Reply-To: (Stefan Kangas's message of "Thu, 13 Oct 2022 16:20:03 +0200") References: <87sfjsgkl4.fsf@posteo.net> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 13 Oct 2022 14:32:31 +0000 Message-ID: <878rlj3ibk.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stefan Kangas writes: > Philip Kaludercic writes: > >> When selecting a number of .el files in Dired and byte-compiling them >> I'll usually also select a .dir-locals.el file that won't compile. >> Would annotating them as non-byte-compilable files be sensible? > > Makes sense to me, FWIW. Though Stefan M might point out that these > files should actually be called ".dir-locals.eld". Which, BTW, we > should probably add support for. And "*.eld" files should never be > compiled, I think? AFAIR this was not done to avoid newer versions of Emacs creating .dir-locals.eld files that older versions of Emacs won't notice. > (Don't forget to add the cookie to our .dir-locals.el as well.) Good point, will do. From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 14:52: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 To: Philip Kaludercic Cc: 58486@debbugs.gnu.org, Stefan Monnier Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.16656726996215 (code B ref 58486); Thu, 13 Oct 2022 14:52:02 +0000 Received: (at 58486) by debbugs.gnu.org; 13 Oct 2022 14:51:39 +0000 Received: from localhost ([127.0.0.1]:34511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oizYh-0001cB-5p for submit@debbugs.gnu.org; Thu, 13 Oct 2022 10:51:39 -0400 Received: from mail-oi1-f176.google.com ([209.85.167.176]:36633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oizYd-0001br-6r for 58486@debbugs.gnu.org; Thu, 13 Oct 2022 10:51:37 -0400 Received: by mail-oi1-f176.google.com with SMTP id y72so1989073oia.3 for <58486@debbugs.gnu.org>; Thu, 13 Oct 2022 07:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=AA3BWOHKX/g2U8kTXUqELPjugv1BDfUj88pd1lVc6gc=; b=hVsTIjZTvlOpltXXS36ttBTZvArTt/YXPrVtIPpKXMRuHtHaS5xmhnhYE3obrBpQiX 5LzBfr1ShyvZ8r22qQn5CI1Zqjkrou2X6LoQBl3eJq5TgbnUyopI8bOHV7xEze6iWbPi D4Q1WjyjqSqlys8JvzEwRhWZq3uWvRFJby9ssIxpWB5VifWWGoN+17v1j1k0EQgQ+YDf BdyviWT8rz1R+ntvm7s59SBMbRRZxKkBS9ezVngtrQcx1KQh6+goUls3LSqYU2IiZHw/ 9ouek+Dd1pKdEcWvH1aokQCFcwQdIWEvM+fDxziGmggvoBtCY6Vcyfn2NtHflwrGmG17 axYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AA3BWOHKX/g2U8kTXUqELPjugv1BDfUj88pd1lVc6gc=; b=UgejiatJlSIObbipH6N4cVMN18fY80HMWC+v+ln/oOHEw/qfh5DmB041iiXBOROiGd yceitL4fPKc1vAwyEnQHCpYTLBy3QPAACugcNCqV/Lu3+n3ukDAkyn5ZvaA9jgI/Fii8 ZyRnzID7GxZSxFU+2vieMaaYRmCmvFKuqlfcZCs7mGpmBQdXm3C7JysG5DSc33RJCmzP j5WURvTmbuGMPcswquInKccmXrCC1aAIY6SGcKx2089hUMneRKASllz5Tee0SnnfRpPB HI6rNJudt1DBSBCA3t4uxzTbyYJtZ0NBrrCRDIOLn/fI+6vHNR+yup8frG6WAmfAIubo EfXQ== X-Gm-Message-State: ACrzQf2PAJ3LX9Q+KdieDSD083Rd+I9b1jWzlDfklBNUTjLpzxWy0cuM HsWo8Uk9596T0RXhcw3kI9r1luk2Vf+LA7f6sJw= X-Google-Smtp-Source: AMsMyM4gXkkTs6qr+XiXBCvnqPV8CBPKxdgxpI56AtAT1OzN30wRHFpkXN0JvIf1xVUVQvhuaera9cIdKlfn+EHwVy0= X-Received: by 2002:a05:6808:1186:b0:353:b77a:a481 with SMTP id j6-20020a056808118600b00353b77aa481mr4901700oil.199.1665672688401; Thu, 13 Oct 2022 07:51:28 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 13 Oct 2022 16:51:27 +0200 From: Stefan Kangas In-Reply-To: <878rlj3ibk.fsf@posteo.net> References: <87sfjsgkl4.fsf@posteo.net> <878rlj3ibk.fsf@posteo.net> X-Hashcash: 1:20:221013:monnier@iro.umontreal.ca::pGkI+1IBNPB0sIBO:2ATr MIME-Version: 1.0 Date: Thu, 13 Oct 2022 16:51:27 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philip Kaludercic writes: > AFAIR this was not done to avoid newer versions of Emacs creating > .dir-locals.eld files that older versions of Emacs won't notice. If we add support to read them when they exist in Emacs 29, it will be safe to start creating them in some future version 30+. From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 17:36: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 To: Stefan Kangas Cc: 58486@debbugs.gnu.org, Philip Kaludercic , Stefan Monnier Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.166568253132416 (code B ref 58486); Thu, 13 Oct 2022 17:36:02 +0000 Received: (at 58486) by debbugs.gnu.org; 13 Oct 2022 17:35:31 +0000 Received: from localhost ([127.0.0.1]:34831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj27E-0008Qd-QL for submit@debbugs.gnu.org; Thu, 13 Oct 2022 13:35:31 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:41569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj278-0008QC-Sy for 58486@debbugs.gnu.org; Thu, 13 Oct 2022 13:35:27 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 23EC6C0006; Thu, 13 Oct 2022 17:35:13 +0000 (UTC) From: Juri Linkov In-Reply-To: (Stefan Kangas's message of "Thu, 13 Oct 2022 16:20:03 +0200") Organization: LINKOV.NET References: <87sfjsgkl4.fsf@posteo.net> Date: Thu, 13 Oct 2022 20:18:43 +0300 Message-ID: <865ygn4pno.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> When selecting a number of .el files in Dired and byte-compiling them >> I'll usually also select a .dir-locals.el file that won't compile. >> Would annotating them as non-byte-compilable files be sensible? > > Makes sense to me, FWIW. Though Stefan M might point out that these > files should actually be called ".dir-locals.eld". Which, BTW, we > should probably add support for. And "*.eld" files should never be > compiled, I think? It's already handled by auto-mode-alist: (defvar auto-mode-alist ... ;; .dir-locals.el is not really Elisp. Could use the ;; `dir-locals-file' constant if it weren't defined below. ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode) From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 18:04: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 To: Philip Kaludercic Cc: 58486@debbugs.gnu.org Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.16656841873095 (code B ref 58486); Thu, 13 Oct 2022 18:04:02 +0000 Received: (at 58486) by debbugs.gnu.org; 13 Oct 2022 18:03:07 +0000 Received: from localhost ([127.0.0.1]:34915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj2Xx-0000no-51 for submit@debbugs.gnu.org; Thu, 13 Oct 2022 14:03:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj2Xt-0000nD-1V for 58486@debbugs.gnu.org; Thu, 13 Oct 2022 14:03:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JzIRnbPjroLKUGq3Qvq4EnJBrdHPRBhBJy9L+jsD20k=; b=ZRqxZj8FOGf0a0a9mKv1N2ITH+ hw0MY7/FGhrjSV1kNXNaQJYXmHo6VheXM/7/5kvZ0DiUDIbGruYERXEQmCM/fBA4Lf0HjWQtoNepM KUr2SXhBTsLQ15miwJCqD4Sr8eFGIkdy62Y6lBDkgykB/24VP3eG2mCBtSXGWAijINZM=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oj2Xk-0005dj-P4; Thu, 13 Oct 2022 20:02:54 +0200 From: Lars Ingebrigtsen In-Reply-To: <87sfjsgkl4.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 13 Oct 2022 09:05:11 +0000") References: <87sfjsgkl4.fsf@posteo.net> X-Now-Playing: Black Midi's _Cavalcade_: "Slow" Date: Thu, 13 Oct 2022 20:02:52 +0200 Message-ID: <87h7077gab.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Philip Kaludercic writes: > * lisp/files-x.el (modify-dir-local-variable): Add a 'no-byte-compile' > file local variable when generating a .dir-locals.el file. Looks good to me. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Philip Kaludercic writes: > * lisp/files-x.el (modify-dir-local-variable): Add a 'no-byte-compile' > file local variable when generating a .dir-locals.el file. Looks good to me. From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 19:12: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 To: Juri Linkov Cc: 58486@debbugs.gnu.org, Stefan Kangas , Stefan Monnier Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.16656882899937 (code B ref 58486); Thu, 13 Oct 2022 19:12:02 +0000 Received: (at 58486) by debbugs.gnu.org; 13 Oct 2022 19:11:29 +0000 Received: from localhost ([127.0.0.1]:34967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj3c9-0002aC-Dv for submit@debbugs.gnu.org; Thu, 13 Oct 2022 15:11:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:60125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj3c7-0002Zo-0M for 58486@debbugs.gnu.org; Thu, 13 Oct 2022 15:11:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BC002240104 for <58486@debbugs.gnu.org>; Thu, 13 Oct 2022 21:11:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665688280; bh=oEZzj2UcTnKf2jGeNTuGzc4BrFiDJMc6BYpzVNaDi1k=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=SY9ZcUfI1f+34x/eEcNHm2a4DheQt/0dmGsQdNTHAUTQZpxMFrw5Y4W8HXBB2KkBM LpqbGqUwhAFOgKqZ4JSPRdR2GMbv4nH9LZri0cJMdYMnxaGBTSHtIhH2d5b2dR9quC BSbgJzVMTZn0SUamUeWKpSylMiSK3fmWigKnO3t3JE7WyzaBHEE6oiAJ3Cn04N0JeV ePl1irKPZKZqtGLuDLfFuVA7Gl0Iv48IJoqPoz4rtYZHRnzHX2HHYs0NtcgsXbkhjx NwKrL3f9d3wnFR3yjE6GGo7eC6NHi4x5igEpOQg3C557qozzQ+q72P33zNbJ/Qs4kE ErshaiqVYax9g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MpJys46GRz6tm4; Thu, 13 Oct 2022 21:11:17 +0200 (CEST) From: Philip Kaludercic In-Reply-To: <865ygn4pno.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 13 Oct 2022 20:18:43 +0300") References: <87sfjsgkl4.fsf@posteo.net> <865ygn4pno.fsf@mail.linkov.net> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 13 Oct 2022 19:11:12 +0000 Message-ID: <87a65zk08f.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Juri Linkov writes: >>> When selecting a number of .el files in Dired and byte-compiling them >>> I'll usually also select a .dir-locals.el file that won't compile. >>> Would annotating them as non-byte-compilable files be sensible? >> >> Makes sense to me, FWIW. Though Stefan M might point out that these >> files should actually be called ".dir-locals.eld". Which, BTW, we >> should probably add support for. And "*.eld" files should never be >> compiled, I think? > > It's already handled by auto-mode-alist: > > (defvar auto-mode-alist > ... > ;; .dir-locals.el is not really Elisp. Could use the > ;; `dir-locals-file' constant if it weren't defined below. > ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode) Yes, but this is not related to the situation I mentioned with Dired. From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2022 16:33:01 +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 To: Juri Linkov Cc: 58486@debbugs.gnu.org, Philip Kaludercic , Stefan Kangas Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.16657651441611 (code B ref 58486); Fri, 14 Oct 2022 16:33:01 +0000 Received: (at 58486) by debbugs.gnu.org; 14 Oct 2022 16:32:24 +0000 Received: from localhost ([127.0.0.1]:38463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojNbk-0000Pv-DC for submit@debbugs.gnu.org; Fri, 14 Oct 2022 12:32:24 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:61913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojNbi-0000Pi-Or for 58486@debbugs.gnu.org; Fri, 14 Oct 2022 12:32:23 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D84F11001D4; Fri, 14 Oct 2022 12:32:16 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3629E100098; Fri, 14 Oct 2022 12:32:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1665765135; bh=AsEKw/0KIxhKRz0TFx8ReLmHfIWs1BsgGnkyH59w8h0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Vl9dWi5Q3OHYLru8ZymeI0T3QHh7i055uC0+O12I65SunC7lRNvnrcZl3WWBjjVGu irn5tMURQ+K897KKkR/fOlDGBKuJB7va6huLLHD2fuYW7pB5OHbx6Fxw+F3qxH5tsa tfg3RwnwOKoAQJJFxPZrshPC5kp3E7xRHH6Xe7vgMpW6XL8hUh/AVFfhJkYy+BA7S0 sVckY3KIAJfL2nd7ed6tAGkPCBJQ6hSdeoh3VHlUbPqotsLr5NQRpU71j27rFJuoNM pK8TngOoJoly1TJZ4tYE6deJ9U3aj7JWa4U0PqU3AIUH2akoJQI41nMDnIfVBsbAj5 wVEpc9vakbNpw== Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 11941120DB1; Fri, 14 Oct 2022 12:32:15 -0400 (EDT) From: Stefan Monnier In-Reply-To: <865ygn4pno.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 13 Oct 2022 20:18:43 +0300") Message-ID: References: <87sfjsgkl4.fsf@posteo.net> <865ygn4pno.fsf@mail.linkov.net> Date: Fri, 14 Oct 2022 12:32:12 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.082 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >>> When selecting a number of .el files in Dired and byte-compiling them >>> I'll usually also select a .dir-locals.el file that won't compile. >>> Would annotating them as non-byte-compilable files be sensible? >> >> Makes sense to me, FWIW. Though Stefan M might point out that these >> files should actually be called ".dir-locals.eld". Which, BTW, we >> should probably add support for. And "*.eld" files should never be >> compiled, I think? > > It's already handled by auto-mode-alist: > > (defvar auto-mode-alist > ... > ;; .dir-locals.el is not really Elisp. Could use the > ;; `dir-locals-file' constant if it weren't defined below. > ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode) 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`)? Stefan From unknown Sun Jul 27 07:29:58 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Philip Kaludercic Subject: bug#58486: closed (Re: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled) Message-ID: References: <87wn926zny.fsf@posteo.net> <87sfjsgkl4.fsf@posteo.net> X-Gnu-PR-Message: they-closed 58486 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 58486@debbugs.gnu.org Date: Fri, 14 Oct 2022 18:15:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1665771302-12757-1" This is a multi-part message in MIME format... ------------=_1665771302-12757-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58486: [PATCH] Prevent .dir-locals.el from being byte-compiled which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58486@debbugs.gnu.org. --=20 58486: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58486 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1665771302-12757-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58486-done) by debbugs.gnu.org; 14 Oct 2022 18:14:18 +0000 Received: from localhost ([127.0.0.1]:38587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojPCM-0003IW-2l for submit@debbugs.gnu.org; Fri, 14 Oct 2022 14:14:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojPCL-0003IG-98 for 58486-done@debbugs.gnu.org; Fri, 14 Oct 2022 14:14:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C2FEC240026 for <58486-done@debbugs.gnu.org>; Fri, 14 Oct 2022 20:14:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665771251; bh=PWUe/W3QvQIVT2wy7Dg5+tNZDmQa/MqLTCtE70bI454=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=TKEwP3e/GzCGTXeb8TUMb/stdw1hMCQnWHrtj0TWUxmn4EhPvy5MVKDGVt+dhd2jJ o7+9SuYmIclA2B4TVNMrUqlV12hB/luNeO+1mIQc+3RuNC6HOsjxeE/2pLS5WjzvbW imStiVA/tUZfvyEKZI/0Hvgcb+XcREQFSuaCqIvqnRZVP3M0/KQAlI5s548pjcliP2 9vRPQ7S94ytd0nzCpwFU21YjGwYXL5tp2iCn/EKd55r+AikZ3bdxCA34EcByO/grXG VLw6MlegvVcmXXABRZXjVQWm8re22qZGT8pQZi2rHxp2CDFObbFhRI663ymY3sa8ND 6NyxUjK7SrYoA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MpvfW1ZNqz9rxF; Fri, 14 Oct 2022 20:14:10 +0200 (CEST) From: Philip Kaludercic To: Lars Ingebrigtsen Subject: Re: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled In-Reply-To: <87h7077gab.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 13 Oct 2022 20:02:52 +0200") References: <87sfjsgkl4.fsf@posteo.net> <87h7077gab.fsf@gnus.org> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Fri, 14 Oct 2022 18:14:09 +0000 Message-ID: <87wn926zny.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58486-done Cc: 58486-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Lars Ingebrigtsen writes: > Philip Kaludercic writes: > >> * lisp/files-x.el (modify-dir-local-variable): Add a 'no-byte-compile' >> file local variable when generating a .dir-locals.el file. > > Looks good to me. It has been pushed. ------------=_1665771302-12757-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 13 Oct 2022 09:05:20 +0000 Received: from localhost ([127.0.0.1]:59526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiu9X-0003nT-Mx for submit@debbugs.gnu.org; Thu, 13 Oct 2022 05:05:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:33384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiu9W-0003nM-7I for submit@debbugs.gnu.org; Thu, 13 Oct 2022 05:05:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiu9V-0005TX-Vy for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 05:05:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiu9T-0001i5-Ed for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 05:05:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B4FD7240028 for ; Thu, 13 Oct 2022 11:05:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665651912; bh=hJWZlQ9ZIEUjLeVPVmnvKctHYIj250YbONQzGAdL8Zw=; h=From:To:Subject:Autocrypt:Date:From; b=D44y0b66d/XBgDhkYx31OXXH8mV9WjpWYxi2pM/Dn58WyiQ3uQeShkZGMP7Khzt6H VOBNKZr8DG03XugH+eJ3Kjl3xyYqLQk1aMdMMezyuPZkhGp9jwTX6sYZb5TbFW0J/Y voH/JA8nVtGjVmVukT7R2U4qEnroPoyyHaSE3cF4qn6LXL0ljJ3QcRm0G3+n+c4Nyf 2GPjvOKIUnfjrQhTE1sG2ZIM22oxka2H7M5gEbdS+Dl6qGHeipNCAexl+ZUxUF53eY BtSHeGJKTZADRX3HX15tlXrmKs2JdErXRIpfpj0/q3fZV7Ey+eKNBA9CwZsGrijNA+ NNnE1rM/NCAqw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mp3WX1nryz9rxN for ; Thu, 13 Oct 2022 11:05:12 +0200 (CEST) From: Philip Kaludercic To: bug-gnu-emacs@gnu.org Subject: [PATCH] Prevent .dir-locals.el from being byte-compiled Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 13 Oct 2022 09:05:11 +0000 Message-ID: <87sfjsgkl4.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Tags: patch When selecting a number of .el files in Dired and byte-compiling them I'll usually also select a .dir-locals.el file that won't compile. Would annotating them as non-byte-compilable files be sensible? In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-10-13 built on rhea Repository revision: 36505800b5a0c8d7b4af5ceb54483cfdfdbf6925 Repository branch: local System Description: Fedora Linux 36 (Workstation Edition) Configured using: 'configure --with-pgtk --with-imagemagick' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Prevent-.dir-locals.el-from-being-byte-compiled.patch >From 8bf2e39c36a66df7e415800caa77c9116648effb Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Wed, 5 Oct 2022 19:45:27 +0200 Subject: [PATCH] Prevent .dir-locals.el from being byte-compiled * lisp/files-x.el (modify-dir-local-variable): Add a 'no-byte-compile' file local variable when generating a .dir-locals.el file. --- lisp/files-x.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files-x.el b/lisp/files-x.el index da1e44e250..f6d5d6cc27 100644 --- a/lisp/files-x.el +++ b/lisp/files-x.el @@ -489,7 +489,7 @@ modify-dir-local-variable dir-locals-directory-cache)) ;; Insert modified alist of directory-local variables. - (insert ";;; Directory Local Variables\n") + (insert ";;; Directory Local Variables -*- no-byte-compile: t -*-\n") (insert ";;; For more information see (info \"(emacs) Directory Variables\")\n\n") (princ (dir-locals-to-string (sort variables -- 2.37.3 --=-=-=-- ------------=_1665771302-12757-1-- From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Oct 2022 19:22: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 To: Stefan Monnier Cc: 58486@debbugs.gnu.org, Philip Kaludercic , Stefan Kangas Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.16658616778671 (code B ref 58486); Sat, 15 Oct 2022 19:22:02 +0000 Received: (at 58486) by debbugs.gnu.org; 15 Oct 2022 19:21:17 +0000 Received: from localhost ([127.0.0.1]:42667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojmij-0002Fn-9x for submit@debbugs.gnu.org; Sat, 15 Oct 2022 15:21:17 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:56031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojmif-0002FK-Em for 58486@debbugs.gnu.org; Sat, 15 Oct 2022 15:21:14 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 00F54240003; Sat, 15 Oct 2022 19:21:03 +0000 (UTC) From: Juri Linkov In-Reply-To: (Stefan Monnier's message of "Fri, 14 Oct 2022 12:32:12 -0400") Organization: LINKOV.NET References: <87sfjsgkl4.fsf@posteo.net> <865ygn4pno.fsf@mail.linkov.net> Date: Sat, 15 Oct 2022 22:16:01 +0300 Message-ID: <864jw4q4ni.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> (defvar auto-mode-alist >> ... >> ;; .dir-locals.el is not really Elisp. Could use the >> ;; `dir-locals-file' constant if it weren't defined below. >> ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode) > > 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`? From unknown Sun Jul 27 07:29:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58486: [PATCH] Prevent .dir-locals.el from being byte-compiled 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 To: Juri Linkov Cc: 58486@debbugs.gnu.org, Philip Kaludercic , Stefan Kangas Received: via spool by 58486-submit@debbugs.gnu.org id=B58486.166592628129429 (code B ref 58486); Sun, 16 Oct 2022 13:18:02 +0000 Received: (at 58486) by debbugs.gnu.org; 16 Oct 2022 13:18:01 +0000 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 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 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) 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== 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) From: Stefan Monnier In-Reply-To: <864jw4q4ni.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 15 Oct 2022 22:16:01 +0300") Message-ID: References: <87sfjsgkl4.fsf@posteo.net> <865ygn4pno.fsf@mail.linkov.net> <864jw4q4ni.fsf@mail.linkov.net> Date: Sun, 16 Oct 2022 09:17:49 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.053 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> 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