]> code.delx.au - gnu-emacs/commitdiff
Refine previous change.
authorXue Fuqiao <xfq.free@gmail.com>
Wed, 14 Aug 2013 14:02:46 +0000 (22:02 +0800)
committerXue Fuqiao <xfq.free@gmail.com>
Wed, 14 Aug 2013 14:02:46 +0000 (22:02 +0800)
src/marker.c

index 2f91bdf9727803f7d6a74e1548afa2e3e4b0332f..d25e7104b57c656f2fd43f693f6d1b326ed83db9 100644 (file)
@@ -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);