unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan McCarthy <daniel.c.mccarthy@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 53927@debbugs.gnu.org
Subject: bug#53927: 27.2; shell-mode dir tracking falls out of sync after popd in remote buffers
Date: Tue, 15 Feb 2022 10:29:43 -0500	[thread overview]
Message-ID: <CAAoRiOV=0CE+kXWS9k0mFSYb_KBb5vteLFCbWBHKY8zwGHsA1w@mail.gmail.com> (raw)
In-Reply-To: <87y22cw8o6.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]

The patch fixes it for me too. Thanks!

On Tue, Feb 15, 2022 at 8:39 AM Michael Albinus <michael.albinus@gmx.de>
wrote:

> Dan McCarthy <daniel.c.mccarthy@gmail.com> writes:
>
> Hi Dan,
>
> > Create a remote shell-mode buffer with C-u M-x shell, using bash as
> > the
> > remote shell. pushd into another directory, then popd
> > back. default-directory and shell-dirstack still have the other
> > directory even though the popd took effect in the remote process.
> >
> > The problem seems to be that shell-prefixed-directory-name returns a
> > string like
> > "/ssh:dan@solstice:/ssh:dan@solstice:/home/dan/Documents/",
> > doubling the remote prefix.
> >
> > Local shell-mode buffers do not have the problem.
>
> Thanks for the bug report, I could reproduce it locally. The appended
> patch fixes this for me, could you please check?
>
> Eli, it is a very simple patch. Any chance to commit it to the emacs-28
> branch? Otherwise, I would commit it to master, but we need a marker to
> merge it back to the emacs-28 branch after the Emacs 28.1 release.
>
> Best regards, Michael.
>
>

[-- Attachment #2: Type: text/html, Size: 1571 bytes --]

  reply	other threads:[~2022-02-15 15:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-10 20:18 bug#53927: 27.2; shell-mode dir tracking falls out of sync after popd in remote buffers Dan McCarthy
2022-02-15 13:39 ` Michael Albinus
2022-02-15 15:29   ` Dan McCarthy [this message]
2022-02-15 16:41   ` Eli Zaretskii
2022-02-15 17:19     ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAoRiOV=0CE+kXWS9k0mFSYb_KBb5vteLFCbWBHKY8zwGHsA1w@mail.gmail.com' \
    --to=daniel.c.mccarthy@gmail.com \
    --cc=53927@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).