From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#70136: 30.0.50; compilation-mode [was: comint-mode] doesn't call hack-dir-local-variables-non-file-buffer Date: Thu, 02 May 2024 09:17:22 +0300 Organization: LINKOV.NET Message-ID: <86le4s7n65.fsf@mail.linkov.net> References: <87zfuc48d5.fsf@gmail.com> <86msqc9dsa.fsf@gnu.org> <874jcjeuac.fsf@gmail.com> <86edbnajfp.fsf@gnu.org> <87mspwcn0f.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15185"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 70136@debbugs.gnu.org, Stefan Monnier To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 02 08:21:18 2024 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 1s2Pok-0003oc-FQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 May 2024 08:21:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2PnP-00049d-46; Thu, 02 May 2024 02:19:55 -0400 Original-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 1s2PnD-00045M-58 for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 02:19:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2PnB-0000cU-OT for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 02:19:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2PnX-0004Ec-AV for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 02:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 May 2024 06:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70136 X-GNU-PR-Package: emacs Original-Received: via spool by 70136-submit@debbugs.gnu.org id=B70136.171463078216251 (code B ref 70136); Thu, 02 May 2024 06:20:03 +0000 Original-Received: (at 70136) by debbugs.gnu.org; 2 May 2024 06:19:42 +0000 Original-Received: from localhost ([127.0.0.1]:41763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2PnC-0004E3-Hg for submit@debbugs.gnu.org; Thu, 02 May 2024 02:19:42 -0400 Original-Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]:35837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2PnB-0004DR-1D for 70136@debbugs.gnu.org; Thu, 02 May 2024 02:19:41 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 7974E1BF217; Thu, 2 May 2024 06:19:10 +0000 (UTC) In-Reply-To: <87mspwcn0f.fsf_-_@gmail.com> (Augusto Stoffel's message of "Sun, 14 Apr 2024 11:27:28 +0200") X-GND-Sasl: juri@linkov.net 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284270 Archived-At: > @@ -2372,6 +2363,11 @@ compilation-mode > ;; some other input event happens. > (setq-local jit-lock-defer-time nil) > (setq buffer-read-only t) > + (unless (buffer-file-name) > + (let ((sym (make-symbol "hack-dir-local-variables-non-file-buffer"))) > + (set sym #'hack-dir-local-variables-non-file-buffer) > + ;; Ensure hack-dir-locals is called only after a derived mode is set. > + (push sym delayed-mode-hooks))) > (run-mode-hooks 'compilation-mode-hook)) Thanks for the patch. I confirm it completely fixes the bug reported at the end of bug#68570.