branch: elpa/with-editor commit 8e0c358c94f3649ec122fd03f5c8bc4602dce611 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
with-editor-set-process-filter: Fix documentation --- with-editor.el | 6 +++--- with-editor.org | 5 +++-- with-editor.texi | 5 +++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/with-editor.el b/with-editor.el index 751133f..4a43595 100644 --- a/with-editor.el +++ b/with-editor.el @@ -628,9 +628,9 @@ Give PROCESS the new FILTER but keep `with-editor-process-filter' if that was added earlier by the advised `start-file-process'. Do so by wrapping the two filter functions using a lambda, which -becomes the actual filter. It calls `with-editor-process-filter' -first, passing t as NO-STANDARD-FILTER. Then it calls FILTER, -which may or may not insert the text into the PROCESS's buffer." +becomes the actual filter. It calls FILTER first, which may or +may not insert the text into the PROCESS's buffer. Then it calls +`with-editor-process-filter', passing t as NO-STANDARD-FILTER." (set-process-filter process (if (eq (process-filter process) 'with-editor-process-filter) diff --git a/with-editor.org b/with-editor.org index 7686dd9..106205f 100644 --- a/with-editor.org +++ b/with-editor.org @@ -268,8 +268,9 @@ package]]. This function is like ~set-process-filter~ but ensures that adding the new FILTER does not remove the ~with-editor-process-filter~. This is done by wrapping the two filter functions using a lambda, which - becomes the actual filter. It calls ~with-editor-process-filter~ - first, passing ~t~ as NO-STANDARD-FILTER. Then it calls FILTER. + becomes the actual filter. It calls FILTER first, which may or + may not insert the text into the PROCESS's buffer. Then it calls + ~with-editor-process-filter~, passing t as NO-STANDARD-FILTER. * Debugging diff --git a/with-editor.texi b/with-editor.texi index afdf587..73c89f6 100644 --- a/with-editor.texi +++ b/with-editor.texi @@ -341,8 +341,9 @@ required and that it is evaluated at run-time. This function is like @code{set-process-filter} but ensures that adding the new FILTER does not remove the @code{with-editor-process-filter}. This is done by wrapping the two filter functions using a lambda, which -becomes the actual filter. It calls @code{with-editor-process-filter} -first, passing @code{t} as NO-STANDARD-FILTER@. Then it calls FILTER@. +becomes the actual filter. It calls FILTER first, which may or +may not insert the text into the PROCESS's buffer. Then it calls +@code{with-editor-process-filter}, passing t as NO-STANDARD-FILTER@. @end defun @node Debugging