From a734faeaf54f2f919a02e74c802b5577e75a6360 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 11 Jun 2025 15:23:32 +0100 Subject: [PATCH] Insert missing step to make use of directory tracking OSC codes * doc/emacs/misc.texi (Interactive Shell): Say to add comint-osc-process-output to comint-output-filter-function. (cherry picked from commit df3fb94f09143285980348a3c6264ace913d3c73) --- doc/emacs/misc.texi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index bedc4a29697..910df0ce696 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -959,6 +959,13 @@ at each prompt, for instance with the following command: printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD" @end example +@noindent +Then tell Emacs to process the escape codes: + +@lisp +(add-hook 'comint-output-filter-functions #'comint-osc-process-output) +@end lisp + @vindex explicit-shell-file-name @cindex environment variables for subshells @cindex @env{ESHELL} environment variable @@ -1192,7 +1199,7 @@ supports some extend escape codes, like some of the @acronym{OSC} (Operating System Codes) if you put the following in your init file: @lisp -(add-hook 'comint-output-filter-functions 'comint-osc-process-output) +(add-hook 'comint-output-filter-functions #'comint-osc-process-output) @end lisp With this enabled, the output from, for instance, @code{ls -- 2.39.5