From: Sean Whitton Date: Wed, 11 Jun 2025 14:23:32 +0000 (+0100) Subject: Insert missing step to make use of directory tracking OSC codes X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a734faeaf54f2f919a02e74c802b5577e75a6360;p=emacs.git 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) --- 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