diff options
author | Glenn Morris <rgm@gnu.org> | 2019-06-07 07:50:49 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2019-06-07 07:50:49 -0700 |
commit | 348657cc2155f1d27338dc169634dc74caf9a0a3 (patch) | |
tree | 79725bbf23d87b76cf2ec9615f9e5b8ee52296ee /doc/lispref/processes.texi | |
parent | 6bee17e4474cce4175f0289961f1f1fc40ba800e (diff) | |
parent | 9254885a9571162920889f47adb41eaf1e555c21 (diff) | |
download | emacs-348657cc2155f1d27338dc169634dc74caf9a0a3.tar.gz emacs-348657cc2155f1d27338dc169634dc74caf9a0a3.tar.bz2 emacs-348657cc2155f1d27338dc169634dc74caf9a0a3.zip |
Merge from origin/emacs-26
9254885 (origin/emacs-26) Resurrect display-line-number-mode in clien...
aecbbd5 * src/fns.c (Fmapconcat): Doc fix. (Bug#35710)
8e5fc38 Fix typo
ee21b40 * lisp/term/w32-win.el ([noname]): Bind to 'ignore'. (Bug#36...
f68b33f Fix styling of Unicode codepoints in manuals
ff7ec6f Fix a few uses of quotes in user manual
b67042b More minor copyedits in the Emacs manual
9734b5c Fix minor issues in the Emacs manual
c153250 Try to improve text on atomic windows in Elisp manual
fb314ba Don't recommend insert-before-markers in process filters
Diffstat (limited to 'doc/lispref/processes.texi')
-rw-r--r-- | doc/lispref/processes.texi | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index b73401a62a2..ebc31c597e6 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -1688,7 +1688,7 @@ how to do these things: (save-excursion ;; @r{Insert the text, advancing the process marker.} (goto-char (process-mark proc)) - (insert-before-markers string) + (insert string) (set-marker (process-mark proc) (point))) (if moving (goto-char (process-mark proc))))))) @end group @@ -1704,7 +1704,12 @@ text arrives, you could insert a line like the following just before the To force point to the end of the new output, no matter where it was previously, eliminate the variable @code{moving} from the example and -call @code{goto-char} unconditionally. +call @code{goto-char} unconditionally. Note that this doesn't +necessarily move the window point. The default filter actually uses +@code{insert-before-markers} which moves all markers, including the +window point. This may move unrelated markers, so it's generally +better to move the window point explicitly, or set its insertion type +to @code{t} (@pxref{Window Point}). @ignore In earlier Emacs versions, every filter function that did regular |