From unknown Sun Jul 20 09:47:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65702 <65702@debbugs.gnu.org> To: bug#65702 <65702@debbugs.gnu.org> Subject: Status: 30.0.50; compile-command not honored in shell buffers Reply-To: bug#65702 <65702@debbugs.gnu.org> Date: Sun, 20 Jul 2025 16:47:22 +0000 retitle 65702 30.0.50; compile-command not honored in shell buffers reassign 65702 emacs submitter 65702 Matthias Meulien severity 65702 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 02 09:39:48 2023 Received: (at submit) by debbugs.gnu.org; 2 Sep 2023 13:39:49 +0000 Received: from localhost ([127.0.0.1]:35513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcQqp-0007ii-P7 for submit@debbugs.gnu.org; Sat, 02 Sep 2023 09:39:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcQqj-0007iM-RM for submit@debbugs.gnu.org; Sat, 02 Sep 2023 09:39:45 -0400 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 1qcQqU-0001Hm-Dk for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:39:26 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcQqR-00022o-1Y for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:39:26 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-31c65820134so2400505f8f.1 for ; Sat, 02 Sep 2023 06:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693661961; x=1694266761; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=H0cSHPjAHUztD9n6uZfEo/g7Xti1/hE1TYvKf9KWMKQ=; b=a+l/NRyIAjgb+wPPIH2gzGCsHpwR4OA1b1USx8QwjaibRb6eL1m5r+H1nYPf0TtYIq bCCrF20rHf9jVxMsMs+CFWeD1qHPuFy20+a0XYPMMv5O+Neac7TY4gGxT6979wNmqc/v 6q9DkngETKHYCFPEMV/JWeRjB8rvfeM3Tijc++M8qo2d5t2weMs1qi9Cf/mM3objK4Oj 8kOW1lswcWTnNgSoBGNVLk0Ys+lGTLReSBpn6gb4krVogQpWuqH4W1UQsyGb6vn/c0AY 8Ru/M/niJwpZwQ5o5C/CBP7hjtksmfDT1QMkAqzeOGCpr0AuRg4Ha9G8b7LHoxx8TKJy 5FdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693661961; x=1694266761; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=H0cSHPjAHUztD9n6uZfEo/g7Xti1/hE1TYvKf9KWMKQ=; b=fMnU4LogIsUECe8fNbcQ/qto/X41ovvYhF/qnEuaj8aqYFASNXs+V2GDflughkqOh5 Kcald7KV9uzdS3n2vE5JI9NQpLNPKBjpWkyhCU1Jqj3BDzZAn//DEv0ppFzHgTnFDuoX xiS689IZz8+HF2OzG1Mr7FOYd9Ag3Yp1KME8rgr8e8Q/Ohc4tU3O46bFUvLU3FpHAguw 2axNMOF/Nb3yQv3ndUCocQ0nafQs7S4dkipsO4cvAKPTe8on5vQSElDNNVtn1YsUqvDQ ejHOc6pRgfkodyzA6pGGzY9ap7Y6Vs1tOkQ/Hj7RmjrK6ARAG9MxKGd/96utmlMlczP1 3gCQ== X-Gm-Message-State: AOJu0Yzx+cZVyE891YFZc55kmOjvTebpf2sypuMhXeT2myAoAulPIoym B9xoUikwylG2f+netET8PYt++eW9sHA= X-Google-Smtp-Source: AGHT+IGvsjrxmohix7xH/DaZAfMekexK1w3w42Rnk9De+QW5T1R24TMNRqlmYGHoV7Yy/LaerMv8eQ== X-Received: by 2002:adf:ea07:0:b0:319:8bb3:ab83 with SMTP id q7-20020adfea07000000b003198bb3ab83mr4328251wrm.66.1693661960914; Sat, 02 Sep 2023 06:39:20 -0700 (PDT) Received: from carbon.localdomain ([2a01:e0a:245:c850:98f5:429a:aa8e:95bb]) by smtp.gmail.com with ESMTPSA id d9-20020a5d4f89000000b0031c5b380291sm8628216wru.110.2023.09.02.06.39.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 06:39:20 -0700 (PDT) From: Matthias Meulien To: bug-gnu-emacs@gnu.org Subject: 30.0.50; compile-command not honored in shell buffers Date: Sat, 02 Sep 2023 15:39:20 +0200 Message-ID: <87h6ocy9rr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=orontee@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. (I successfully reproduced from 'emacs -Q'). In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-08-30 built on carbon Repository revision: 297ccd967f24e37bc51c057da43c862291a55ddd Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: hexl-follow-ascii: t goto-address-mode: t highlight-changes-visible-mode: t breadcrumb-mode: t minions-mode: t global-company-mode: t company-mode: t desktop-save-mode: t server-mode: t pixel-scroll-precision-mode: t save-place-mode: t shell-dirtrack-mode: t comint-fontify-input-mode: t electric-pair-mode: t icomplete-mode: t global-so-long-mode: t global-auto-revert-mode: t auto-insert-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-layout-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t window-divider-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/matthias/.config/emacs/elpa/dictionary-20201001.1727/dictionary hides /usr/local/share/emacs/30.0.50/lisp/net/dictionary Features: (shadow sort emacsbug pcmpl-gnu shortdoc comp comp-cstr cl-print help-fns ediff-ptch ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util ffap conf-mode restclient ox-odt ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox oc-basic org-element org-persist org-id avl-tree ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view jka-compr ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi kmacro quail rect align pcmpl-git eudc eudc-vars mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum tabify cus-start ert-x compat-macs loaddefs-gen radix-tree tar-mode arc-mode archive-mode mm-archive package-vc lisp-mnt gnutls network-stream url-cache url-http url-auth url-gw nsm finder-inf mule-util novice dabbrev pcmpl-unix pulse log-edit add-log grep misearch multi-isearch hexl make-mode generic flyspell rst rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode facemenu nxml-util nxml-enc xmltok meson-mode whitespace tramp-cache time-stamp goto-addr vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view pcvs-util image-dired image-dired-tags image-dired-external image-dired-util image-mode exif man eww url-queue shr pixel-fill kinsoku url-file svg dom mm-url hl-line yasnippet-snippets yasnippet smerge-mode diff hideshow js sh-script smie executable vc-dir vc flymake-cc cwarn cap-words superword subword dired-aux display-line-numbers hilit-chg c-ts-mode c-ts-common eglot external-completion jsonrpc flymake-proc flymake ert ewoc debug backtrace warnings compile breadcrumb imenu modus-operandi-tinted-theme modus-themes company-oddmuse company-keywords company-etags etags fileloop generator xref company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb ob-python python project treesit cl-extra minions compat company pcase carbon-custom cus-edit cus-load gnus-demon nntp gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 gnus-spec gnus-win nnoo gnus-int gnus-range message sendmail yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus nnheader gnus-util mail-utils range mm-util mail-prsvr wid-edit gnus-dired dired-x dired dired-loaddefs org-capture org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-compat org-version org-macs dictionary link connection advice markdown-mode color thingatpt noutline outline icons skeleton find-file vc-git diff-mode easy-mmode vc-dispatcher ispell desktop frameset server bookmark text-property-search pp pixel-scroll cua-base saveplace tramp-sh tramp rx trampver tramp-integration files-x tramp-message help-mode tramp-compat xdg shell pcomplete comint ansi-osc ring parse-time iso8601 time-date format-spec ansi-color tramp-loaddefs elec-pair icomplete so-long autorevert filenotify autoinsert cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs generic-x face-remap breadcrumb-autoloads caml-autoloads company-autoloads csv-mode-autoloads debbugs-autoloads dockerfile-mode-autoloads flymake-easy-autoloads git-link-autoloads go-mode-autoloads mallard-mode-autoloads markdown-mode-autoloads minions-autoloads compat-autoloads modus-themes-autoloads proof-general-autoloads proof-site proof-autoloads restclient-jq-autoloads jq-mode-autoloads restclient-autoloads rfc-mode-autoloads mmm-mode-autoloads terraform-mode-autoloads info dash-autoloads hcl-mode-autoloads typescript-mode-autoloads yaml-autoloads yaml-mode-autoloads yasnippet-snippets-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 16 1355808 206303) (symbols 48 49861 9) (strings 32 213796 6304) (string-bytes 1 6773049) (vectors 16 108792) (vector-slots 8 2137202 94939) (floats 8 751 3676) (intervals 56 122749 17311) (buffers 992 208)) From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 02 10:00:18 2023 Received: (at 65702) by debbugs.gnu.org; 2 Sep 2023 14:00:18 +0000 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 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 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==; Date: Sat, 02 Sep 2023 16:59:30 +0300 Message-Id: <835y4sad6l.fsf@gnu.org> From: Eli Zaretskii To: Matthias Meulien In-Reply-To: <87h6ocy9rr.fsf@gmail.com> (message from Matthias Meulien on Sat, 02 Sep 2023 15:39:20 +0200) Subject: Re: bug#65702: 30.0.50; compile-command not honored in shell buffers References: <87h6ocy9rr.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65702 Cc: 65702@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 03 03:30:30 2023 Received: (at 65702) by debbugs.gnu.org; 3 Sep 2023 07:30:30 +0000 Received: from localhost ([127.0.0.1]:39162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qchYz-0002lF-F6 for submit@debbugs.gnu.org; Sun, 03 Sep 2023 03:30:30 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:46556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qchYu-0002Gs-0i for 65702@debbugs.gnu.org; Sun, 03 Sep 2023 03:30:27 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-402c46c49f4so4406755e9.1 for <65702@debbugs.gnu.org>; Sun, 03 Sep 2023 00:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693726207; x=1694331007; 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=V1c/w03+mAO90Vv5ZvVDZN3B9bD6ffZvG0zqZ5XlQ/E=; b=Oc62cPQgJJ0J4tPaKDCi5W7WgR9WErSX2XNWVb/LcYgl2m9ZCoCtEs5W3BWtiPFcP+ V02KT972OjjqVIE05l7fWcmMoU8LdKQpUNJONgYx2P7dbtHuw6JVqA0DcjjymfhAC9/2 ztLNDsc92oDTo/E6kbVayIsyNcD/M3To+WOlwoiyG0FTnvze4B3ulomgEuJxe7kREOBb hUD1NKlAPHh0X+hi6lyn2vYsFKvlSSyrGvJoMPCYDMP+ae+L0hWVJB3+fychMHqFSFTn GGEpR/f1h0BfNY/Z5yomBOMeC1pb41S+wZ2BOkIY9hrAU5wr7Ux83qlNo+GF893o0TQf sNpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693726207; x=1694331007; 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=V1c/w03+mAO90Vv5ZvVDZN3B9bD6ffZvG0zqZ5XlQ/E=; b=WNclkm4vOJEZ7gzxJ95w6hbQ/TlqM7qKmKpVG4M0+3wmxzdCT4MkEAZKJkAm51+tVc Fi19Oe7sXNi+2mrMBkMTUnpEPxvbNEIK7vdk2Ws7DnPrkMOnrXonFtd5BKMiLUHp1B1U ehx5WgDgCxzdIVXfCoGc3HNsr1nsT3vKOHtZA/VcGpJDl8xEDnC+fPhx0ZxYXoTjK0Xt gzb3+X4kWkV1Ty5PeNUvqVw9h7f3/bVWiA76ZTP5GCeQt5ojgBiWZagHce7s6Tn+Fx6V j7J3hz4dTtjZxX6bMcidEWUwYyN3ds110xJKkXgRH4qpvH+A+4ArBf5ku0OiEZORRNBc nE9g== X-Gm-Message-State: AOJu0YxEZffcr6r8C7S5xrqqnVVsF/My1t4A3sM+ec30dE/NW3cF9/ZI u61RuKwXtk4ahSsNS9Qm66nlvuV82AI= X-Google-Smtp-Source: AGHT+IGmJ+AJREviCtrwHNcoOW1pxIRwjwz34fe9KVSAgQ3An+S7U41k3/BbVfVRI6Ejl//uTiJVlw== X-Received: by 2002:a05:600c:2051:b0:400:8d91:ffea with SMTP id p17-20020a05600c205100b004008d91ffeamr5181876wmg.37.1693726207399; Sun, 03 Sep 2023 00:30:07 -0700 (PDT) Received: from carbon.localdomain ([2a01:e0a:245:c850:98f5:429a:aa8e:95bb]) by smtp.gmail.com with ESMTPSA id m13-20020a7bce0d000000b003fed630f560sm10279877wmc.36.2023.09.03.00.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Sep 2023 00:30:06 -0700 (PDT) From: Matthias Meulien To: Eli Zaretskii Subject: Re: bug#65702: 30.0.50; compile-command not honored in shell buffers In-Reply-To: <835y4sad6l.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 02 Sep 2023 16:59:30 +0300") References: <87h6ocy9rr.fsf@gmail.com> <835y4sad6l.fsf@gnu.org> Date: Sun, 03 Sep 2023 09:30:04 +0200 Message-ID: <87cyyzyarn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65702 Cc: 65702@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> 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. Oh thank you! I now understand, I should have realized that the same behavior is observable in *xref*, or *Occur* buffers. Thank you Eli. Sorry for the annoyance. I'll override 'project-compile' in order to use the 'compile-command' set for the project-root directory. It'll be ok for my use case. -- Matthias From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 03 04:05:45 2023 Received: (at 65702-done) by debbugs.gnu.org; 3 Sep 2023 08:05:46 +0000 Received: from localhost ([127.0.0.1]:39176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qci77-0004wZ-J8 for submit@debbugs.gnu.org; Sun, 03 Sep 2023 04:05:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qci73-0004wK-DG for 65702-done@debbugs.gnu.org; Sun, 03 Sep 2023 04:05:44 -0400 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 1qci6n-0004mj-KT; Sun, 03 Sep 2023 04:05:25 -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=E+SyvVx7vplnDoAH/hBuP7gNqDcBjHnxthamjh3V8y0=; b=l0ItE7KZMxMG f1g39Evylwlm+EL+Gv2wyjygCofBQd4ki81TY4Pcgv7600xgyDOXGSiG+rGf1SaWEZHuvbFIQbvT7 ATZgzWK15lTgD6H1Gh3fe9BnnTv2iOJPoZiRzDjxI3Ub5GimIPRvtDNsbiUL2Ve12k1QpcP7LMbC+ lMX05vaG/evAkD9Wy4R542ztYNVvqb759mLP9BxuMLlst5IalZRLTdliYTWe/iynp6LVPHzh0cJeP WHpATpf2XDYofgwHD8//9TCuUzx0fZuQtCO09dr//1Qo3FT/WeNL6lDCFLJuLkXv/8PgcTpMs6N95 5b7047eSBMODWiCIr8oEUQ==; Date: Sun, 03 Sep 2023 11:04:52 +0300 Message-Id: <83bkej8yxn.fsf@gnu.org> From: Eli Zaretskii To: Matthias Meulien In-Reply-To: <87cyyzyarn.fsf@gmail.com> (message from Matthias Meulien on Sun, 03 Sep 2023 09:30:04 +0200) Subject: Re: bug#65702: 30.0.50; compile-command not honored in shell buffers References: <87h6ocy9rr.fsf@gmail.com> <835y4sad6l.fsf@gnu.org> <87cyyzyarn.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65702-done Cc: 65702-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Matthias Meulien > Cc: 65702@debbugs.gnu.org > Date: Sun, 03 Sep 2023 09:30:04 +0200 > > Eli Zaretskii writes: > > > 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. > > Oh thank you! I now understand, I should have realized that the same > behavior is observable in *xref*, or *Occur* buffers. Thank you Eli. > Sorry for the annoyance. > > I'll override 'project-compile' in order to use the 'compile-command' > set for the project-root directory. It'll be ok for my use case. No problem, I'm therefore closing this bug. From unknown Sun Jul 20 09:47:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 01 Oct 2023 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator