>From 4c0a6f91b72aae7f43a93f2d286731fcd939fecd Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Tue, 13 Mar 2018 22:17:43 -0400 Subject: [PATCH] Improve word motion docs (Bug#30815) * doc/lispref/positions.texi (Word Motion): Fix reference to `char-script-table'. * src/syntax.c (forward-word): Add link to 'Word Motion' manual section. --- doc/lispref/positions.texi | 2 +- src/syntax.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index 0a03e246c0..fdc8bb96ae 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi @@ -210,7 +210,7 @@ Word Motion modes can override that by setting up a suitable @code{find-word-boundary-function-table}, described below. Characters that belong to different scripts (as defined by -@code{char-syntax-table}), also define a word boundary +@code{char-script-table}), also define a word boundary (@pxref{Character Properties}). In any case, this function cannot move point past the boundary of the accessible portion of the buffer, or across a field boundary (@pxref{Fields}). The most common case of diff --git a/src/syntax.c b/src/syntax.c index 378064611c..d3dd79229a 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1555,7 +1555,8 @@ DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p", table, but `find-word-boundary-function-table', such as set up by `subword-mode', can change that. If a Lisp program needs to move by words determined strictly by the syntax table, it should -use `forward-word-strictly' instead. */) +use `forward-word-strictly' instead. See Info node `(elisp) Word +Motion' for details. */) (Lisp_Object arg) { Lisp_Object tmp; -- 2.11.0