Function: ses-adjust-print-width
ses-adjust-print-width is a byte-compiled function defined in
ses.el.gz.
Signature
(ses-adjust-print-width COL CHANGE)
Documentation
Insert CHANGE spaces in front of column COL, or at end of line if
COL=NUMCOLS. Deletes characters if CHANGE < 0. Caller should bind
inhibit-quit to t.
Source Code
;; Defined in /usr/src/emacs/lisp/ses.el.gz
(defun ses-adjust-print-width (col change)
"Insert CHANGE spaces in front of column COL, or at end of line if
COL=NUMCOLS. Deletes characters if CHANGE < 0. Caller should bind
`inhibit-quit' to t."
(let ((inhibit-read-only t)
(blank (if (> change 0) (make-string change ?\s)))
(at-end (= col ses--numcols)))
(ses-set-with-undo 'ses--linewidth (+ ses--linewidth change))
;; ses-set-with-undo always returns t for strings.
(1value (ses-set-with-undo 'ses--blank-line
(concat (make-string ses--linewidth ?\s) "\n")))
(dotimes (row ses--numrows)
(ses-goto-print row col)
(when at-end
;; Insert new columns before newline.
(backward-char 1))
(if blank
(insert blank)
(delete-char (- change))))))