Function: looking-at-p

looking-at-p is a byte-compiled function defined in subr.el.gz.

Signature

(looking-at-p REGEXP)

Documentation

Same as looking-at except this function does not change the match data.

Other relevant functions are documented in the regexp group.

View in manual

Probably introduced at or before Emacs version 23.1.

Shortdoc

;; regexp
(looking-at-p "f[0-9]")
    e.g. => t

Aliases

org-looking-at-p (obsolete since 9.0)

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defsubst looking-at-p (regexp)
  "\
Same as `looking-at' except this function does not change the match data."
  (declare (side-effect-free t))
  (looking-at regexp t))