emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r113843: Doc fix for forward-word and backward-word.


From: Xue Fuqiao
Subject: [Emacs-diffs] trunk r113843: Doc fix for forward-word and backward-word.
Date: Tue, 13 Aug 2013 14:26:49 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 113843
revision-id: address@hidden
parent: address@hidden
committer: Xue Fuqiao <address@hidden>
branch nick: trunk
timestamp: Tue 2013-08-13 22:26:39 +0800
message:
  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.
modified:
  doc/lispref/ChangeLog          changelog-20091113204419-o5vbwnq5f7feedwu-6155
  doc/lispref/positions.texi     
positions.texi-20091113204419-o5vbwnq5f7feedwu-6206
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/simple.el                 simple.el-20091113204419-o5vbwnq5f7feedwu-403
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/syntax.c                   syntax.c-20091113204419-o5vbwnq5f7feedwu-180
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2013-08-13 07:15:27 +0000
+++ b/doc/lispref/ChangeLog     2013-08-13 14:26:39 +0000
@@ -1,3 +1,7 @@
+2013-08-13  Xue Fuqiao  <address@hidden>
+
+       * positions.texi (Word Motion): Remove redundant sentence.
+
 2013-08-13  Glenn Morris  <address@hidden>
 
        * lists.texi (List Elements):

=== modified file 'doc/lispref/positions.texi'
--- a/doc/lispref/positions.texi        2013-08-06 06:53:09 +0000
+++ b/doc/lispref/positions.texi        2013-08-13 14:26:39 +0000
@@ -191,8 +191,8 @@
 
 @deffn Command forward-word &optional count
 This function moves point forward @var{count} words (or backward if
address@hidden is negative).  If @var{count} is @code{nil}, it moves
-forward one word.
address@hidden is negative).  If @var{count} is omitted or @code{nil}, it
+defaults to 1.
 
 ``Moving one word'' means moving until point crosses a
 word-constituent character and then encounters a word-separator
@@ -210,7 +210,7 @@
 this function ignores field boundaries.
 
 In an interactive call, @var{count} is specified by the numeric prefix
-argument.  If @var{count} is omitted or @code{nil}, it defaults to 1.
+argument.
 @end deffn
 
 @deffn Command backward-word &optional count

=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-08-13 13:47:54 +0000
+++ b/lisp/ChangeLog    2013-08-13 14:26:39 +0000
@@ -1,3 +1,7 @@
+2013-08-13  Xue Fuqiao  <address@hidden>
+
+       * simple.el (backward-word): Mention the optional argument.
+
 2013-08-13  Stefan Monnier  <address@hidden>
 
        * frameset.el (frameset--make): Rename constructor from make-frameset.

=== modified file 'lisp/simple.el'
--- a/lisp/simple.el    2013-08-09 21:22:44 +0000
+++ b/lisp/simple.el    2013-08-13 14:26:39 +0000
@@ -3338,6 +3338,7 @@
 be copied into other buffers."
   (funcall filter-buffer-substring-function beg end delete))
 
+;; FIXME: `with-wrapper-hook' is obsolete
 (defun buffer-substring--filter (beg end &optional delete)
   (with-wrapper-hook filter-buffer-substring-functions (beg end delete)
     (cond
@@ -5670,7 +5671,8 @@
 
 (defun backward-word (&optional arg)
   "Move backward until encountering the beginning of a word.
-With argument ARG, do this that many times."
+With argument ARG, do this that many times.
+If ARG is omitted or nil, move point backward one word."
   (interactive "^p")
   (forward-word (- (or arg 1))))
 

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-08-13 14:09:12 +0000
+++ b/src/ChangeLog     2013-08-13 14:26:39 +0000
@@ -1,5 +1,6 @@
 2013-08-13  Xue Fuqiao  <address@hidden>
 
+       * syntax.c (forward_word):
        * cmds.c (forward_char, backward_char): Mention the optional argument.
 
 2013-08-13  Dmitry Antipov  <address@hidden>

=== modified file 'src/syntax.c'
--- a/src/syntax.c      2013-07-10 16:11:09 +0000
+++ b/src/syntax.c      2013-08-13 14:26:39 +0000
@@ -1464,6 +1464,7 @@
 
 DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p",
        doc: /* Move point forward ARG words (backward if ARG is negative).
+If ARG is omitted or nil, move point forward one word.
 Normally returns t.
 If an edge of the buffer or a field boundary is reached, point is left there
 and the function returns nil.  Field boundaries are not noticed if


reply via email to

[Prev in Thread] Current Thread [Next in Thread]