# HG changeset patch # User Richard M. Stallman # Date 943637670 0 # Node ID 615e184ede1b9d3078b20aa4671b70d06b6c2d75 # Parent 1d769c66f407a4e074e3ff256dcfe642334e44d5 (comint-preoutput-filter-functions): Doc fix. diff -r 1d769c66f407 -r 615e184ede1b lisp/comint.el --- a/lisp/comint.el Fri Nov 26 17:33:36 1999 +0000 +++ b/lisp/comint.el Fri Nov 26 17:34:30 1999 +0000 @@ -1339,9 +1339,17 @@ (run-hook-with-args 'comint-output-filter-functions ""))))) (defvar comint-preoutput-filter-functions nil - "Functions to call before output is inserted into the buffer. -These functions get one argument, a string containing the text to be -inserted. They return the string as it should be inserted. + "List of functions to call before inserting Comint output into the buffer. +Each function gets one argument, a string containing the text received +from the subprocess. It should return the string to insert, perhaps +the same string that was received, or perhaps a modified or transformed +string. + +The functions on the list are called sequentially, and each one is +given the string returned by the previous one. The string returned by +the last function is the text that is actually inserted in the +redirection buffer.") + This variable is buffer-local.")