GNU bug report logs - #20084
comint-highlight-prompt overrides ANSI colors in 24.4

Previous Next

Package: emacs;

Reported by: Charles Tam <me <at> charlest.net>

Date: Wed, 11 Mar 2015 16:14:02 UTC

Severity: normal

Tags: confirmed, patch

Merged with 19843, 20658

Found in version 24.4

Fixed in version 25.1

Done: Wolfgang Jenkner <wjenkner <at> inode.at>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Charles Tam <me <at> charlest.net>
To: bug-gnu-emacs <at> gnu.org
Subject: comint-highlight-prompt overrides ANSI colors in 24.4
Date: Wed, 11 Mar 2015 12:01:38 -0400
[Message part 1 (text/plain, inline)]
In Emacs 24.3, comint-highlight-prompt allows ANSI colors to show through
if it does not specify any colors itself. In Emacs 24.4, it does not, even
if comint-highlight-prompt is the "empty face".

To reproduce, set PS1 to something containing ANSI color codes. M-x shell
(and M-x ansi-color-for-comint-mode-on if necessary). Then use ls --color.
In my case the color in the prompt is ignored, but the output of ls --color
has the expected hues.
[Message part 2 (text/html, inline)]

This bug report was last modified 10 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.