]> git.eshelyaron.com Git - emacs.git/commit
Improve yanking in the middle of comint process output
authorMiha Rihtaršič <miha@kamnitnik.top>
Tue, 7 Dec 2021 20:16:23 +0000 (21:16 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 7 Dec 2021 20:16:23 +0000 (21:16 +0100)
commit5364c571988b2bfba05870450a66767f7c134ebd
tree4d1957e818f81219c0b6ef8a30e206d89976ed77
parentbeed398eb5e49680b731aeacd553d357759043c1
Improve yanking in the middle of comint process output

* lisp/comint.el
(comint--unmark-string-as-output): New function to remove unwanted
properties from text yanked from comint buffers.

(comint-mode): Use it as a 'filter-buffer-substring-function'.

(comint-output-filter): Set 'insert-in-front-hooks' text property on
process output such that text yanked by the user in the middle of
process output is marked as process output (Bug#3735).

(comint--mark-as-output): New function.
(comint--mark-yanked-as-output): New function.
lisp/comint.el