Function: verilog-insert-1

verilog-insert-1 is a byte-compiled function defined in verilog-mode.el.gz.

Signature

(verilog-insert-1 FMT MAX)

Documentation

Use format string FMT to insert integers 0 to MAX - 1.

Inserts one integer per line, at the current column. Stops early if it reaches the end of the buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-insert-1 (fmt max)
  "Use format string FMT to insert integers 0 to MAX - 1.
Inserts one integer per line, at the current column.  Stops early
if it reaches the end of the buffer."
  (let ((col (current-column))
        (n 0))
    (save-excursion
      (while (< n max)
        (insert (format fmt n))
        (forward-line 1)
        ;; Note that this function does not bother to check for lines
        ;; shorter than col.
        (if (eobp)
            (setq n max)
          (setq n (1+ n))
          (move-to-column col))))))