Lines Matching defs:regexp
243 (defvar grep-regexp-alist
262 "Regexp used to match grep hits. See `compilation-error-regexp-alist'.")
286 ;; remove match from grep-regexp-alist before fontifying
342 ;; History of lgrep and rgrep regexp and files args.
343 (defvar grep-regexp-history nil)
397 (concat (regexp-quote hello-file)
473 ;; This a regexp to match single shell arguments.
491 (wildcard-to-regexp
499 ;; In case wildcard-to-regexp gets an error
512 (set (make-local-variable 'compilation-error-regexp-alist)
513 grep-regexp-alist)
586 '(("<C>" . (and cf (isearch-no-upper-case-p regexp t) "-i"))
591 ("<R>" . (shell-quote-argument (or regexp ""))))
596 (defun grep-expand-template (template &optional regexp files dir excl)
611 (defun grep-read-regexp ()
612 "Read regexp arg for interactive grep."
618 nil 'grep-regexp-history default)))
620 (defun grep-read-files (regexp)
633 (if (string-match (wildcard-to-regexp (cdr alias)) fn)
643 (concat "Search for \"" regexp
653 (defun lgrep (regexp &optional files dir)
679 (t (let* ((regexp (grep-read-regexp))
680 (files (grep-read-files regexp))
683 (list regexp files dir))))))
684 (when (and (stringp regexp) (> (length regexp) 0))
685 (let ((command regexp))
692 regexp
713 (defun rgrep (regexp &optional files dir)
739 (t (let* ((regexp (grep-read-regexp))
740 (files (grep-read-files regexp))
743 (list regexp files dir))))))
744 (when (and (stringp regexp) (> (length regexp) 0))
746 (if (not (string= regexp grep-find-command))
747 (compilation-start regexp 'grep-mode))
751 regexp