From: Xue Fuqiao Date: Wed, 14 Aug 2013 14:02:46 +0000 (+0800) Subject: Refine previous change. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1686^2~245 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d48d97ee4ab07e0c3e8c1a63efcfb707eef1b352;p=emacs.git Refine previous change. --- diff --git a/src/marker.c b/src/marker.c index 2f91bdf9727..d25e7104b57 100644 --- a/src/marker.c +++ b/src/marker.c @@ -536,8 +536,11 @@ set_marker_internal (Lisp_Object marker, Lisp_Object position, DEFUN ("set-marker", Fset_marker, Sset_marker, 2, 3, 0, doc: /* Position MARKER before character number POSITION in BUFFER. If BUFFER is omitted or nil, it defaults to the current buffer. If -POSITION is nil, makes marker point nowhere so it no longer slows down -editing in any buffer. Returns MARKER. */) +POSITION is less than 1, MARKER is moved to the beginning of the +buffer. If POSITION is greater than the size of the buffer, marker is +moved to the end of the buffer. If POSITION is nil, makes marker +point nowhere so it no longer slows down editing in any buffer. +Returns MARKER. */) (Lisp_Object marker, Lisp_Object position, Lisp_Object buffer) { return set_marker_internal (marker, position, buffer, 0);