From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.bugs Subject: bug#65702: 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36840"; mail-complaints-to="usenet@ciao.gmane.io" To: 65702@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 02 15:40: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 1qcQr6-0009KW-7w for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Sep 2023 15:40:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcQqw-0001rO-1h; Sat, 02 Sep 2023 09:39:54 -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 1qcQqu-0001q9-Vv for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:39:53 -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 1qcQqu-00025k-Ne for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:39:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcQr4-0007jO-Ej for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matthias Meulien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2023 13:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65702 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169366198929685 (code B ref -1); Sat, 02 Sep 2023 13:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Sep 2023 13:39:49 +0000 Original-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 Original-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 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 1qcQqU-0001Hm-Dk for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2023 09:39:26 -0400 Original-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 Original-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) Original-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) 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-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:268998 Archived-At: 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))