Function: looking-at

looking-at is a function defined in search.c.

Signature

(looking-at REGEXP &optional INHIBIT-MODIFY)

Documentation

Return t if text after point matches regular expression REGEXP.

By default, this function modifies the match data that match-beginning, match-end and match-data access. If INHIBIT-MODIFY is non-nil, don't modify the match data.

View in manual

Probably introduced at or before Emacs version 19.29.

Source Code

// Defined in /usr/src/emacs/src/search.c
{
  return looking_at_1 (regexp, 0, NILP (inhibit_modify));
}