Function: backtrace-print-to-string

backtrace-print-to-string is a byte-compiled function defined in backtrace.el.gz.

Signature

(backtrace-print-to-string OBJ &optional LIMIT)

Documentation

Return a printed representation of OBJ formatted for backtraces.

Attempt to get the length of the returned string under LIMIT characters with appropriate settings of print-level and print-length. LIMIT defaults to backtrace-line-length.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/backtrace.el.gz
(defun backtrace-print-to-string (obj &optional limit)
  "Return a printed representation of OBJ formatted for backtraces.
Attempt to get the length of the returned string under LIMIT
characters with appropriate settings of `print-level' and
`print-length.'  LIMIT defaults to `backtrace-line-length'."
  (backtrace--with-output-variables backtrace-view
    (backtrace--print-to-string obj limit)))