Function: table--test-cell-list
table--test-cell-list is a byte-compiled function defined in
table.el.gz.
Signature
(table--test-cell-list &optional HORIZONTAL REVERSE FIRST-ONLY PIVOT)
Documentation
For testing table--vertical-cell-list and table--horizontal-cell-list.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/table.el.gz
(defun table--test-cell-list (&optional horizontal reverse first-only pivot)
"For testing `table--vertical-cell-list' and `table--horizontal-cell-list'."
(let* ((current-coordinate (table--get-coordinate))
(cell-list (if horizontal
(table--horizontal-cell-list reverse first-only pivot)
(table--vertical-cell-list reverse first-only pivot)))
(count 0))
(while cell-list
(let* ((cell (if first-only (prog1 cell-list (setq cell-list nil))
(prog1 (car cell-list) (setq cell-list (cdr cell-list)))))
(dig1-str (format "%1d" (prog1 (% count 10) (setq count (1+ count))))))
(goto-char (car cell))
(table-with-cache-buffer
(while (re-search-forward "." nil t)
(replace-match dig1-str nil nil))
(setq table-inhibit-auto-fill-paragraph t))
(table--finish-delayed-tasks)))
(table--goto-coordinate current-coordinate)))