* src/marker.c (set_marker): Reformat documentation.

This commit is contained in:
Xue Fuqiao 2013-08-14 21:58:25 +08:00
parent 4ce82fb8d9
commit 7510a061cb
4 changed files with 11 additions and 4 deletions

View file

@ -279,6 +279,8 @@ This function returns the position that @var{marker} points to, or
This function returns the buffer that @var{marker} points into, or
@code{nil} if it points nowhere.
@c FIXME: The `buffer' argument of `set-marker' already defaults to
@c the current buffer, why use `(current-buffer)' explicitly here?
@example
@group
(setq m (make-marker))
@ -384,6 +386,7 @@ This is another name for @code{set-marker}.
@node The Mark
@section The Mark
@cindex mark, the
@c @cindex the mark?
@cindex mark ring
Each buffer has a special marker, which is designated @dfn{the

View file

@ -805,7 +805,7 @@ thousands of times in the Lisp sources of Emacs.
buffer, use @code{save-current-buffer} or @code{with-current-buffer}
instead (@pxref{Current Buffer}). If you need to save or restore
window configurations, see the forms described in @ref{Window
Configurations} and in @ref{Frame Configurations}.
Configurations} and in @ref{Frame Configurations}. @c frameset?
@defspec save-excursion body@dots{}
@cindex mark excursion

View file

@ -6,6 +6,10 @@
* decompress.c (unwind_decompress): Always restore point.
2013-08-14 Xue Fuqiao <xfq.free@gmail.com>
* marker.c (set_marker): Reformat documentation.
2013-08-14 Paul Eggert <eggert@cs.ucla.edu>
* xdisp.c (cursor_type_changed): Now static.

View file

@ -534,9 +534,9 @@ 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,
which defaults to the current buffer. If POSITION is nil,
makes marker point nowhere so it no longer slows down
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. */)
(Lisp_Object marker, Lisp_Object position, Lisp_Object buffer)
{