Function: backtrace--expand-ellipsis

backtrace--expand-ellipsis is a byte-compiled function defined in backtrace.el.gz.

Signature

(backtrace--expand-ellipsis ORIG-FUN BEGIN END VAL LENGTH &rest ARGS)

Documentation

Wrapper to expand an ellipsis.

For use on cl-print-expand-ellipsis-function.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/backtrace.el.gz
(defun backtrace--expand-ellipsis (orig-fun begin end val _length &rest args)
  "Wrapper to expand an ellipsis.
For use on `cl-print-expand-ellipsis-function'."
  (let* ((props (backtrace-get-text-properties begin))
         (inhibit-read-only t))
    (backtrace--with-output-variables (backtrace-get-view)
      (let ((end (apply orig-fun begin end val backtrace-line-length args)))
        (add-text-properties begin end props)
        end))))