From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.bugs Subject: bug#60968: 30.0.50; M-x shell keeps an old default-directory Date: Fri, 20 Jan 2023 21:03:37 +0100 Message-ID: <87pmb93rdy.fsf@ledu-giraud.fr> References: <87tu0l3vdb.fsf@ledu-giraud.fr> <87sfg5t4ip.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18500"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60968@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 20 21:04:26 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 1pIxcg-0004YW-Dk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Jan 2023 21:04:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIxcP-0001no-Ue; Fri, 20 Jan 2023 15:04:09 -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 1pIxcI-0001mr-Iz for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 15:04:02 -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 1pIxcI-0002Hq-4O for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 15:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pIxcH-00074o-Vx for bug-gnu-emacs@gnu.org; Fri, 20 Jan 2023 15:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jan 2023 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60968 X-GNU-PR-Package: emacs Original-Received: via spool by 60968-submit@debbugs.gnu.org id=B60968.167424502327177 (code B ref 60968); Fri, 20 Jan 2023 20:04:01 +0000 Original-Received: (at 60968) by debbugs.gnu.org; 20 Jan 2023 20:03:43 +0000 Original-Received: from localhost ([127.0.0.1]:47208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIxby-00074H-RI for submit@debbugs.gnu.org; Fri, 20 Jan 2023 15:03:43 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:14431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pIxbw-000748-Ml for 60968@debbugs.gnu.org; Fri, 20 Jan 2023 15:03:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=BVojXsv8r4kaxpKd cs2Kfz1iCKDPHJYLW0tXW1LyNM4=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=G24McXbMsG+ruPSk/IUjufhM1nYRqXTkXniBJq 5KpvKnYrvWLA89OomGnAOx6rmZDnrErZjkRx9fY5KcodtH17nUaURsLNgeQBHd7n3UPAp9 TLj5I78jKpO/bwjoFZaTw7UhNviZVC/TNEDWtH9NlYRL2ZOowdgbPKkNEii4Iq5aGgJ9yU RhqcHYWMwHalsUvKRC3B64P18U3jYTHmr0XroGajzYjsNphW7If/oQmcHbHFyAscx/Cj7w +Lq954tpofp4Wab9FkxtZObd9gnEEFp8axii9GxaVGefY6yJQXeTc/WKQ12b1QSI+0u2cC 5g53Lnh5sQzN4L040C6DynXw== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id d98f0be2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 20 Jan 2023 21:03:38 +0100 (CET) In-Reply-To: <87sfg5t4ip.fsf@gmx.de> (Michael Albinus's message of "Fri, 20 Jan 2023 20:00:46 +0100") 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:253794 Archived-At: Michael Albinus writes: [...] > This is the specified behavior of the `shell' command. From the > docstring: > > If BUFFER exists but shell process is not running, make new shell. > If BUFFER exists and shell process is running, just switch to BUFFER. > > > That is, the shell buffer is reused, even if you have interrupted with > C-g, and the shell didn't start yet. And so its default-directory. > > If you want another buffer (and another shell therefore), the following > from the docstring is relevant: > > Interactively, a prefix arg means to prompt for BUFFER. > > So your use case needs "C-u M-x shell". Or you delete the shell buffer > after you have interrupted with C-g. Yes, you're right I'd better need to fix my usage because the "using an existing shell buffer" feature is valuable. Sorry for this bug report then. -- Manuel Giraud