]> git.eshelyaron.com Git - emacs.git/commit
Avoid slow overlay ansi coloring in eshell (Bug#29854)
authorNoam Postavsky <npostavs@gmail.com>
Sat, 4 May 2019 18:47:29 +0000 (14:47 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 4 May 2019 19:33:20 +0000 (15:33 -0400)
commit4fd9048e940d38364caf4abe9b209f9288c78544
treea89d315f7671b1369c90bb3b7c503ca78193ea3f
parent37963ed4991823fd1ee5cd2c485f22ac988259e2
Avoid slow overlay ansi coloring in eshell (Bug#29854)

* lisp/ansi-color.el (ansi-color-apply-on-region): Reset temporary
markers after finishing with them.
(ansi-color-apply-text-property-face): New function.
* lisp/eshell/esh-mode.el (eshell-handle-ansi-color):
* lisp/man.el (Man-fontify-manpage): Use it as the
`ansi-color-apply-face-function' while calling
`ansi-color-apply-on-region'.  Use `font-lock-face' to propertize
instead of `face'.
lisp/ansi-color.el
lisp/eshell/esh-mode.el
lisp/man.el