aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorNoam Postavsky2018-03-13 22:17:43 -0400
committerNoam Postavsky2018-03-16 19:51:28 -0400
commit10bd3b3af8acfc226acadc654298865cffc19cc9 (patch)
tree7ef51cc5e2e671b415984365c9cfa93d374d72da /src/syntax.c
parent2b8507fbdce8228ccdbcbc31fe545a50330ddd51 (diff)
downloademacs-10bd3b3af8acfc226acadc654298865cffc19cc9.tar.gz
emacs-10bd3b3af8acfc226acadc654298865cffc19cc9.zip
Improve word motion docs (Bug#30815)
* doc/lispref/positions.texi (Word Motion): Fix reference to `char-script-table'. * lisp/simple.el (backward-word): * src/syntax.c (forward-word): Mention `char-script-table' and add link to the 'Word Motion' manual section.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 378064611cc..e54325589f3 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1552,10 +1552,11 @@ left there and the function returns nil. Field boundaries are not
1552noticed if `inhibit-field-text-motion' is non-nil. 1552noticed if `inhibit-field-text-motion' is non-nil.
1553 1553
1554The word boundaries are normally determined by the buffer's syntax 1554The word boundaries are normally determined by the buffer's syntax
1555table, but `find-word-boundary-function-table', such as set up 1555table and character script (according to `char-script-table'), but
1556by `subword-mode', can change that. If a Lisp program needs to 1556`find-word-boundary-function-table', such as set up by `subword-mode',
1557move by words determined strictly by the syntax table, it should 1557can change that. If a Lisp program needs to move by words determined
1558use `forward-word-strictly' instead. */) 1558strictly by the syntax table, it should use `forward-word-strictly'
1559instead. See Info node `(elisp) Word Motion' for details. */)
1559 (Lisp_Object arg) 1560 (Lisp_Object arg)
1560{ 1561{
1561 Lisp_Object tmp; 1562 Lisp_Object tmp;