From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#25222: Incorrect indices in ansi-color (227e996946d4629fa8f6d665564a37668290c87f, new in Emacs 25) Date: Thu, 12 Jan 2017 09:13:05 -0800 Message-ID: References: <727f1fe3-3f61-02c8-5858-1f87ccfb54f5@live.com> <83k2a0cleq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1484242710 27465 195.159.176.226 (12 Jan 2017 17:38:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2017 17:38:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25222@debbugs.gnu.org To: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 12 18:38:26 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRjKP-0006Sk-LB for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2017 18:38:21 +0100 Original-Received: from localhost ([::1]:35642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRjKU-0003Ph-81 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2017 12:38:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRix1-0002py-1A for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 12:14:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRiwt-0006Y5-BV for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 12:14:11 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRiwt-0006Xa-8L for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 12:14:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cRiws-0004uE-J3 for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 12:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jan 2017 17:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25222 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25222-submit@debbugs.gnu.org id=B25222.148424119818777 (code B ref 25222); Thu, 12 Jan 2017 17:14:02 +0000 Original-Received: (at 25222) by debbugs.gnu.org; 12 Jan 2017 17:13:18 +0000 Original-Received: from localhost ([127.0.0.1]:51753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRiw8-0004sj-OX for submit@debbugs.gnu.org; Thu, 12 Jan 2017 12:13:18 -0500 Original-Received: from dancol.org ([96.126.100.184]:46316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRiw6-0004sb-Qv for 25222@debbugs.gnu.org; Thu, 12 Jan 2017 12:13:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=LIlLFFBFRWvu+U0/cyp1WDCmHv8+nWwXahrGBGktVj0=; b=m1IXJHEkZTW+4RjbGjTg7GSjo1oGTbf4S8X7jr/zr2Zn7GSoB6FY4de41ZbZfJJZh3fHRqyKuBMYMz9YXrjEII9cF4lComGWbGvo+jz31Hjjuyo0wSKAfpPjZpZOlYU+CVgWAOYNaP1RpMPFjozQVM1pMaF6r/JIS2srQ0icxbK3xxbPeTvNp4BbU8cJFKr1EVxNZsoIvRkf+enx3U1l6ew+VHoGjF5zVM70HMxxZpOfunC+sZYYMrf/aWc0qjaeQlaRqyeYxdak9uLBEbvjiuE9T7nIozNxIXvHSkBHxsVoR5/uB6AmfI8EKIpoIWf3voD3UMVFobwQEkxP2WOrIg==; Original-Received: from [2620:0:1008:100b:793c:1cf2:9f4a:ddfc] (helo=thule.roam.corp.google.com) by dancol.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1cRiw5-0006K6-4v; Thu, 12 Jan 2017 09:13:13 -0800 In-Reply-To: ("=?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel"'s message of "Thu, 12 Jan 2017 11:46:42 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128040 Archived-At: On Thu, Jan 12 2017, Cl=C3=A9ment Pit--Claudel wrote: > On 2017-01-12 11:06, Eli Zaretskii wrote: >>> From: Glenn Morris >>> Date: Wed, 11 Jan 2017 13:24:31 -0500 >>> Cc: 25222@debbugs.gnu.org >>> >>> There are several reports about this. Eg 24223, 21381, 24189. >>> Perhaps this is something to fix for 25.2. >>=20 >> I agree, and would encourage people to hurry with patches for these >> problems, because RC1 of 25.2 is probably due in a week or two. > > I posted a potential solution in a previous message, but I was hoping > for the original author (Daniel) to comment on it. Otherwise, I don't > feel too comfortable touching that code. Gah, sorry. Personal issues lately. I'll take another look at it. I'm not really comfortable with that code at all, to be honest. IMHO, we should rewrite the escapes sequence parser as an explicit restartable state machine instead of munging things with regular expressions.