From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.bugs Subject: bug#12792: 24.2.50; shell-mode renders all its output in a yellow face Date: Mon, 05 Nov 2012 16:00:34 +0100 Message-ID: <854nl4krvr.fsf@iznogoud.viz> References: <871ugbxdyr.fsf@secretsauce.net> <85r4oazoh4.fsf@iznogoud.viz> <83y5ii4pfw.fsf@gnu.org> <85d2zuzhxe.fsf@iznogoud.viz> <85hap6yre0.fsf@iznogoud.viz> <20121104004557.00fb50a5@shorty.local> <85txt5eav5.fsf@iznogoud.viz> <20121104122456.3f2c6448@shorty.local> <85sj8prl8d.fsf@iznogoud.viz> <20121104192343.1f243455@shorty.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352128266 29989 80.91.229.3 (5 Nov 2012 15:11:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2012 15:11:06 +0000 (UTC) Cc: 12792@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 05 16:11:15 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TVOKY-0002Gf-PV for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 16:11:14 +0100 Original-Received: from localhost ([::1]:36302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVOKP-0001a6-Hj for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 10:11:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVOKM-0001ZQ-Eu for bug-gnu-emacs@gnu.org; Mon, 05 Nov 2012 10:11:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVOKG-0008Gb-IK for bug-gnu-emacs@gnu.org; Mon, 05 Nov 2012 10:11:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVOKG-0008GQ-FQ for bug-gnu-emacs@gnu.org; Mon, 05 Nov 2012 10:10:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TVONF-0004Oe-MC for bug-gnu-emacs@gnu.org; Mon, 05 Nov 2012 10:14:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <871ugbxdyr.fsf@secretsauce.net> Resent-From: Wolfgang Jenkner Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Nov 2012 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12792-submit@debbugs.gnu.org id=B12792.135212840816855 (code B ref 12792); Mon, 05 Nov 2012 15:14:01 +0000 Original-Received: (at 12792) by debbugs.gnu.org; 5 Nov 2012 15:13:28 +0000 Original-Received: from localhost ([127.0.0.1]:50687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVOMh-0004No-Ho for submit@debbugs.gnu.org; Mon, 05 Nov 2012 10:13:28 -0500 Original-Received: from mx09.lb01.inode.at ([62.99.145.9]:52995 helo=mx.inode.at) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVOMf-0004Ng-52 for 12792@debbugs.gnu.org; Mon, 05 Nov 2012 10:13:26 -0500 Original-Received: from [91.119.128.247] (port=3902 helo=iznogoud.viz) by smartmx-09.inode.at with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TVOJe-0007hi-F9; Mon, 05 Nov 2012 16:10:18 +0100 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.80 (FreeBSD)) (envelope-from ) id 1TVOJc-0005ER-SA; Mon, 05 Nov 2012 16:10:16 +0100 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (berkeley-unix) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66479 Archived-At: On Mon, Nov 05 2012, Dima Kogan wrote: > The output (with all the 'escape' characters replaced with '\e' to make sure the > email handlers don't get confused): > > > \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ > \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ > \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ seq 5 > 1 > 2 > 3 > 4 > 5 > \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ ls --color=auto -ld .emacs.d > drwxr-xr-x 6 dima dima 4096 Nov 3 15:31 \e[0m\e[01;34m.emacs.d\e[0m > \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ seq 5 > 1 > 2 > 3 > 4 > 5 > \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ > > [...] > If I evaluate your defun also, I get everything red (nil face also) until the > ".emacs.d". The ".emacs.d" is blue, as it should be. From that point on, all the > plain output is black and all the prompts are blue. This is correct, except the > prompts still shouldn't be all blue. Thanks for the precise recipe. I installed zsh 5.0.0 from ports in FreeBSD 9 and tried it, but I can't reproduce the bogus red colouring (with the rewritten ansi-color-apply-sequence). So I would like to ask you to do some more investigation: As usual, load ansi-color and then eval the new definition of ansi-color-apply-sequence. Then M-x trace-function-background ansi-color-apply-sequence M-x trace-function-background comint-output-filter M-x shell and type in the same shell commands as above. M-x untrace-all Then please attach the content of "*trace-output*" to your reply. Wolfgang