Function: vhdl-hs-minor-mode
vhdl-hs-minor-mode is an interactive and byte-compiled function
defined in vhdl-mode.el.gz.
Signature
(vhdl-hs-minor-mode &optional ARG)
Documentation
Toggle hideshow minor mode and update menu bar.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-hs-minor-mode (&optional arg)
"Toggle hideshow minor mode and update menu bar."
(interactive "P")
(require 'hideshow)
(declare-function hs-hide-all "hideshow" ())
;; check for hideshow version 5.x
(if (not (boundp 'hs-block-start-mdata-select))
(vhdl-warning-when-idle "Install included `hideshow.el' patch first (see INSTALL file)")
;; initialize hideshow
(setq-local hs-block-start-regexp vhdl-hs-start-regexp)
(setq-local hs-c-start-regexp "--\\( \\|$\\)")
(setq-local hs-forward-sexp-function #'vhdl-hs-forward-sexp-func)
(if (featurep 'xemacs) (make-local-hook 'hs-minor-mode-hook))
(if vhdl-hide-all-init
(add-hook 'hs-minor-mode-hook #'hs-hide-all nil t)
(remove-hook 'hs-minor-mode-hook #'hs-hide-all t))
(hs-minor-mode arg)
(force-mode-line-update))) ; hack to update menu bar