Function: reb-update-regexp
reb-update-regexp is a byte-compiled function defined in
re-builder.el.gz.
Signature
(reb-update-regexp)
Documentation
Update the regexp for the target buffer.
Return t if the (cooked) expression changed.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/re-builder.el.gz
(defun reb-update-regexp ()
"Update the regexp for the target buffer.
Return t if the (cooked) expression changed."
(let* ((re-src (reb-read-regexp))
(re (reb-cook-regexp re-src)))
(with-current-buffer reb-target-buffer
(let ((oldre reb-regexp))
(prog1
(not (string= oldre re))
(setq reb-regexp re)
;; Update the source re for the Lisp formats.
(setq reb-regexp-src re-src))))))