Implement ANSI SGR parameters 22-27.
authorWolfgang Jenkner <wjenkner@inode.at>
Wed, 15 Aug 2012 03:33:55 +0000 (23:33 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 15 Aug 2012 03:33:55 +0000 (23:33 -0400)
commit2f29c200d84a5f3a3b4b2cc09fbc5000e38ee21f
tree8581043b2f89fe95ad7c8a995b2b52892dd7f79b
parentb4f5e9df77f42a033b64c2be00a4c6ca7bcf0c58
Implement ANSI SGR parameters 22-27.
* lisp/ansi-color.el (ansi-colors): Doc fix.
(ansi-color-context, ansi-color-context-region): Doc fix.
(ansi-color--find-face): New function.
(ansi-color-apply, ansi-color-apply-on-region): Use it.
Rename the local variable `face' to `codes' since it is now a list of
ansi codes.  Doc fix.
(ansi-color-get-face): Remove.
(ansi-color-parse-sequence): New function, derived from
ansi-color-get-face.
(ansi-color-apply-sequence): Use it.  Rewrite, and support ansi
codes 22-27.

Fixes: debbugs:12146
lisp/ChangeLog
lisp/ansi-color.el