]> git.eshelyaron.com Git - emacs.git/commit
Fix and simplify ansi escape detection (Bug#21381)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 16 Jun 2017 03:23:44 +0000 (23:23 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 3 Jul 2017 14:09:40 +0000 (10:09 -0400)
commit35ed01dfb3f811a997e26d843e9971eb6b81b125
tree722d1f4750056d1c04288a0b8f3d92419a4a11fe
parenta7754a250b74c17e1f63194e601f20fdb911dd7c
Fix and simplify ansi escape detection (Bug#21381)

* lisp/ansi-color.el (ansi-color-regexp, ansi-color-drop-regexp):
Remove.
(ansi-color-control-seq-regexp): New constant, matches all escape
sequences.
(ansi-color-filter-apply, ansi-color-apply)
(ansi-color-filter-region, ansi-color-apply-on-region): Use it instead
of matching color sequences separately from ignored sequences.
Differentiate color sequences simply by checking the last character.
lisp/ansi-color.el