Use text properties for color escape highlighting in Shell mode.
commit0fd40f8951f1aaa387e78999ecfbf6bc954ccf8a
authorChong Yidong <cyd@gnu.org>
Sun, 19 Feb 2012 13:59:42 +0000 (19 21:59 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 19 Feb 2012 13:59:42 +0000 (19 21:59 +0800)
tree48386211397064dd0eb1bc47fb0a292e3ad4e19f
parent2375c96a71874756c132de1d0508a224c0fea0ab
Use text properties for color escape highlighting in Shell mode.

* ansi-color.el: Don't set comint-output-filter-functions; it is
now in the initial value defined in comint.el.
(ansi-color-apply-face-function): New variable.
(ansi-color-apply-on-region): Use it.
(ansi-color-apply-overlay-face): New function.

* comint.el: Require ansi-color.
(comint-output-filter-functions): Add ansi-color-process-output.

* shell.el (shell): No need to require ansi-color.
(shell-mode): Use ansi-color-apply-face-function to highlight
color escapes using font-lock-face property.

Fixes: debbugs:10835
lisp/ChangeLog
lisp/ansi-color.el
lisp/comint.el
lisp/shell.el