diff options
| author | Richard M. Stallman | 2002-04-13 17:47:20 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-04-13 17:47:20 +0000 |
| commit | 59d360666731e862157766646d732b73f19295d2 (patch) | |
| tree | 03d3d6771cfec77bcde6620568b1a4273f65741e /src | |
| parent | adb63af12a7ad22e19b6d3ae45ddff768a5e86d1 (diff) | |
| download | emacs-59d360666731e862157766646d732b73f19295d2.tar.gz emacs-59d360666731e862157766646d732b73f19295d2.zip | |
(count_markers): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/marker.c | 17 |
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 | |||
| 894 | int | ||
| 895 | count_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 | ||
| 892 | void | 909 | void |
| 893 | syms_of_marker () | 910 | syms_of_marker () |