aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXue Fuqiao2013-08-13 22:26:39 +0800
committerXue Fuqiao2013-08-13 22:26:39 +0800
commitf73f4ce69f4b2e8f6c422aca8f8cc36ef72fa725 (patch)
tree772f6c658f53e506fce760c1498345428618b777 /src
parent956720afe49a46bc64c3bdd5447b318808565809 (diff)
downloademacs-f73f4ce69f4b2e8f6c422aca8f8cc36ef72fa725.tar.gz
emacs-f73f4ce69f4b2e8f6c422aca8f8cc36ef72fa725.zip
Doc fix for forward-word and backward-word.
* doc/lispref/positions.texi (Word Motion): Remove redundant sentence. * lisp/simple.el (backward-word): Mention the optional argument. * src/syntax.c (forward_word): Mention the optional argument.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/syntax.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a0a37f0628d..28e8ab66e37 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,6 @@
12013-08-13 Xue Fuqiao <xfq.free@gmail.com> 12013-08-13 Xue Fuqiao <xfq.free@gmail.com>
2 2
3 * syntax.c (forward_word):
3 * cmds.c (forward_char, backward_char): Mention the optional argument. 4 * cmds.c (forward_char, backward_char): Mention the optional argument.
4 5
52013-08-13 Dmitry Antipov <dmantipov@yandex.ru> 62013-08-13 Dmitry Antipov <dmantipov@yandex.ru>
diff --git a/src/syntax.c b/src/syntax.c
index 6d52d115889..f5b37303a4a 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1464,6 +1464,7 @@ scan_words (register ptrdiff_t from, register EMACS_INT count)
1464 1464
1465DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p", 1465DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p",
1466 doc: /* Move point forward ARG words (backward if ARG is negative). 1466 doc: /* Move point forward ARG words (backward if ARG is negative).
1467If ARG is omitted or nil, move point forward one word.
1467Normally returns t. 1468Normally returns t.
1468If an edge of the buffer or a field boundary is reached, point is left there 1469If an edge of the buffer or a field boundary is reached, point is left there
1469and the function returns nil. Field boundaries are not noticed if 1470and the function returns nil. Field boundaries are not noticed if