HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adb63af
)
(count_markers): New function.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 13 Apr 2002 17:47:20 +0000
(17:47 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 13 Apr 2002 17:47:20 +0000
(17:47 +0000)
src/marker.c
patch
|
blob
|
blame
|
history
diff --git
a/src/marker.c
b/src/marker.c
index
9d24fb5
..
8b96414
100644
(file)
--- a/
src/marker.c
+++ b/
src/marker.c
@@
-888,6
+888,23
@@
DEFUN ("buffer-has-markers-at", Fbuffer_has_markers_at, Sbuffer_has_markers_at,
return Qnil;
}
+
+/* For debugging -- count the markers in buffer BUF. */
+
+int
+count_markers (buf)
+ struct buffer *buf;
+{
+ int total = 0;
+ Lisp_Object tail;
+
+ for (tail = BUF_MARKERS (buf);
+ !NILP (tail);
+ tail = XMARKER (tail)->chain)
+ total++;
+
+ return total;
+}
\f
void
syms_of_marker ()