Function: eshell-output-object

eshell-output-object is a byte-compiled function defined in esh-io.el.gz.

Signature

(eshell-output-object OBJECT &optional HANDLE-INDEX HANDLES)

Documentation

Insert OBJECT, using HANDLE-INDEX specifically).

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-io.el.gz
(defun eshell-output-object (object &optional handle-index handles)
  "Insert OBJECT, using HANDLE-INDEX specifically)."
  (let ((target (car (aref (or handles eshell-current-handles)
			   (or handle-index eshell-output-handle)))))
    (if (and target (not (listp target)))
	(eshell-output-object-to-target object target)
      (while target
	(eshell-output-object-to-target object (car target))
	(setq target (cdr target))))))