Function: reb-initialize-buffer
reb-initialize-buffer is a byte-compiled function defined in
re-builder.el.gz.
Signature
(reb-initialize-buffer)
Documentation
Initialize the current buffer as a RE Builder buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/re-builder.el.gz
(defun reb-initialize-buffer ()
"Initialize the current buffer as a RE Builder buffer."
(erase-buffer)
(reb-insert-regexp)
(goto-char (+ 2 (point-min)))
(cond ((reb-lisp-syntax-p)
(reb-lisp-mode))
(t (reb-mode)))
(reb-restart-font-lock)
;; When using `rx' syntax, the initial syntax () is invalid. But
;; don't signal an error in that case.
(ignore-errors
(reb-do-update)))