From: Manuel Giraud <manuel@ledu-giraud.fr>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 60968@debbugs.gnu.org
Subject: bug#60968: 30.0.50; M-x shell keeps an old default-directory
Date: Fri, 20 Jan 2023 21:03:37 +0100 [thread overview]
Message-ID: <87pmb93rdy.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <87sfg5t4ip.fsf@gmx.de> (Michael Albinus's message of "Fri, 20 Jan 2023 20:00:46 +0100")
Michael Albinus <michael.albinus@gmx.de> 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
next prev parent reply other threads:[~2023-01-20 20:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-20 18:37 bug#60968: 30.0.50; M-x shell keeps an old default-directory Manuel Giraud
2023-01-20 19:00 ` Michael Albinus
2023-01-20 20:03 ` Manuel Giraud [this message]
2023-01-21 8:49 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmb93rdy.fsf@ledu-giraud.fr \
--to=manuel@ledu-giraud.fr \
--cc=60968@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.