aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2013-08-14 16:07:18 +0200
committerJoakim Verona2013-08-14 16:07:18 +0200
commitef7cb56e57e53af78783a85df167f943bd5fe039 (patch)
tree8f3bfe3c46095a6c4b0c3e674cb3438ab060862c
parent55497105a66ffe094014399687a18153619f08ed (diff)
parentd48d97ee4ab07e0c3e8c1a63efcfb707eef1b352 (diff)
downloademacs-ef7cb56e57e53af78783a85df167f943bd5fe039.tar.gz
emacs-ef7cb56e57e53af78783a85df167f943bd5fe039.zip
merge from trunk
-rw-r--r--doc/lispref/markers.texi3
-rw-r--r--doc/lispref/positions.texi2
-rw-r--r--src/ChangeLog4
-rw-r--r--src/marker.c11
4 files changed, 15 insertions, 5 deletions
diff --git a/doc/lispref/markers.texi b/doc/lispref/markers.texi
index cae14ab9a78..05c3fc56fd4 100644
--- a/doc/lispref/markers.texi
+++ b/doc/lispref/markers.texi
@@ -279,6 +279,8 @@ This function returns the position that @var{marker} points to, or
279This function returns the buffer that @var{marker} points into, or 279This function returns the buffer that @var{marker} points into, or
280@code{nil} if it points nowhere. 280@code{nil} if it points nowhere.
281 281
282@c FIXME: The `buffer' argument of `set-marker' already defaults to
283@c the current buffer, why use `(current-buffer)' explicitly here?
282@example 284@example
283@group 285@group
284(setq m (make-marker)) 286(setq m (make-marker))
@@ -384,6 +386,7 @@ This is another name for @code{set-marker}.
384@node The Mark 386@node The Mark
385@section The Mark 387@section The Mark
386@cindex mark, the 388@cindex mark, the
389@c @cindex the mark?
387@cindex mark ring 390@cindex mark ring
388 391
389 Each buffer has a special marker, which is designated @dfn{the 392 Each buffer has a special marker, which is designated @dfn{the
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi
index 5cb1a851a5b..8a883061b93 100644
--- a/doc/lispref/positions.texi
+++ b/doc/lispref/positions.texi
@@ -805,7 +805,7 @@ thousands of times in the Lisp sources of Emacs.
805buffer, use @code{save-current-buffer} or @code{with-current-buffer} 805buffer, use @code{save-current-buffer} or @code{with-current-buffer}
806instead (@pxref{Current Buffer}). If you need to save or restore 806instead (@pxref{Current Buffer}). If you need to save or restore
807window configurations, see the forms described in @ref{Window 807window configurations, see the forms described in @ref{Window
808Configurations} and in @ref{Frame Configurations}. 808Configurations} and in @ref{Frame Configurations}. @c frameset?
809 809
810@defspec save-excursion body@dots{} 810@defspec save-excursion body@dots{}
811@cindex mark excursion 811@cindex mark excursion
diff --git a/src/ChangeLog b/src/ChangeLog
index 548ae5ab2c0..8a3186b85f2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -6,6 +6,10 @@
6 6
7 * decompress.c (unwind_decompress): Always restore point. 7 * decompress.c (unwind_decompress): Always restore point.
8 8
92013-08-14 Xue Fuqiao <xfq.free@gmail.com>
10
11 * marker.c (set_marker): Reformat documentation.
12
92013-08-14 Paul Eggert <eggert@cs.ucla.edu> 132013-08-14 Paul Eggert <eggert@cs.ucla.edu>
10 14
11 * xdisp.c (cursor_type_changed): Now static. 15 * xdisp.c (cursor_type_changed): Now static.
diff --git a/src/marker.c b/src/marker.c
index 6c50def51a3..d25e7104b57 100644
--- a/src/marker.c
+++ b/src/marker.c
@@ -534,10 +534,13 @@ set_marker_internal (Lisp_Object marker, Lisp_Object position,
534} 534}
535 535
536DEFUN ("set-marker", Fset_marker, Sset_marker, 2, 3, 0, 536DEFUN ("set-marker", Fset_marker, Sset_marker, 2, 3, 0,
537 doc: /* Position MARKER before character number POSITION in BUFFER, 537 doc: /* Position MARKER before character number POSITION in BUFFER.
538which defaults to the current buffer. If POSITION is nil, 538If BUFFER is omitted or nil, it defaults to the current buffer. If
539makes marker point nowhere so it no longer slows down 539POSITION is less than 1, MARKER is moved to the beginning of the
540editing in any buffer. Returns MARKER. */) 540buffer. If POSITION is greater than the size of the buffer, marker is
541moved to the end of the buffer. If POSITION is nil, makes marker
542point nowhere so it no longer slows down editing in any buffer.
543Returns MARKER. */)
541 (Lisp_Object marker, Lisp_Object position, Lisp_Object buffer) 544 (Lisp_Object marker, Lisp_Object position, Lisp_Object buffer)
542{ 545{
543 return set_marker_internal (marker, position, buffer, 0); 546 return set_marker_internal (marker, position, buffer, 0);