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#59868: 28.2.50; compilation-search-path incompatible with dir-locals Date: Wed, 07 Dec 2022 15:01:17 +0200 Message-ID: <83y1rj4bc2.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37824"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59868@debbugs.gnu.org To: Len Trigg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 07 14:02:47 2022 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 1p2u4U-0009Yk-NL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Dec 2022 14:02:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2u4I-0002sd-Ld; Wed, 07 Dec 2022 08:02:34 -0500 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 1p2u42-0002bQ-I7 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:02:22 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2u3m-00066K-D9 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:02:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2u3m-0006mf-2N for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Dec 2022 13:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59868 X-GNU-PR-Package: emacs Original-Received: via spool by 59868-submit@debbugs.gnu.org id=B59868.167041809926064 (code B ref 59868); Wed, 07 Dec 2022 13:02:02 +0000 Original-Received: (at 59868) by debbugs.gnu.org; 7 Dec 2022 13:01:39 +0000 Original-Received: from localhost ([127.0.0.1]:50252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2u3O-0006mI-IR for submit@debbugs.gnu.org; Wed, 07 Dec 2022 08:01:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2u3M-0006m8-E3; Wed, 07 Dec 2022 08:01:37 -0500 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 1p2u3G-0005wU-Qu; Wed, 07 Dec 2022 08:01:31 -0500 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=uWODk25nZdthWBPMu+5RcQ5bB/n1NyxnLbRDn17WpbM=; b=DpFnTGXik1d4 l7kYdqikgIiQBshVYEuKzTG/OalbBSTw98ND9C5GXI+iBwbTPthmF9/1fm5ufVvqiI+K6+WLqn3FM unv7MBCSE9VlhWsHMfI8kGeDQlQ5gWeinhHOXBm+slhtdYv/4qXcKiYmQb7Cs0R5QCB3NPfLJdw0h dErUTAfMUTa+BJmd7brXIOw2IdfOLFt5x9gjhA4/58cAqUzY/AFU5C/O7JrZlLhUS4UuCJsl2funA Mi9h2ZaeRaJD3Ze1t0rXEndF8ALwmi7jxLV9mB09QeVtA29Pc5c4iMfDynfKiQgpDHNAWgj13ENkR Pg+XJLTfBF44ejNn8affgw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2u3G-00073W-Ak; Wed, 07 Dec 2022 08:01:30 -0500 In-Reply-To: (message from Len Trigg on Wed, 7 Dec 2022 14:56:25 +1300) 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:250188 Archived-At: severity 59868 wishlist thanks > From: Len Trigg > Date: Wed, 7 Dec 2022 14:56:25 +1300 > > The compilation-search-path variable purports to let the user specify a > list of directories to search when resolving file names found in > compilation error messages. As such this very much should be possible to > specify as a project-specific setting. However, setting this variable in > per-project .dir-locals.el file does not work. When a compilation buffer > is created, the local value is not obeyed (I have my dir locals file setting > this variable regardless of the major mode, and I see the variable being > set in regular modes just fine - it seems to be just compilation mode with > the problem). I am not an expert, but it may be due to compilation mode > calling kill-all-local-variables that prevents this from working as expected. I don't think this variable is meant to be buffer-local in *compilation* buffers. If project.el wants to provide a project-local value for this search path, it should define a new variable for that, and then compilation-mode can set its own variable from that.