From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: ansi-color.el minor bug Date: Mon, 30 Mar 2009 09:13:17 -0700 (PDT) Message-ID: <200903301613.n2UGDHiK019365@godzilla.ics.uci.edu> References: <87skkv3z65.fsf@bar.jrock.us> <200903301447.n2UElA44018253@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238430293 638 80.91.229.12 (30 Mar 2009 16:24:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2009 16:24:53 +0000 (UTC) Cc: Jonathan Rockway , Emacs Developement List To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 30 18:26:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LoKJL-0008UO-GG for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2009 18:26:07 +0200 Original-Received: from localhost ([127.0.0.1]:43440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoKHy-0001qH-1O for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2009 12:24:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoK8z-00040J-4g for emacs-devel@gnu.org; Mon, 30 Mar 2009 12:15:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoK8u-0003sn-7U for emacs-devel@gnu.org; Mon, 30 Mar 2009 12:15:24 -0400 Original-Received: from [199.232.76.173] (port=37814 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoK8u-0003sc-2E for emacs-devel@gnu.org; Mon, 30 Mar 2009 12:15:20 -0400 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:54313) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LoK8t-0004XU-GP for emacs-devel@gnu.org; Mon, 30 Mar 2009 12:15:19 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n2UGDIs7026242; Mon, 30 Mar 2009 09:13:18 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n2UGDHiK019365; Mon, 30 Mar 2009 09:13:17 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 30 Mar 2009 12:00:19 -0400") Original-Lines: 25 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n2UGDIs7026242 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109920 Archived-At: Stefan Monnier writes: > >> > Hi, is this a bug in ansi-color.el? > >> > > >> > steps to reproduce: > >> > > >> > emacs -Q > >> > M-x ansi-color-for-comint-mode-on > >> > M-x shell > >> > echo -e '\e[31;1mfoo\e[;1mbar' > >> > > >> > Observed ansi-color.el behavior: "foo" is red and "bar" is bold-red. > >> > > >> > Expected behavior, as xterm/etc do: "bar" is bold-default > >> > (e.g. bold-black if terminal is black-on-white). > >> > >> FWIW, "M-x ansi-term" interprets this correctly. Are there two code > >> paths for interpreting the escape sequences? > > > ansi-term comes from term.el, and ansi-color-for-comint-mode-on comes > > from a different package: ansi-color.el. > > Could we reduce this redundancy? Probably, but I wouldn't hold my breath.