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
    (unless (assoc 'vhdl-mode hs-special-modes-alist)
      (setq hs-special-modes-alist
	    (cons (list 'vhdl-mode vhdl-hs-start-regexp nil "--\\( \\|$\\)"
			'vhdl-hs-forward-sexp-func nil)
		  hs-special-modes-alist)))
    (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