Function: verilog-auto-arg-ports
verilog-auto-arg-ports is a byte-compiled function defined in
verilog-mode.el.gz.
Signature
(verilog-auto-arg-ports SIGS MESSAGE INDENT-PT)
Documentation
Print a list of ports for AUTOARG.
Takes SIGS list, adds MESSAGE to front and inserts each at INDENT-PT.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
;;; Auto creation:
;;
(defun verilog-auto-arg-ports (sigs message indent-pt)
"Print a list of ports for AUTOARG.
Takes SIGS list, adds MESSAGE to front and inserts each at INDENT-PT."
(when sigs
(when verilog-auto-arg-sort
(setq sigs (sort (copy-alist sigs) #'verilog-signals-sort-compare)))
(insert "\n")
(indent-to indent-pt)
(insert message)
(insert "\n")
(let ((space ""))
(indent-to indent-pt)
(while sigs
(cond ((equal verilog-auto-arg-format 'single)
(insert space)
(indent-to indent-pt)
(setq space "\n"))
;; verilog-auto-arg-format 'packed
((> (+ 2 (current-column) (length (verilog-sig-name (car sigs)))) fill-column)
(insert "\n")
(indent-to indent-pt)
(setq space " "))
(t
(insert space)
(setq space " ")))
(insert (verilog-sig-name (car sigs)) ",")
(setq sigs (cdr sigs))))))