Lines Matching defs:regexp
60 (defcustom find-function-regexp
71 "The regexp used by `find-function' to search for a function definition.
77 :type 'regexp
81 (defcustom find-variable-regexp
87 "The regexp used by `find-variable' to search for a variable definition.
93 :type 'regexp
97 (defcustom find-face-regexp
99 "The regexp used by `find-face' to search for a face definition.
104 :type 'regexp
108 (defvar find-function-regexp-alist
109 '((nil . find-function-regexp)
110 (defvar . find-variable-regexp)
111 (defface . find-face-regexp))
112 "Alist mapping definition types into regexp variables.
113 Each regexp variable's value should actually be a format string
114 to be used to substitute the desired symbol name into the regexp.")
115 (put 'find-function-regexp-alist 'risky-local-variable t)
184 (regexp-quote (symbol-name fun-or-var))
187 (regexp-quote (subr-name fun-or-var))
213 and it is interpreted via `find-function-regexp-alist'.
226 (regexp-symbol (cdr (assq type find-function-regexp-alist))))
228 (let ((regexp (format (symbol-value regexp-symbol)
234 (regexp-quote (symbol-name symbol)))))
238 (if (or (re-search-forward regexp nil t)
239 ;; `regexp' matches definitions using known forms like
242 ;; if `regexp' can't find the definition, we look for
249 (regexp-quote (symbol-name symbol))