]> code.delx.au - gnu-emacs/commitdiff
* ansi-color.el (ansi-color-drop-regexp): Add 1J, 1K, 2K.
authorGlenn Morris <rgm@gnu.org>
Wed, 16 Oct 2013 01:38:12 +0000 (18:38 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 16 Oct 2013 01:38:12 +0000 (18:38 -0700)
Fixes: debbugs:15617
lisp/ChangeLog
lisp/ansi-color.el

index 476c0593855db63decb00165dd6865c529f3aa9d..f51947ffac4e3ed5bf774c3d578f4c62ae403b04 100644 (file)
@@ -1,5 +1,8 @@
 2013-10-16  Glenn Morris  <rgm@gnu.org>
 
+       * ansi-color.el (ansi-color-drop-regexp):
+       Add 1J, 1K, 2K.  (Bug#15617)
+
        * files.el (hack-local-variables--warned-lexical): New.
        (hack-local-variables):
        Warn about misplaced lexical-binding.  (Bug#15616)
index 105352117b7a3386b6e06cfac88d967f7cdb22ca..a5978144e9b259c065d1a349b8bc44d8ca2cccd0 100644 (file)
@@ -153,7 +153,7 @@ foreground and background colors, respectively."
   "Regexp that matches SGR control sequences.")
 
 (defconst ansi-color-drop-regexp
-  "\033\\[\\([ABCDsuK]\\|2J\\|=[0-9]+[hI]\\|[0-9;]*[Hf]\\)"
+  "\033\\[\\([ABCDsuK]\\|[12][JK]\\|=[0-9]+[hI]\\|[0-9;]*[Hf]\\)"
   "Regexp that matches ANSI control sequences to silently drop.")
 
 (defconst ansi-color-parameter-regexp "\\([0-9]*\\)[m;]"