From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#12792: 24.2.50; shell-mode renders all its output in a yellow face Date: Sun, 4 Nov 2012 12:24:56 -0800 Message-ID: <20121104122456.3f2c6448@shorty.local> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352060767 8994 80.91.229.3 (4 Nov 2012 20:26:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2012 20:26:07 +0000 (UTC) Cc: 12792@debbugs.gnu.org To: Wolfgang Jenkner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 04 21:26:16 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 1TV6lq-0000Y0-Nn for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2012 21:26:14 +0100 Original-Received: from localhost ([::1]:59153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV6lh-0004Iv-Vj for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2012 15:26:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV6lf-0004Iq-D8 for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 15:26:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV6ld-0005Ey-Vb for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 15:26:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV6ld-0005El-Hf for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 15:26:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TV6oY-0007XE-8R for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 15:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Nov 2012 20:29:02 +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.135206088528898 (code B ref 12792); Sun, 04 Nov 2012 20:29:02 +0000 Original-Received: (at 12792) by debbugs.gnu.org; 4 Nov 2012 20:28:05 +0000 Original-Received: from localhost ([127.0.0.1]:49322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TV6nd-0007W3-01 for submit@debbugs.gnu.org; Sun, 04 Nov 2012 15:28:05 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:42371) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TV6nY-0007Vd-Vr for 12792@debbugs.gnu.org; Sun, 04 Nov 2012 15:28:02 -0500 Original-Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 0E9F320723; Sun, 4 Nov 2012 15:24:59 -0500 (EST) Original-Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute3.internal (MEProxy); Sun, 04 Nov 2012 15:24:59 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=HOC69RcCJ6hjEUJKeV0ltEK62fM=; b=ojgf5TFmnXX4EyYtfT6Mcw7tINDx LENTSWKS+PbSspRe1X9FQzefrVu0uVdgJ0a+TLvKzmYn2dqjBYUDuTGXWJLInYe3 LIimXqUR8ZDpeDdFnXHqehQjJiGj72Pdv5IYJchlUGMUGW36IuOIlbuFvaK7d1u4 Z5QtepWSMjdLdl8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=HOC69RcCJ6hjEUJKeV0ltE K62fM=; b=N+2HZN4gkFZmmCkmkHiGqxAVjAeqLRJhaWap7t3gGDGq/xXeKncAxl V0j6BhxVeG1f41ykoRtJK7Glbs2IumIuu1a9XSvl8iCyO6J3cOirYBF+6+AAJMqf D/Wr94SaGVlMo5CyWQH225taiayEE1/eG+640wwYebeAtfqp4+TSc= X-Sasl-enc: w3yDbQib3XbB5SzPzR0ObPO+2bIR1TPMmVFlYbIYIWzC 1352060698 Original-Received: from shorty.local (unknown [76.169.242.46]) by mail.messagingengine.com (Postfix) with ESMTPA id 7FCC6482523; Sun, 4 Nov 2012 15:24:58 -0500 (EST) In-Reply-To: <85txt5eav5.fsf@iznogoud.viz> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) 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:66445 Archived-At: > On Sun, 04 Nov 2012 14:49:50 +0100 > Wolfgang Jenkner wrote: > > On Sun, Nov 04 2012, Dima Kogan wrote: > > > 1. I start an 'emacs -Q' with the latest ansi-colors.el > > 2. I evaluate the defun you pasted > > Did you load ansi-colors /before/ step 2? > > If so, what is your PS1 set to? What are the (local) values of > `comint-prompt-regexp' and `comint-use-prompt-regexp' in the "*shell*" > buffer? > > Wolfgang Hi Wolfgang. You're right; I was loading ansi-colors.el after the eval, which was overwriting the new defun. On top of that, I just ran some more controlled tests, and I can now see that some of my descriptions were wrong. Stock bash actually behaves ok (I did test it previously, but must have made a mistake). Note "behaves ok" here means that the nil faces are gone; the prompts are still not colored even with bash. zsh is the main shell I use that looks to be problematic. I can consistently observe the issues if I delete all ~/.zsh* files, then add just the following to the .zshrc: export PS1="%F{red}%n@%m%f:%F{yellow}%~%f%(!.#.$) " This sets a bash-like prompt. With the latest ansi-colors.el I see the everything-is-yellow and face-is-nil issues from before. If I also then evaluate the defun, I observe the behavior I described previously, where everything is one color, until some ansi code is encountered. After the defun the wrong color becomes red instead of yellow, suggesting that something isn't being reset properly. I'm using the zsh package from Debian version 4.3.17-1. comint-prompt-regexp is a variable defined in `comint.el.gz'. Its value is "^[^#$%> ]*[#$%>] *" comint-use-prompt-regexp is a variable defined in `comint.el.gz'. Its value is nil (describe-face) with the point inside the prompt says the prompt face is 'comint-highlight-prompt'. Sorry for the misniformation dima