Function: desktop-value-to-string
desktop-value-to-string is a byte-compiled function defined in
desktop.el.gz.
Signature
(desktop-value-to-string VALUE)
Documentation
Convert VALUE to a string that when read evaluates to the same value.
Not all types of values are supported.
Source Code
;; Defined in /usr/src/emacs/lisp/desktop.el.gz
;; ----------------------------------------------------------------------------
(defun desktop-value-to-string (value)
"Convert VALUE to a string that when read evaluates to the same value.
Not all types of values are supported."
(let* ((print-escape-newlines t)
(print-length nil)
(print-level nil)
(float-output-format nil)
(quote.sexp (desktop--v2s value))
(quote (car quote.sexp))
(print-quoted t)
(txt (prin1-to-string (cdr quote.sexp))))
(if (eq quote 'must)
(concat "'" txt)
txt)))