[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r101220: * src/marker.c (Fcopy_marker
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r101220: * src/marker.c (Fcopy_marker): Make the first arg optional. |
Date: |
Mon, 30 Aug 2010 14:47:49 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 101220
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Mon 2010-08-30 14:47:49 +0200
message:
* src/marker.c (Fcopy_marker): Make the first arg optional.
modified:
src/ChangeLog
src/marker.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-08-30 00:32:29 +0000
+++ b/src/ChangeLog 2010-08-30 12:47:49 +0000
@@ -1,3 +1,7 @@
+2010-08-30 Stefan Monnier <address@hidden>
+
+ * marker.c (Fcopy_marker): Make the first arg optional.
+
2010-08-30 Kenichi Handa <address@hidden>
* composite.c (composition_update_it): Fix computing of
=== modified file 'src/marker.c'
--- a/src/marker.c 2010-07-08 21:25:08 +0000
+++ b/src/marker.c 2010-08-30 12:47:49 +0000
@@ -806,16 +806,18 @@
return i;
}
-DEFUN ("copy-marker", Fcopy_marker, Scopy_marker, 1, 2, 0,
+DEFUN ("copy-marker", Fcopy_marker, Scopy_marker, 0, 2, 0,
doc: /* Return a new marker pointing at the same place as MARKER.
If argument is a number, makes a new marker pointing
at that position in the current buffer.
+If MARKER is not specified, the new marker does not point anywhere.
The optional argument TYPE specifies the insertion type of the new marker;
see `marker-insertion-type'. */)
(register Lisp_Object marker, Lisp_Object type)
{
register Lisp_Object new;
+ if (!NILP (marker))
CHECK_TYPE (INTEGERP (marker) || MARKERP (marker), Qinteger_or_marker_p,
marker);
new = Fmake_marker ();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r101220: * src/marker.c (Fcopy_marker): Make the first arg optional.,
Stefan Monnier <=