Function: buffer-has-markers-at

buffer-has-markers-at is a function defined in marker.c.

This function is obsolete since 24.3.

Signature

(buffer-has-markers-at POSITION)

Documentation

Return t if there are markers pointing at POSITION in the current buffer.

Probably introduced at or before Emacs version 24.3.

Source Code

// Defined in /usr/src/emacs/src/marker.c
{
  register struct Lisp_Marker *tail;
  register ptrdiff_t charpos;

  charpos = clip_to_bounds (BEG, XFIXNUM (position), Z);

  for (tail = BUF_MARKERS (current_buffer); tail; tail = tail->next)
    if (tail->charpos == charpos)
      return Qt;

  return Qnil;
}