Function: vhdl-comment-insert-inline

vhdl-comment-insert-inline is a byte-compiled function defined in vhdl-mode.el.gz.

Signature

(vhdl-comment-insert-inline &optional STRING ALWAYS-INSERT)

Documentation

Insert inline comment.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-comment-insert-inline (&optional string always-insert)
  "Insert inline comment."
  (when (or (and string (or vhdl-self-insert-comments always-insert))
	    (and (not string) vhdl-prompt-for-comments))
    (let ((position (point)))
      (insert "  ")
      (indent-to comment-column)
      (insert "-- ")
      (if (not (or (and string (progn (insert string) t))
		   (vhdl-template-field "[comment]" nil t)))
	  (delete-region position (point))
	(while (= (preceding-char) ?\ ) (delete-char -1))))))