aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorXue Fuqiao2013-08-13 22:26:39 +0800
committerXue Fuqiao2013-08-13 22:26:39 +0800
commitf73f4ce69f4b2e8f6c422aca8f8cc36ef72fa725 (patch)
tree772f6c658f53e506fce760c1498345428618b777 /lisp
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 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el4
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ff9f4ff8707..0c8791d8af7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-08-13 Xue Fuqiao <xfq.free@gmail.com>
2
3 * simple.el (backward-word): Mention the optional argument.
4
12013-08-13 Stefan Monnier <monnier@iro.umontreal.ca> 52013-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
3338be copied into other buffers." 3338be 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.
5673With argument ARG, do this that many times." 5674With argument ARG, do this that many times.
5675If 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