Subject: bug#31355: 26.1; [PATCH] Fix remote-host/tramp directory tracking for shells in `term' buffers

From: Phil Sainty <[email-masked]>
Date: Fri, 04 May 2018 09:01:38 +1200

On 2018-05-04 02:59, Michael Albinus wrote:
> And here I believe you could always apply
> 
> (format "/-:%s@%s:%s" term-ansi-at-user term-ansi-at-host 
> term-ansi-at-dir)

Right, although I believe the intent is simply to produce the least-
verbose path by excluding the username if possible (as indeed the user
would very likely be doing if entering the tramp path manually); so
I'd be inclined to leave that part alone as well.