Function: eshell--mark-yanked-as-output
eshell--mark-yanked-as-output is a byte-compiled function defined in
esh-util.el.gz.
Signature
(eshell--mark-yanked-as-output START END)
Documentation
Mark yanked text from START to END as Eshell output.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-util.el.gz
(defun eshell--mark-yanked-as-output (start end)
"Mark yanked text from START to END as Eshell output."
;; `yank' removes the field text property from the text it inserts
;; due to `yank-excluded-properties', so arrange for this text
;; property to be reapplied in the `after-change-functions'.
(letrec ((hook
(lambda (start1 end1 _len1)
(remove-hook 'after-change-functions hook t)
(when (and (= start start1)
(= end end1))
(eshell--mark-as-output start1 end1)))))
(add-hook 'after-change-functions hook nil t)))