Function: vhdl-electric-comma

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

Signature

(vhdl-electric-comma COUNT)

Documentation

,, --> <=

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-electric-comma (count) "`,,' --> ` <= '"
  (interactive "p")
  (if (and vhdl-stutter-mode (= count 1) (not (vhdl-in-literal)))
      (cond ((= (preceding-char) vhdl-last-input-event)
	     (progn (delete-char -1)
		    (unless (eq (preceding-char) ? ) (insert " "))
		    (insert "<= ")))
	    (t (insert-char ?\, 1)))
    (self-insert-command count)))