Function: ses-export-tab
ses-export-tab is a byte-compiled function defined in ses.el.gz.
Signature
(ses-export-tab WANT-FORMULAS)
Documentation
Export the current range with tabs between columns and newlines between rows.
Result is placed in kill ring. The export is values unless WANT-FORMULAS is non-nil. Newlines and tabs in the export text are escaped.
Source Code
;; Defined in /usr/src/emacs/lisp/ses.el.gz
(defun ses-export-tab (want-formulas)
"Export the current range with tabs between columns and newlines between rows.
Result is placed in kill ring. The export is values unless WANT-FORMULAS
is non-nil. Newlines and tabs in the export text are escaped."
(ses-check-curcell 'needrange)
(let ((print-escape-newlines t)
result item)
(ses-dorange ses--curcell
(setq item (if want-formulas
(ses-cell-formula row col)
(ses-cell-value row col)))
(if (eq (car-safe item) 'ses-safe-formula)
;;Hide our deferred safety-check marker
(setq item (cadr item)))
(if (or (not item) (eq item '*skip*))
(setq item ""))
(when (eq (car-safe item) 'quote)
(push "'" result)
(setq item (cadr item)))
(setq item (ses-prin1 item))
(setq item (string-replace "\t" "\\t" item))
(push item result)
(cond
((< col maxcol)
(push "\t" result))
((< row maxrow)
(push "\n" result))))
(setq result (apply #'concat (nreverse result)))
(kill-new result)))