Function: vhdl-speedbar-check-unit
vhdl-speedbar-check-unit is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-speedbar-check-unit DESIGN-UNIT)
Documentation
Check whether design unit under cursor corresponds to DESIGN-UNIT (or its expansion function).
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-speedbar-check-unit (design-unit)
"Check whether design unit under cursor corresponds to DESIGN-UNIT (or its
expansion function)."
(save-excursion
(speedbar-position-cursor-on-line)
(cond ((eq design-unit 'entity)
(memq (get-text-property (match-end 0) 'face)
'(vhdl-speedbar-entity-face
vhdl-speedbar-entity-selected-face)))
((eq design-unit 'architecture)
(memq (get-text-property (match-end 0) 'face)
'(vhdl-speedbar-architecture-face
vhdl-speedbar-architecture-selected-face)))
((eq design-unit 'subprogram)
(eq (get-text-property (match-end 0) 'face)
'vhdl-speedbar-subprogram-face))
(t nil))))