aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2002-04-13 17:47:20 +0000
committerRichard M. Stallman2002-04-13 17:47:20 +0000
commit59d360666731e862157766646d732b73f19295d2 (patch)
tree03d3d6771cfec77bcde6620568b1a4273f65741e /src
parentadb63af12a7ad22e19b6d3ae45ddff768a5e86d1 (diff)
downloademacs-59d360666731e862157766646d732b73f19295d2.tar.gz
emacs-59d360666731e862157766646d732b73f19295d2.zip
(count_markers): New function.
Diffstat (limited to 'src')
-rw-r--r--src/marker.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/marker.c b/src/marker.c
index 9d24fb5ff8e..8b964142034 100644
--- 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,
888 888
889 return Qnil; 889 return Qnil;
890} 890}
891
892/* For debugging -- count the markers in buffer BUF. */
893
894int
895count_markers (buf)
896 struct buffer *buf;
897{
898 int total = 0;
899 Lisp_Object tail;
900
901 for (tail = BUF_MARKERS (buf);
902 !NILP (tail);
903 tail = XMARKER (tail)->chain)
904 total++;
905
906 return total;
907}
891 908
892void 909void
893syms_of_marker () 910syms_of_marker ()