Function: vhdl-electric-period

vhdl-electric-period is an interactive and byte-compiled function defined in vhdl-mode.el.gz.

Signature

(vhdl-electric-period COUNT)

Documentation

.. --> =>

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-electric-period (count) "`..' --> ` => '"
  (interactive "p")
  (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal)))
      ;; We use this-command-keys below to account for translation of
      ;; kp-decimal into '.'; vhdl-last-input-event doesn't catch
      ;; that.
      (cond ((eq (preceding-char) (aref (this-command-keys) 0))
	     (progn (delete-char -1)
		    (unless (eq (preceding-char) ? ) (insert " "))
		    (insert "=> ")))
	    (t (insert-char ?\. 1)))
    (self-insert-command count)))