Subject: bug#76165: [PATCH] ansi-osc-directory-tracker respects Tramp remote files

From: Visuwesh <[email-masked]>
Date: Mon, 10 Feb 2025 19:02:38 +0530

[திங்கள் பிப்ரவரி 10, 2025] Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

> Visuwesh <[email-masked]> writes:
>
> Hi,
>
>> The concat form is ill-formed in the patch you pushed, no?
>>
>>     (concat (file-remote-p default-directory
>>                            (url-unhex-string (url-filename url))))
>>
>> should be
>>
>>     (concat (file-remote-p default-directory)
>>             (url-unhex-string (url-filename url)))
>
> Looks like, yes :-(
>
> Since I don't know how to activate ansi-osc-directory-tracker in a shell
> (where is it documented?), I couldn't test it. Could you pls advice me?

The documentation is spread over two places:

    1. Docstring of `ansi-osc-directory-tracker' tells how to set up
       things from the shell side.
    2. You need to add `comint-osc-process-output' to
       `comint-output-filter-functions' (as the commentary following
       comint.el:3998 instructs you to).