Variable: *lisp-def-regexp*

*lisp-def-regexp* is a variable defined in completion.el.gz.

Value

"\n(\\(\\w*:\\)?def\\(\\w\\|\\s_\\)*\\s +(*"

Documentation

A regexp that searches for Lisp definition form.

Source Code

;; Defined in /usr/src/emacs/lisp/completion.el.gz
;;-----------------------------------------------
;; Lisp File completion parsing
;;-----------------------------------------------
;;   This merely looks for phrases beginning with (def.... or
;; (package:def ... and takes the next word.
;;
;; We tried using forward-lines and explicit searches but the regexp technique
;; was faster.  (About 100K characters per second)
;;
(defconst *lisp-def-regexp*
  "\n(\\(\\w*:\\)?def\\(\\w\\|\\s_\\)*\\s +(*"
  "A regexp that searches for Lisp definition form.")