Function: vhdl-minibuffer-tab

vhdl-minibuffer-tab is an interactive and byte-compiled function defined in vhdl-mode.el.gz.

Signature

(vhdl-minibuffer-tab &optional ARG)

Documentation

If preceding character is part of a word or a paren then hippie-expand, else insert tab (used for word completion in VHDL minibuffer).

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-minibuffer-tab (&optional arg)
  "If preceding character is part of a word or a paren then hippie-expand,
else insert tab (used for word completion in VHDL minibuffer)."
  (interactive "P")
  (cond
   ;; expand word
   ((= (char-syntax (preceding-char)) ?w)
    (let ((case-fold-search (not vhdl-word-completion-case-sensitive))
	  (case-replace nil)
	  (hippie-expand-only-buffers
	   (or (and (boundp 'hippie-expand-only-buffers)
		    hippie-expand-only-buffers)
	       '(vhdl-mode))))
      (vhdl-expand-abbrev arg)))
   ;; expand parenthesis
   ((or (= (preceding-char) ?\() (= (preceding-char) ?\)))
    (let ((case-fold-search (not vhdl-word-completion-case-sensitive))
	  (case-replace nil))
      (vhdl-expand-paren arg)))
   ;; insert tab
   (t (insert-tab))))