Function: vhdl-prepare-search-2

vhdl-prepare-search-2 is a macro defined in vhdl-mode.el.gz.

Signature

(vhdl-prepare-search-2 &rest BODY)

Documentation

Enable case insensitive search, switch to syntax table that includes _, arrange to ignore intangible overlays, then execute BODY, and finally restore the old environment. Used for consistent searching.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defmacro vhdl-prepare-search-2 (&rest body)
  "Enable case insensitive search, switch to syntax table that includes `_',
arrange to ignore `intangible' overlays, then execute BODY, and finally restore
the old environment.  Used for consistent searching."
  (declare (debug t))
  `(let ((case-fold-search t)		; case insensitive search
         (inhibit-point-motion-hooks t))
     ;; use extended syntax table
     (with-syntax-table vhdl-mode-ext-syntax-table
       ;; execute BODY safely
       (progn ,@body))))