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#65702: 30.0.50; compile-command not honored in shell buffers Date: Sat, 02 Sep 2023 16:59:30 +0300 Message-ID: <835y4sad6l.fsf@gnu.org> References: <87h6ocy9rr.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16324"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65702@debbugs.gnu.org To: Matthias Meulien Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 02 16:01:06 2023 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 1qcRBR-00044p-P1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Sep 2023 16:01:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcRBH-0000Zc-Rq; Sat, 02 Sep 2023 10:00:55 -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 1qcRBE-0000YW-Sz for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 10:00:52 -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 1qcRBE-0001ad-KJ for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 10:00:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcRBO-0000VY-CS for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 10:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2023 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65702 X-GNU-PR-Package: emacs Original-Received: via spool by 65702-submit@debbugs.gnu.org id=B65702.16936632181893 (code B ref 65702); Sat, 02 Sep 2023 14:01:02 +0000 Original-Received: (at 65702) by debbugs.gnu.org; 2 Sep 2023 14:00:18 +0000 Original-Received: from localhost ([127.0.0.1]:38203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcRAR-0000T6-FZ for submit@debbugs.gnu.org; Sat, 02 Sep 2023 10:00:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcRAO-0000S4-3O for 65702@debbugs.gnu.org; Sat, 02 Sep 2023 10:00:01 -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 1qcRA8-0001Cv-VK; Sat, 02 Sep 2023 09:59:44 -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=YyXnP8A/e5xTD/HEW/8Enpo7wMwn356EtRNk5KTORk8=; b=JoPCQiESxou+ eZXjhFbVfucVcjLHZ9DywLULNxnL59++xBxOl809o4Ilq1R7/l10GXziql3+JknFKfJ2nQae7/RkN 2cP/83kkLBbt/HHPV8yJQjP5ALXqqOR6Q3vAVtXOkCdDQbvtm4M6IQE4Fyt3wY0+y/UFXYkeRNe09 mrbr4xY6lx9IDTcyl6tCALO1dQ7KFHgBTatqWuWn6zJFatRZu5wKBEgoJMnXti/2WtHGnCqeaM9jO ZrkdxyOTzjEtf5AWB/vb+SAibvaPUMZaz1w9de1XXjJ90z6jdorhBDqhoVfKedzifsKk71gq6IlEg Vqcs6H85S4EvD0t7EAuCCA==; In-Reply-To: <87h6ocy9rr.fsf@gmail.com> (message from Matthias Meulien on Sat, 02 Sep 2023 15:39:20 +0200) 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:269000 Archived-At: > From: Matthias Meulien > Date: Sat, 02 Sep 2023 15:39:20 +0200 > > > I customize the default compile command using directory local > variables. For example, with a '.dir-locals' containing the following: > > ;;; Directory Local Variables -*- no-byte-compile: t -*- > ;;; For more information see (info "(emacs) Directory Variables") > > ((nil . ((compilation-search-path . (nil "builddir")) > (compile-command . "meson setup builddir . --cross-file crossfile_arm.ini ; pushd builddir && meson compile ; popd") > (compilation-environment . ("TERM=ansi")) > (ispell-local-dictionary . "en") > (project-vc-merge-submodules . nil))) > (c++-mode . ((c-basic-offset . 2) > (indent-tabs-mode . nil)))) > > When I enter the *vc-dir* buffer for the corresponding Git local > repository, and I press 'C-x p c' ('project-compile' command) then the > default compile command has the value specified in the previous > '.dir-locals.el'. > > Same with 'meson.build', 'README.md', '*.cc', '*.h', etc. files. > > But when 'project-compile' is called from a shell buffer after I pressed > 'C-x p s' then the default compile command is 'make -k'. This is > strange and looks like a bug to my eyes. Aren't directory-local variables in effect only in file-visiting buffers? The shell buffer created by "C-x p s" doesn't visit a file, so I think directory-local variables are not in effect for it.