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; compilation-mode [was: comint-mode] doesn't call hack-dir-local-variables-non-file-buffer Date: Wed, 17 Apr 2024 10:16:03 +0200 Message-ID: <87v84g9zgc.fsf@gmail.com> 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> <86r0f5n8bk.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19686"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 70136@debbugs.gnu.org, monnier@iro.umontreal.ca To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 17 10:17:19 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 1rx0Tn-00050Y-SJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Apr 2024 10:17:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rx0TN-0002Ak-3s; Wed, 17 Apr 2024 04:16:53 -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 1rx0TL-0002Ab-Bz for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2024 04:16:51 -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 1rx0TL-0006xj-4A for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2024 04:16:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rx0TX-0004jU-Re for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2024 04:17:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Apr 2024 08:17: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.171334179117919 (code B ref 70136); Wed, 17 Apr 2024 08:17:03 +0000 Original-Received: (at 70136) by debbugs.gnu.org; 17 Apr 2024 08:16:31 +0000 Original-Received: from localhost ([127.0.0.1]:45658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx0T1-0004ex-4p for submit@debbugs.gnu.org; Wed, 17 Apr 2024 04:16:31 -0400 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:43448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx0Su-0004eY-MD for 70136@debbugs.gnu.org; Wed, 17 Apr 2024 04:16:29 -0400 Original-Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-565c6cf4819so924651a12.1 for <70136@debbugs.gnu.org>; Wed, 17 Apr 2024 01:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713341766; x=1713946566; 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=JmWxSmFf7JBKsv/gZAXV5C3c9CjCZPQznM2UjZ6Gbyc=; b=iblwwXycCHGWdCy2wibB9sBDBwXnyP+uWAqjN7NNu2ymZzr6yM/JFA9MM+i24qmKOE 8s8bXs8oqFibFUWhnJcki2q5Ep2Lk6bE/a5MX1ysltUqoO5KUCFgezys3eI0TVgZ/rOC O5CYWhVkduDcN01aAd9r095ns3o/sJPn5QZVWJxjwo/CPGJ3i5Y2sLiFNRcRn1Tl+5uj rkM6r4/E8ZHfaszZf9Gxl9zwnxTalM85ZHJaDF12UYrCWr/m6Sc3C8RWK+l2E7eFoYO1 jaRsSgI8nxuiZlHAMBRp+UxE5CDS8Hi3ifEDw1wmQ0jLvlrJXjEEFKl//QLXGbrzctpr S8vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713341766; x=1713946566; 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=JmWxSmFf7JBKsv/gZAXV5C3c9CjCZPQznM2UjZ6Gbyc=; b=aLmjNtfSwILW317rZd0n5dNMc8rN8BG+MoqoK0vIOxgnlFJLQtXDHJwSz7O1LQNcvA Exd389+VyTamN0Ge1+/3sRU3Kju1T6/xX0owipECrXtrMBljtzYMEs77xh2uMQ+YxJeO 1vAPwi8xerLPxjsGGmNEE9rQ+RgpAeZcX3Pf7XRzbX33giWgiCCWREa151oOp6GOx8i9 ECacCBTJGL7tj/G4ApC14tB2Rhh7WiNMl8g/uHCiIIAkZDBAVrcjg6ucjTRVPNumSK7X LGOUHeLkd5QDOcRvQXkWwpaLJQj6y0IqGMzJZH8F0JSdQOJvfqzQVEXuDnWL/iNRQXmS io8Q== X-Forwarded-Encrypted: i=1; AJvYcCVCunlCqGdAWWKBc7m26t1snqlrVpS3Tp2KzeQJRIPGGxclF4b4TD1YmUZzzCo6W1EDkcG/8OHPYwY0kqOAj/A2TH1iAC8= X-Gm-Message-State: AOJu0YxtLdpErFuF288QenPPZDDC8v4oASmrRN9DYaCIWpoP3sPYemyO sZzyy1zzHQJIT+Xtv4VrlGKgHSasxl9EUaEPBac9v8q/PD3JK0qgG/yn6Q== X-Google-Smtp-Source: AGHT+IGUPp7Oh9wq+3dffgYD+q6r4g8qdXJJ0MgX5CDMWFD+ZWcLdeGVeMRbEGUIbETc/gtszxq99Q== X-Received: by 2002:a17:906:1196:b0:a4a:36e4:c3f9 with SMTP id n22-20020a170906119600b00a4a36e4c3f9mr4484947eja.7.1713341765676; Wed, 17 Apr 2024 01:16:05 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8a87:ff00::6223]) by smtp.gmail.com with ESMTPSA id cx10-20020a170906c80a00b00a51b5282837sm7861508ejb.15.2024.04.17.01.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 01:16:04 -0700 (PDT) In-Reply-To: <86r0f5n8bk.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 16 Apr 2024 09:33:51 +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:283476 Archived-At: On Tue, 16 Apr 2024 at 09:33, Juri Linkov wrote: > IMHO, the problem is more wide and it's that dir-local variables > are not supported in non-file buffers by default. Maybe a new > option could enable them not only in compilation buffers, > but in all non-file buffers? One would have to exclude temporary and internal work buffers, for efficiency reasons. And then there's also the case of buffers that don't really "belong" to a directory, such as *Help*. Do you think there's a reliable way to distinguish those from the rest? (By the way, *Help* and friends get stuck forever in whatever default-directory they were first created; so for instance if you do C-x C-f in a *Help* buffer, you will see a random directory as starting point...) > Or such a new option could be a list of non-file modes that should > support dir-local variables. I'm not a big fan of this idea. The .dir-locals.el file is already a list of modes, you can decide there which modes you want to be affected.