From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 12 04:01:01 2024 Received: (at submit) by debbugs.gnu.org; 12 Mar 2024 08:01:01 +0000 Received: from localhost ([127.0.0.1]:41736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjx4H-0001s2-A4 for submit@debbugs.gnu.org; Tue, 12 Mar 2024 04:01:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:50900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjx4B-0001rg-PH for submit@debbugs.gnu.org; Tue, 12 Mar 2024 04:00:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjx3c-0007WQ-Km for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2024 04:00:20 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjx3a-0004Xs-Jm for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2024 04:00:20 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id A3A9B6000F for ; Tue, 12 Mar 2024 08:00:15 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: project-mode-line-format restarts ispell process on every keystroke Organization: LINKOV.NET X-Debbugs-Cc: Dmitry Gutov Date: Tue, 12 Mar 2024 09:53:37 +0200 Message-ID: <86jzm7q41q.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=217.70.183.195; envelope-from=juri@linkov.net; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) 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.7 (--) [related to bug#69703] When .dir-locals.el contains: ((nil . ((mode . flyspell)))) here is a backtrace that illustrates the problem: flyspell-mode() set-auto-mode-0(flyspell-mode t) hack-one-local-variable(mode flyspell) hack-local-variables-apply() hack-dir-local-variables-non-file-buffer() project--value-in-dir(project-vc-name "/tmp/test/") project-name((vc Git "/tmp/test/")) project-mode-line-format() eval((project-mode-line-format) t) redisplay_internal\ \(C\ function\)() This can be fixed by not allowing to run any mode while reading a project name from dir-locals. So here is a patch that fixes it: diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 9622b1b6768..8578af1cde4 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -808,8 +808,8 @@ project--value-in-dir (with-temp-buffer (setq default-directory dir) (let ((enable-local-variables :all)) - (hack-dir-local-variables-non-file-buffer)) - (symbol-value var))) + (hack-dir-local-variables)) + (alist-get var file-local-variables-alist))) (cl-defmethod project-buffers ((project (head vc))) (let* ((root (expand-file-name (file-name-as-directory (project-root project)))) From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 13 13:43:48 2024 Received: (at 69740) by debbugs.gnu.org; 13 Mar 2024 17:43:48 +0000 Received: from localhost ([127.0.0.1]:47347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkSdn-0008Fa-MZ for submit@debbugs.gnu.org; Wed, 13 Mar 2024 13:43:47 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:37373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkSdk-0008FL-8T for 69740@debbugs.gnu.org; Wed, 13 Mar 2024 13:43:46 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C338F5C0053; Wed, 13 Mar 2024 13:43:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 13 Mar 2024 13:43:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1710351782; x=1710438182; bh=FIwnEpimhgKdf7Nr9gUvGLawMfth+rBkv5/hoMvgLLc=; b= SEbs/bzqC8aKdYqVce2MZ3JP2Yjtv5T/TTHtHQL5V8X47Ssg1qXj/HqnK/HW8MPd d5/qy6mHd8c4QOZk+5qeHUVDdIXutDI8WAoVgOqfV0fBDnsyC3z+AfJV0rxcY9nL slPyASbkOLhhnMMwX1jzqEnyGhIp8sa40Qk8cASi2B4/B5ArzmpOXHLAgItN0A4u Mf+Klu3VmBu/c0etu5ItUqPL9OabSdvAnyKxXwYqGcMntNoASNIuKTGO0YIi66JO mU4yiJNtBu0M2g3UCoTSE0PjwW1Q/OwMt1bw36Wvdw9UqZkKEafZdXS5kCXqKe4j 9Y3q2y9LPc9zLYFwLrWPFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1710351782; x= 1710438182; bh=FIwnEpimhgKdf7Nr9gUvGLawMfth+rBkv5/hoMvgLLc=; b=P 8z4kz1AIp+Z+v3d30fmP/qcynl3WITSiK0ghIBvc5fidutZRQQmkggIvFMICwAx/ Z1lOPhXCE8bQeCVfhEDPPt08w6DP7Kh1tTBcxXJ/z862zqucFTV3N2llppejcnIq eLRyjE7deqm7DRGGSjcNwAohtWSOW1YVrwAbSKgQrDOUlf2a8cFwfhPaZcXMtzDg L5kwkSzgbElicxcKb/gAG+uygX6BPT7Z56E2+ga8I5/ZpP2N+lVUvJ9MtmyNlSEx D3pmxO2KE421t409UFvUQFKV+FcK+aX2X5jVqCWnwVjVRFUzg9jovcYgrwBQJufk hX1LOCYejkgFfj9+V9oHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeehgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpedthfeuvddtveelgeeuleevvdejveehffevveehvdeuffdtfefhvdeugefgtefg tdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Mar 2024 13:43:01 -0400 (EDT) Message-ID: Date: Wed, 13 Mar 2024 19:42:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69740: project-mode-line-format restarts ispell process on every keystroke Content-Language: en-US To: Juri Linkov , 69740@debbugs.gnu.org References: <86jzm7q41q.fsf@mail.linkov.net> From: Dmitry Gutov In-Reply-To: <86jzm7q41q.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69740 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 (-) Hi Juri! On 12/03/2024 09:53, Juri Linkov wrote: > (let ((enable-local-variables :all)) > - (hack-dir-local-variables-non-file-buffer)) > - (symbol-value var))) > + (hack-dir-local-variables)) > + (alist-get var file-local-variables-alist))) Great suggestion, please install. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 14 13:39:33 2024 Received: (at 69740) by debbugs.gnu.org; 14 Mar 2024 17:39:34 +0000 Received: from localhost ([127.0.0.1]:50538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkp3F-0001fm-IQ for submit@debbugs.gnu.org; Thu, 14 Mar 2024 13:39:33 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:41895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkp3B-0001fR-Hb; Thu, 14 Mar 2024 13:39:32 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 1C5ADC0008; Thu, 14 Mar 2024 17:38:45 +0000 (UTC) From: Juri Linkov To: Dmitry Gutov Subject: Re: bug#69740: project-mode-line-format restarts ispell process on every keystroke In-Reply-To: (Dmitry Gutov's message of "Wed, 13 Mar 2024 19:42:59 +0200") Organization: LINKOV.NET References: <86jzm7q41q.fsf@mail.linkov.net> Date: Thu, 14 Mar 2024 19:37:51 +0200 Message-ID: <86ttl8pvdc.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 69740 Cc: 69740@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 (-) close 69740 30.0.50 thanks >> (let ((enable-local-variables :all)) >> - (hack-dir-local-variables-non-file-buffer)) >> - (symbol-value var))) >> + (hack-dir-local-variables)) >> + (alist-get var file-local-variables-alist))) > > Great suggestion, please install. Thanks for the review, now pushed. From unknown Thu Aug 14 21:53:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 12 Apr 2024 11:24:21 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator