Mercurial > hg > xemacs-beta
comparison src/marker.c @ 424:11054d720c21 r21-2-20
Import from CVS: tag r21-2-20
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:26:11 +0200 |
parents | 41dbb7a9d5f2 |
children |
comparison
equal
deleted
inserted
replaced
423:28d9c139be4c | 424:11054d720c21 |
---|---|
34 #include "lisp.h" | 34 #include "lisp.h" |
35 | 35 |
36 #include "buffer.h" | 36 #include "buffer.h" |
37 | 37 |
38 static Lisp_Object | 38 static Lisp_Object |
39 mark_marker (Lisp_Object obj, void (*markobj) (Lisp_Object)) | 39 mark_marker (Lisp_Object obj) |
40 { | 40 { |
41 struct Lisp_Marker *marker = XMARKER (obj); | 41 struct Lisp_Marker *marker = XMARKER (obj); |
42 Lisp_Object buf; | 42 Lisp_Object buf; |
43 /* DO NOT mark through the marker's chain. | 43 /* DO NOT mark through the marker's chain. |
44 The buffer's markers chain does not preserve markers from gc; | 44 The buffer's markers chain does not preserve markers from gc; |
64 write_c_string (GETTEXT ("#<marker "), printcharfun); | 64 write_c_string (GETTEXT ("#<marker "), printcharfun); |
65 if (!marker->buffer) | 65 if (!marker->buffer) |
66 write_c_string (GETTEXT ("in no buffer"), printcharfun); | 66 write_c_string (GETTEXT ("in no buffer"), printcharfun); |
67 else | 67 else |
68 { | 68 { |
69 sprintf (buf, "at %d in ", marker_position (obj)); | 69 sprintf (buf, "at %ld in ", (long) marker_position (obj)); |
70 write_c_string (buf, printcharfun); | 70 write_c_string (buf, printcharfun); |
71 print_internal (marker->buffer->name, printcharfun, 0); | 71 print_internal (marker->buffer->name, printcharfun, 0); |
72 } | 72 } |
73 sprintf (buf, " 0x%lx>", (long) marker); | 73 sprintf (buf, " 0x%lx>", (long) marker); |
74 write_c_string (buf, printcharfun); | 74 write_c_string (buf, printcharfun); |