diff options
| author | Joakim Verona | 2013-08-13 16:35:08 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-13 16:35:08 +0200 |
| commit | 88790a579512914b5608d9756cae9bb982ce7c41 (patch) | |
| tree | d75059f56d3905b5d525b795162f7c2b1e0e6c8f | |
| parent | e87eb4578d1dabd7805c7c501bccf3fd1c442958 (diff) | |
| parent | f73f4ce69f4b2e8f6c422aca8f8cc36ef72fa725 (diff) | |
| download | emacs-88790a579512914b5608d9756cae9bb982ce7c41.tar.gz emacs-88790a579512914b5608d9756cae9bb982ce7c41.zip | |
merge from trunk
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/positions.texi | 6 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 4 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/cmds.c | 2 | ||||
| -rw-r--r-- | src/syntax.c | 1 |
7 files changed, 22 insertions, 4 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 6df8c3912a3..42b9600a0ac 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-08-13 Xue Fuqiao <xfq.free@gmail.com> | ||
| 2 | |||
| 3 | * positions.texi (Word Motion): Remove redundant sentence. | ||
| 4 | |||
| 1 | 2013-08-13 Glenn Morris <rgm@gnu.org> | 5 | 2013-08-13 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * lists.texi (List Elements): | 7 | * lists.texi (List Elements): |
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index 119ad98a53d..5cb1a851a5b 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi | |||
| @@ -191,8 +191,8 @@ whether a given character is part of a word. @xref{Syntax Tables}. | |||
| 191 | 191 | ||
| 192 | @deffn Command forward-word &optional count | 192 | @deffn Command forward-word &optional count |
| 193 | This function moves point forward @var{count} words (or backward if | 193 | This function moves point forward @var{count} words (or backward if |
| 194 | @var{count} is negative). If @var{count} is @code{nil}, it moves | 194 | @var{count} is negative). If @var{count} is omitted or @code{nil}, it |
| 195 | forward one word. | 195 | defaults to 1. |
| 196 | 196 | ||
| 197 | ``Moving one word'' means moving until point crosses a | 197 | ``Moving one word'' means moving until point crosses a |
| 198 | word-constituent character and then encounters a word-separator | 198 | word-constituent character and then encounters a word-separator |
| @@ -210,7 +210,7 @@ If @code{inhibit-field-text-motion} is non-@code{nil}, | |||
| 210 | this function ignores field boundaries. | 210 | this function ignores field boundaries. |
| 211 | 211 | ||
| 212 | In an interactive call, @var{count} is specified by the numeric prefix | 212 | In an interactive call, @var{count} is specified by the numeric prefix |
| 213 | argument. If @var{count} is omitted or @code{nil}, it defaults to 1. | 213 | argument. |
| 214 | @end deffn | 214 | @end deffn |
| 215 | 215 | ||
| 216 | @deffn Command backward-word &optional count | 216 | @deffn Command backward-word &optional count |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ff9f4ff8707..0c8791d8af7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-08-13 Xue Fuqiao <xfq.free@gmail.com> | ||
| 2 | |||
| 3 | * simple.el (backward-word): Mention the optional argument. | ||
| 4 | |||
| 1 | 2013-08-13 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2013-08-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * frameset.el (frameset--make): Rename constructor from make-frameset. | 7 | * frameset.el (frameset--make): Rename constructor from make-frameset. |
diff --git a/lisp/simple.el b/lisp/simple.el index 0edf5ca8d9c..6825c41becc 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3338,6 +3338,7 @@ extract characters that are special to a buffer, and should not | |||
| 3338 | be copied into other buffers." | 3338 | be copied into other buffers." |
| 3339 | (funcall filter-buffer-substring-function beg end delete)) | 3339 | (funcall filter-buffer-substring-function beg end delete)) |
| 3340 | 3340 | ||
| 3341 | ;; FIXME: `with-wrapper-hook' is obsolete | ||
| 3341 | (defun buffer-substring--filter (beg end &optional delete) | 3342 | (defun buffer-substring--filter (beg end &optional delete) |
| 3342 | (with-wrapper-hook filter-buffer-substring-functions (beg end delete) | 3343 | (with-wrapper-hook filter-buffer-substring-functions (beg end delete) |
| 3343 | (cond | 3344 | (cond |
| @@ -5670,7 +5671,8 @@ current object." | |||
| 5670 | 5671 | ||
| 5671 | (defun backward-word (&optional arg) | 5672 | (defun backward-word (&optional arg) |
| 5672 | "Move backward until encountering the beginning of a word. | 5673 | "Move backward until encountering the beginning of a word. |
| 5673 | With argument ARG, do this that many times." | 5674 | With argument ARG, do this that many times. |
| 5675 | If ARG is omitted or nil, move point backward one word." | ||
| 5674 | (interactive "^p") | 5676 | (interactive "^p") |
| 5675 | (forward-word (- (or arg 1)))) | 5677 | (forward-word (- (or arg 1)))) |
| 5676 | 5678 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 7c6f9c3557f..28e8ab66e37 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-08-13 Xue Fuqiao <xfq.free@gmail.com> | ||
| 2 | |||
| 3 | * syntax.c (forward_word): | ||
| 4 | * cmds.c (forward_char, backward_char): Mention the optional argument. | ||
| 5 | |||
| 1 | 2013-08-13 Dmitry Antipov <dmantipov@yandex.ru> | 6 | 2013-08-13 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 7 | ||
| 3 | * window.h (struct window): Convert left_fringe_width | 8 | * window.h (struct window): Convert left_fringe_width |
diff --git a/src/cmds.c b/src/cmds.c index 3ebad50184a..ce91877f85e 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -86,6 +86,7 @@ DEFUN ("forward-char", Fforward_char, Sforward_char, 0, 1, "^p", | |||
| 86 | doc: /* Move point N characters forward (backward if N is negative). | 86 | doc: /* Move point N characters forward (backward if N is negative). |
| 87 | On reaching end or beginning of buffer, stop and signal error. | 87 | On reaching end or beginning of buffer, stop and signal error. |
| 88 | Interactively, N is the numeric prefix argument. | 88 | Interactively, N is the numeric prefix argument. |
| 89 | If N is omitted or nil, move point 1 character forward. | ||
| 89 | 90 | ||
| 90 | Depending on the bidirectional context, the movement may be to the | 91 | Depending on the bidirectional context, the movement may be to the |
| 91 | right or to the left on the screen. This is in contrast with | 92 | right or to the left on the screen. This is in contrast with |
| @@ -99,6 +100,7 @@ DEFUN ("backward-char", Fbackward_char, Sbackward_char, 0, 1, "^p", | |||
| 99 | doc: /* Move point N characters backward (forward if N is negative). | 100 | doc: /* Move point N characters backward (forward if N is negative). |
| 100 | On attempt to pass beginning or end of buffer, stop and signal error. | 101 | On attempt to pass beginning or end of buffer, stop and signal error. |
| 101 | Interactively, N is the numeric prefix argument. | 102 | Interactively, N is the numeric prefix argument. |
| 103 | If N is omitted or nil, move point 1 character backward. | ||
| 102 | 104 | ||
| 103 | Depending on the bidirectional context, the movement may be to the | 105 | Depending on the bidirectional context, the movement may be to the |
| 104 | right or to the left on the screen. This is in contrast with | 106 | right or to the left on the screen. This is in contrast with |
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 | ||
| 1465 | DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p", | 1465 | DEFUN ("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). |
| 1467 | If ARG is omitted or nil, move point forward one word. | ||
| 1467 | Normally returns t. | 1468 | Normally returns t. |
| 1468 | If an edge of the buffer or a field boundary is reached, point is left there | 1469 | If an edge of the buffer or a field boundary is reached, point is left there |
| 1469 | and the function returns nil. Field boundaries are not noticed if | 1470 | and the function returns nil. Field boundaries are not noticed if |