Function: vhdl-speedbar-find-file
vhdl-speedbar-find-file is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-speedbar-find-file TEXT TOKEN INDENT)
Documentation
When user clicks on TEXT, load file with name and position in TOKEN.
Jump to the design unit if vhdl-speedbar-jump-to-unit is t or if the file
is already shown in a buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-speedbar-find-file (_text token _indent)
"When user clicks on TEXT, load file with name and position in TOKEN.
Jump to the design unit if `vhdl-speedbar-jump-to-unit' is t or if the file
is already shown in a buffer."
(if (not (car token))
(error "ERROR: File cannot be found")
(let ((buffer (get-file-buffer (car token))))
(speedbar-find-file-in-frame (car token))
(when (or vhdl-speedbar-jump-to-unit buffer)
(goto-char (point-min))
(forward-line (1- (cdr token)))
(recenter))
(vhdl-speedbar-update-current-unit t t)
(speedbar-set-timer dframe-update-speed)
(dframe-maybee-jump-to-attached-frame))))