diff options
| author | Eli Zaretskii | 2016-02-10 20:30:12 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-02-10 20:30:12 +0200 |
| commit | 4ef153b55a543e67dec280accb1b2a3543089060 (patch) | |
| tree | 3ad7f0b0e26a5a32902363bca8bd999b4db3b15c /src | |
| parent | 3ad05a0dc46093dd6b8958747a0475b8baba954f (diff) | |
| download | emacs-4ef153b55a543e67dec280accb1b2a3543089060.tar.gz emacs-4ef153b55a543e67dec280accb1b2a3543089060.zip | |
Improve doc strings of 'forward/backward-word-strictly'
* lisp/simple.el (backward-word): Refer to 'backward-word-strictly'
in the doc string. Suggested by Glenn Morris <rgm@gnu.org>.
* lisp/subr.el (forward-word-strictly, backward-word-strictly):
Mention 'subword-mode' in the doc strings.
* src/syntax.c (Fforward_word): Refer to 'forward-word-strictly'
in the doc string. (Bug#22560)
Diffstat (limited to 'src')
| -rw-r--r-- | src/syntax.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c index 8b5cc1df407..7e988547675 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1536,9 +1536,15 @@ DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p", | |||
| 1536 | doc: /* Move point forward ARG words (backward if ARG is negative). | 1536 | doc: /* Move point forward ARG words (backward if ARG is negative). |
| 1537 | If ARG is omitted or nil, move point forward one word. | 1537 | If ARG is omitted or nil, move point forward one word. |
| 1538 | Normally returns t. | 1538 | Normally returns t. |
| 1539 | If an edge of the buffer or a field boundary is reached, point is left there | 1539 | If an edge of the buffer or a field boundary is reached, point is |
| 1540 | and the function returns nil. Field boundaries are not noticed if | 1540 | left there and the function returns nil. Field boundaries are not |
| 1541 | `inhibit-field-text-motion' is non-nil. */) | 1541 | noticed if `inhibit-field-text-motion' is non-nil. |
| 1542 | |||
| 1543 | The word boundaries are normally determined by the buffer's syntax | ||
| 1544 | table, but `find-word-boundary-function-table', such as set up | ||
| 1545 | by `subword-mode', can change that. If a Lisp program needs to | ||
| 1546 | move by words determined strictly by the syntax table, it should | ||
| 1547 | use `forward-word-strictly' instead. */) | ||
| 1542 | (Lisp_Object arg) | 1548 | (Lisp_Object arg) |
| 1543 | { | 1549 | { |
| 1544 | Lisp_Object tmp; | 1550 | Lisp_Object tmp; |