Function: verilog-read-auto-lisp
verilog-read-auto-lisp is a byte-compiled function defined in
verilog-mode.el.gz.
Signature
(verilog-read-auto-lisp START END)
Documentation
Look for and evaluate an AUTO_LISP between START and END.
Must call verilog-read-auto-lisp-present before this function.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-read-auto-lisp (start end)
"Look for and evaluate an AUTO_LISP between START and END.
Must call `verilog-read-auto-lisp-present' before this function."
;; This function is expensive for large buffers, so we cache if any AUTO_LISP exists
(when verilog-cache-has-lisp
(save-excursion
(goto-char start)
(while (re-search-forward "\\<AUTO_LISP(" end t)
(backward-char)
(let* ((beg-pt (prog1 (point)
(verilog-forward-sexp-cmt 1))) ; Closing paren
(end-pt (point))
(verilog-in-hooks t))
(eval-region beg-pt end-pt nil))))))