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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Wolfgang Jenkner <wjenkner <at> inode.at>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#20084: closed (comint-highlight-prompt overrides ANSI colors
 in 24.4)
Date: Tue, 31 Mar 2015 15:54:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 31 Mar 2015 17:01:22 +0200
with message-id <85twx1rwob.fsf <at> iznogoud.viz>
and subject line Re: bug#20084: comint-highlight-prompt overrides ANSI colors in 24.4
has caused the debbugs.gnu.org bug report #20084,
regarding comint-highlight-prompt overrides ANSI colors in 24.4
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
20084: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20084
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Wolfgang Jenkner <wjenkner <at> inode.at>
Cc: 20084-done <at> debbugs.gnu.org
Subject: Re: bug#20084: comint-highlight-prompt overrides ANSI colors in 24.4
Date: Tue, 31 Mar 2015 17:01:22 +0200
After 792d44b, things should work as described by the OP.  If this is
not the case, please re-open.  This change is only in the master branch
and has not been back-ported to emacs-24.  So, presumably, 25.1 will be
the first release where this works.


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.