Function: table--cell-list-to-coord-list

table--cell-list-to-coord-list is a byte-compiled function defined in table.el.gz.

Signature

(table--cell-list-to-coord-list CELL-LIST)

Documentation

Create and return a coordinate list that corresponds to CELL-LIST.

CELL-LIST is a list of location pairs (lu . rb), where each pair represents a cell in the list. lu is the left upper location and rb is the right bottom location of a cell. The return value is a list of coordinate pairs (lu-coord . rb-coord), where lu-coord is the left upper coordinate and rb-coord is the right bottom coordinate of a cell.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/table.el.gz
(defun table--cell-list-to-coord-list (cell-list)
  "Create and return a coordinate list that corresponds to CELL-LIST.
CELL-LIST is a list of location pairs (lu . rb), where each pair
represents a cell in the list.  lu is the left upper location and rb
is the right bottom location of a cell.  The return value is a list of
coordinate pairs (lu-coord . rb-coord), where lu-coord is the left
upper coordinate and rb-coord is the right bottom coordinate of a
cell."
  (let ((coord-list))
    (while cell-list
      (let ((cell (prog1 (car cell-list) (setq cell-list (cdr cell-list)))))
	(setq coord-list
	      (cons (table--cell-to-coord cell) coord-list))))
    (nreverse coord-list)))