In ansi-color-apply, (string-match "\033" string start) finds the wrong portion of context if unrecognized ANSI sequences is not removed before the match. This can cause, for example, eshell's prompt to disappear if ansi-color-apply is used in eshell-preoutput-filter-functions. The attached patch tries to fix this. Leo