From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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: Wed, 17 Apr 2024 05:34:31 +0300 Message-ID: <86a5lsiuo8.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="580"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70136@debbugs.gnu.org, arstoffel@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 17 04:35:09 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 1rwv8e-000ARw-Os for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Apr 2024 04:35:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwv8N-0006fQ-9M; Tue, 16 Apr 2024 22:34:51 -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 1rwv8L-0006fH-Ts for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 22:34:49 -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 1rwv8L-0007RP-Jd for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 22:34:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwv8X-0004H1-No for bug-gnu-emacs@gnu.org; Tue, 16 Apr 2024 22:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Apr 2024 02:35:01 +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.171332129416418 (code B ref 70136); Wed, 17 Apr 2024 02:35:01 +0000 Original-Received: (at 70136) by debbugs.gnu.org; 17 Apr 2024 02:34:54 +0000 Original-Received: from localhost ([127.0.0.1]:45443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwv8Q-0004Gk-97 for submit@debbugs.gnu.org; Tue, 16 Apr 2024 22:34:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwv8M-0004Ge-Rf for 70136@debbugs.gnu.org; Tue, 16 Apr 2024 22:34:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwv84-0007OP-9f; Tue, 16 Apr 2024 22:34:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=y+aJzBL561FGOp/5tjyeGWX6s8MzStBMCdBjT97iJUs=; b=DYQcJU92OD6F cBQqgHEYrrG1uNFLb3ht0Y8DP5ZlICW3FR7kQpIZjhrSnHFqnDrgmHkz7x6yjBrmRFQheIWt+RAE9 WOr1uSFv70OSw/59EhKTyLhvhgt2/rYkqTgrMQ29ajeity8KGQVbS9bBWekJFFzhdjkugsJJ6FQEc lLO/VU0sTyHNGuR4b1xDb5ohoAr+zFCLZ8y2ChQONuut4NUxNEv08o7S5409VftYhzwI+4elC5HQv 5kKi3wy3IGPF5efdVvVUQhVvmGG11/Or/RShgHuXIeieHMIc86qZtusMNlztgqPhajcIS5bFNgt1W xvsjeOlzZBxMe1hUfLxfbA==; In-Reply-To: (message from Stefan Monnier on Tue, 16 Apr 2024 17:49:08 -0400) 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:283466 Archived-At: > From: Stefan Monnier > Cc: Augusto Stoffel , 70136@debbugs.gnu.org > Date: Tue, 16 Apr 2024 17:49:08 -0400 > > > 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. That's not the same. Also, we did quite a few things wrong regarding backward compatibility over the years, and I don't want us to repeat past mistakes. > 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). Like I said: I'm okay with this change provided that it is opt-in.