Function: ses-column-widths

ses-column-widths is a macro defined in ses.el.gz.

Signature

(ses-column-widths WIDTHS)

Documentation

Load the vector of column widths from the spreadsheet file.

This is a macro to prevent propagate-on-load viruses.

Source Code

;; Defined in /usr/src/emacs/lisp/ses.el.gz
(defmacro ses-column-widths (widths)
  "Load the vector of column widths from the spreadsheet file.
This is a macro to prevent propagate-on-load viruses."
  (or (and (vectorp widths) (= (length widths) ses--numcols))
      (error "Bad column-width vector"))
  ;;To save time later, we also calculate the total width of each line in the
  ;;print area (excluding the terminating newline)
  (setq ses--col-widths widths
	ses--linewidth  (apply #'+ -1 (mapcar #'1+ widths))
	ses--blank-line (concat (make-string ses--linewidth ?\s) "\n"))
  t)