Function: ad-read-regexp
ad-read-regexp is a byte-compiled function defined in advice.el.gz.
Signature
(ad-read-regexp &optional PROMPT)
Documentation
Read a regular expression from the minibuffer.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defun ad-read-regexp (&optional prompt)
"Read a regular expression from the minibuffer."
(let ((regexp (read-from-minibuffer
(format-prompt (or prompt "Regular expression")
(and (not (equal ad-last-regexp ""))
ad-last-regexp)))))
(setq ad-last-regexp
(if (equal regexp "") ad-last-regexp regexp))))