Commit ec02c736 authored by Noam Postavsky's avatar Noam Postavsky

Update process filter example (Bug#35044)

* doc/lispref/processes.texi (Filter Functions): Use
insert-before-markers in the "ordinary" filter example, like
internal-default-process-filter does.
parent c26d452a
Pipeline #1513 passed with stage
in 26 minutes and 27 seconds
...@@ -1643,7 +1643,7 @@ how to do these things: ...@@ -1643,7 +1643,7 @@ how to do these things:
(save-excursion (save-excursion
;; @r{Insert the text, advancing the process marker.} ;; @r{Insert the text, advancing the process marker.}
(goto-char (process-mark proc)) (goto-char (process-mark proc))
(insert string) (insert-before-markers string)
(set-marker (process-mark proc) (point))) (set-marker (process-mark proc) (point)))
(if moving (goto-char (process-mark proc))))))) (if moving (goto-char (process-mark proc)))))))
@end group @end group
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment