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#70136: 30.0.50; compilation-mode [was: comint-mode] doesn't call hack-dir-local-variables-non-file-buffer Date: Tue, 16 Apr 2024 17:49:08 -0400 Message-ID: References: <87zfuc48d5.fsf@gmail.com> <86msqc9dsa.fsf@gnu.org> <874jcjeuac.fsf@gmail.com> <86edbnajfp.fsf@gnu.org> <87mspwcn0f.fsf_-_@gmail.com> <86v84kmeh0.fsf@gnu.org> <874jc2y2ky.fsf@gmail.com> <86sezmjxbc.fsf@gnu.org> 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="32265"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70136@debbugs.gnu.org, Augusto Stoffel To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 16 23:50:17 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 1rwqgz-0008CR-8f for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Apr 2024 23:50:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwqga-00073V-Lv; Tue, 16 Apr 2024 17:49:52 -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 1rwqgY-00073D-H1 for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 17:49:50 -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 1rwqgY-00030y-7n for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 17:49:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwqgk-0004k9-Mg for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 17:50: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: Tue, 16 Apr 2024 21:50:02 +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.171330417518003 (code B ref 70136); Tue, 16 Apr 2024 21:50:02 +0000 Original-Received: (at 70136) by debbugs.gnu.org; 16 Apr 2024 21:49:35 +0000 Original-Received: from localhost ([127.0.0.1]:45260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwqgH-0004fu-GX for submit@debbugs.gnu.org; Tue, 16 Apr 2024 17:49:35 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:35388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwqgC-0004eD-GS for 70136@debbugs.gnu.org; Tue, 16 Apr 2024 17:49:31 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4497380C41; Tue, 16 Apr 2024 17:49:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1713304149; bh=/PXAMCTgCrkCWvz1nOv6e2A05f7i1jzfuxJL+xjJU68=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZGA2dC3MpStRx6h4cmQbhP8eji1XF0RdYWKPp1b0TqCVBMwQvFak6hb94g5QCRBjm J8ltWqDXPZ8+Kesa5CLf8ExQlouS1NUVnYdTXR/JwwCbTa6nPwET1MuYUwrAUYbS2b Ms7wU6LdVg9toX7yWDyGgITtTckdTiEDotjEVRP1I1HfZWGjiys2Lmp+4szMQdY3zv bhIGsdTmd/0FSmCKJ3lHpc3H2b/1w26egv39tTxpx/Ep7Ya/K1VFDIb7PsjYNJ8gJW hmvoUKzAHNETZTuwiywl15FvXe88oQZb88R4dJg/3ZyuNuuOatcPw2U6DOjoKVr/TR LLuRAdOS5PkiQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4DEA080A95; Tue, 16 Apr 2024 17:49:09 -0400 (EDT) Original-Received: from pastel (unknown [45.72.201.215]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2389F120250; Tue, 16 Apr 2024 17:49:09 -0400 (EDT) In-Reply-To: <86sezmjxbc.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 15 Apr 2024 21:27:35 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283458 Archived-At: > You are entitled to your opinions, but this is clearly a change in > behavior that will affect a lot of users (since compilation-mode and > its descendants are very popular and widely used). Therefore, I don't > understand why you need concrete examples: the issue is crystal clear > just by thinking about it. FWIW, back in 2010 (commit 8117868f0ce6) when we added support for dir-locals to non-file buffers, we did it without even a config var to turn it off. AFAICT the `dir-locals.el` format should already be sufficiently flexible to make it easy for users annoyed by the new behavior to recover the old behavior (without affecting older Emacsen). I think we should make an effort to enable dir-locals in as many buffers as makes sense (but that can't be all buffers, because many buffers aren't really related to any particular place in the file system, in which case using the dir-locals setting of the directory that happens to be current when the buffer was created is too arbitrary). Stefan