1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -08:00

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.
This commit is contained in:
Sean Whitton 2025-06-11 15:23:32 +01:00
parent 1bed294958
commit df3fb94f09

View file

@ -955,6 +955,13 @@ at each prompt, for instance with the following command:
printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD" printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD"
@end example @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 @vindex explicit-shell-file-name
@cindex environment variables for subshells @cindex environment variables for subshells
@cindex @env{ESHELL} environment variable @cindex @env{ESHELL} environment variable
@ -1188,7 +1195,7 @@ supports some extend escape codes, like some of the @acronym{OSC}
(Operating System Codes) if you put the following in your init file: (Operating System Codes) if you put the following in your init file:
@lisp @lisp
(add-hook 'comint-output-filter-functions 'comint-osc-process-output) (add-hook 'comint-output-filter-functions #'comint-osc-process-output)
@end lisp @end lisp
With this enabled, the output from, for instance, @code{ls With this enabled, the output from, for instance, @code{ls