Lines Matching defs:regexp
30 (defvar comint-prompt-regexp)
299 (defun tooltip-process-prompt-regexp (process)
300 "Return regexp matching the prompt of PROCESS at the end of a string.
301 The prompt is taken from the value of `comint-prompt-regexp' in
303 (let ((prompt-regexp (save-excursion
305 comint-prompt-regexp)))
308 (if (= (aref prompt-regexp 0) ?^)
309 (setq prompt-regexp (substring prompt-regexp 1))
310 (setq prompt-regexp "\\*"))
311 (concat "\n*" prompt-regexp "$")))
315 (let ((prompt-regexp (tooltip-process-prompt-regexp process)))
317 (when (string-match prompt-regexp output)