Ship Mints <shipmi...@gmail.com> writes: Hi,
> Turns out this is a different issue. In this case, please start a new thread, or change the subject at least. > A remote file name such as /ssh:tlok.local:/Users/shipmints/ opens a > shell with ssh just fine. BUT the buffer's default-directory is set to > /Users/shipmints and does not retain its remote form. This must be something special with your Emacs config. The following works with Emacs 31 for me: --8<---------------cut here---------------start------------->8--- # emacs -Q /ssh:: M-x shell M-: default-directory => #("/ssh:gandalf:~/" 5 12 (tramp-default t)) --8<---------------cut here---------------end--------------->8--- > Checking into this deeper, it looks like comint's > ansi-osc-directory-tracker resets default-directory and might need > some assistance to know it's in a buffer under Tramp management. It > simply calls cd-absolute which knows nothing of the originating Tramp > remote file format. > > I will try advising ansi-osc-directory-tracker, and if that works, > perhaps I'll submit a patch to make a permanent change. Please do. > -Stephane Best regards, Michael.