]> git.eshelyaron.com Git - emacs.git/commitdiff
Insert missing step to make use of directory tracking OSC codes
authorSean Whitton <spwhitton@spwhitton.name>
Wed, 11 Jun 2025 14:23:32 +0000 (15:23 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:10:54 +0000 (10:10 +0200)
* 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

index bedc4a296974a55612b4a5fb6ef505d4fca3b7ce..910df0ce696d982cc2accd994d31333863a3e8f9 100644 (file)
@@ -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