diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/marker.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/marker.c b/src/marker.c index 9727586f424..0ed1e55ddc9 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -759,23 +759,6 @@ If TYPE is nil, it means the marker stays behind when you insert text at it. */ | |||
| 759 | return type; | 759 | return type; |
| 760 | } | 760 | } |
| 761 | 761 | ||
| 762 | DEFUN ("buffer-has-markers-at", Fbuffer_has_markers_at, Sbuffer_has_markers_at, | ||
| 763 | 1, 1, 0, | ||
| 764 | doc: /* Return t if there are markers pointing at POSITION in the current buffer. */) | ||
| 765 | (Lisp_Object position) | ||
| 766 | { | ||
| 767 | register struct Lisp_Marker *tail; | ||
| 768 | register ptrdiff_t charpos; | ||
| 769 | |||
| 770 | charpos = clip_to_bounds (BEG, XFIXNUM (position), Z); | ||
| 771 | |||
| 772 | for (tail = BUF_MARKERS (current_buffer); tail; tail = tail->next) | ||
| 773 | if (tail->charpos == charpos) | ||
| 774 | return Qt; | ||
| 775 | |||
| 776 | return Qnil; | ||
| 777 | } | ||
| 778 | |||
| 779 | #ifdef MARKER_DEBUG | 762 | #ifdef MARKER_DEBUG |
| 780 | 763 | ||
| 781 | /* For debugging -- count the markers in buffer BUF. */ | 764 | /* For debugging -- count the markers in buffer BUF. */ |
| @@ -821,5 +804,4 @@ syms_of_marker (void) | |||
| 821 | defsubr (&Scopy_marker); | 804 | defsubr (&Scopy_marker); |
| 822 | defsubr (&Smarker_insertion_type); | 805 | defsubr (&Smarker_insertion_type); |
| 823 | defsubr (&Sset_marker_insertion_type); | 806 | defsubr (&Sset_marker_insertion_type); |
| 824 | defsubr (&Sbuffer_has_markers_at); | ||
| 825 | } | 807 | } |