From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#70136: 30.0.50; comint-mode doesn't call hack-dir-local-variables-non-file-buffer Date: Tue, 02 Apr 2024 16:03:23 +0200 Message-ID: <874jcjeuac.fsf@gmail.com> References: <87zfuc48d5.fsf@gmail.com> <86msqc9dsa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14238"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70136@debbugs.gnu.org, spacibba@aol.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 02 16:04:38 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 1rrekg-0003Ws-3j for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Apr 2024 16:04:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrekI-0002YO-FU; Tue, 02 Apr 2024 10:04:14 -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 1rrekE-0002XR-J7 for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 10:04:10 -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 1rrek2-0000qo-JC for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 10:04:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrek5-0006ME-Pf for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2024 10:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Apr 2024 14:04: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.171206661624277 (code B ref 70136); Tue, 02 Apr 2024 14:04:01 +0000 Original-Received: (at 70136) by debbugs.gnu.org; 2 Apr 2024 14:03:36 +0000 Original-Received: from localhost ([127.0.0.1]:54817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrejg-0006JV-Ef for submit@debbugs.gnu.org; Tue, 02 Apr 2024 10:03:36 -0400 Original-Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:43474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrejf-0006Is-6o for 70136@debbugs.gnu.org; Tue, 02 Apr 2024 10:03:35 -0400 Original-Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a4e60a64abcso339356966b.1 for <70136@debbugs.gnu.org>; Tue, 02 Apr 2024 07:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712066605; x=1712671405; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ai4RQxu5WfFXhYH+w2eDzkJParei59tepN3beGUbr8M=; b=lxnnmH2zSP+aISaePOqNB6DjiYcz6aS+MNe5JPhV21sYj/ucgXfGZRvBpQem3Z3RZA Cpz+qVjcAyuzRSt1OKytj3E3nolKVnu42gMd5zo75i5fk3qVqr+JjPBrn2NOrSLcf5PL rmrfyIoqU+RDExhon051mMRDOl1tTKFNh9Qz+XZPbhH2SHuv8yKGO5azNg3rIW9KOTQa 2pKFcPPS07JvhTH8C7JwWp2L1qyhOoXIDRxTgTuREs5Ax9YGfezUzSxKBQuXBn5k7xzi fhfB25HU08S7/mDNT3DkJKF/tbUBAfqAsZTSg7xLylgRxBS06R1dsotx3ijj7zgxxxsT HBlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066605; x=1712671405; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ai4RQxu5WfFXhYH+w2eDzkJParei59tepN3beGUbr8M=; b=TWstkUVLwBmrYQkt4mWgBUGX/CXf4f7kwU3spQ75Q1ruT5ebGuslqcc9UoOcnJClDw /Pgt/RTEPludAPzJz7iakQ6Fi6KtsnqqyHOr+8j/KSVF8b3qkLNdKg9il3YXbnhObTz7 DX/8Up6rRoqXTt/gVXUc0AERGZX1ZS/zYedVEafr7XDxsncdy7F13jfwIfQ+ptAIFTYE Ep771slHY0Orm7guJCUGT5sNd4aqTKtZRFiW6XGE2EO8Pmm1y9fzPD6IN0iTCGO+DSgp m4RA1iTuHbw4h1ZuEcQI/HBsluamIFHA/OrxbO1d10iWERdRPQ5HxBfpmxkFKytCsVyY lQtQ== X-Gm-Message-State: AOJu0YzwZMuumnI9tG3RsmUU09zUfoFkgCpjSnfp0rDK7Kkx/8NoS8Hh Ph0bcSQ0FMN3mqCen+wT+eTri9EZmt8DxWNNWq6IXX0fJ6n6mewce5FVaO6P X-Google-Smtp-Source: AGHT+IF2gwvq6O8ZUGIFvZ6jIbYPE7uGfLNoDSVNAfYe65enKmd2qjRc7SlTtp4dRJj0+8jDGLWkYw== X-Received: by 2002:a17:906:f8db:b0:a4e:670d:5183 with SMTP id lh27-20020a170906f8db00b00a4e670d5183mr5495020ejb.0.1712066605218; Tue, 02 Apr 2024 07:03:25 -0700 (PDT) Original-Received: from ars3 (pd95c95b0.dip0.t-ipconnect.de. [217.92.149.176]) by smtp.gmail.com with ESMTPSA id s23-20020a170906285700b00a4e7d03e995sm1477623ejc.45.2024.04.02.07.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:03:24 -0700 (PDT) In-Reply-To: <86msqc9dsa.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 02 Apr 2024 14:58:45 +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:282509 Archived-At: On Tue, 2 Apr 2024 at 14:58, Eli Zaretskii wrote: > It doesn't sound right to me to do that by default, since comint is > used for shell-like interpreters, and those tend to change directories > at will. Which means that dir-locals for some random directory > doesn't necessarily take such modes into consideration. This observation makes sense, but it mostly applies to the good old 'M-x shell', not to 'M-x project-shell', other language interpreters, or to compilation buffers. By the way, I now realize that 'M-x compile' doesn't use comint-mode by default. Which raises the same question: should compilation-mode call hack-dir-local-variables-non-file-buffer? > If you need that for some particular use case, can't you call it from > comint-mode-hook or something? Sure, it's an easy customization, but the question is whether it's the expected default behavior. :-)