From: Juri Linkov <juri@linkov.net>
To: Augusto Stoffel <arstoffel@gmail.com>
Cc: Jim Porter <jporterbugs@gmail.com>,
Manuel Uberti <manuel.uberti@inventati.org>,
50207@debbugs.gnu.org
Subject: bug#50207: 28.0.50; ansi-color-compilation-filter and rgrep
Date: Thu, 15 Dec 2022 10:02:14 +0200 [thread overview]
Message-ID: <86fsdhgk69.fsf@mail.linkov.net> (raw)
In-Reply-To: <87lenalzdn.fsf@gmail.com> (Augusto Stoffel's message of "Wed, 14 Dec 2022 17:32:36 +0100")
>> Have you tried to replace a number with a marker? Does it help to fix
>> this bug?
>
> I've tried this and, although I think it's sane and should be done
> anyway, it didn't solve this bug in particular.
Does this patch solve the bug?
```
diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el
index 5e7015db549..d7508759702 100644
--- a/lisp/ansi-color.el
+++ b/lisp/ansi-color.el
@@ -688,6 +688,7 @@ ansi-color-filter-region
(start (cadr context)))
(save-excursion
(goto-char start)
+ (forward-line 0)
;; Delete escape sequences.
(while (re-search-forward ansi-color-control-seq-regexp end-marker t)
(delete-region (match-beginning 0) (match-end 0)))
@@ -727,6 +728,7 @@ ansi-color-apply-on-region
(end-marker (copy-marker end)))
(save-excursion
(goto-char start-marker)
+ (forward-line 0)
;; Find the next escape sequence.
(while (re-search-forward ansi-color-control-seq-regexp end-marker t)
;; Extract escape sequence.
```
prev parent reply other threads:[~2022-12-15 8:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 5:57 bug#50207: 28.0.50; ansi-color-compilation-filter and rgrep Manuel Uberti
2021-08-26 11:10 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-26 22:11 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-26 22:33 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-26 17:07 ` Jim Porter
2021-08-27 6:06 ` Juri Linkov
2021-08-27 6:36 ` Jim Porter
2022-12-07 11:05 ` Augusto Stoffel
2022-12-08 22:34 ` Augusto Stoffel
2022-12-09 7:20 ` Juri Linkov
2022-12-09 11:57 ` Augusto Stoffel
2022-12-14 16:32 ` Augusto Stoffel
2022-12-15 8:02 ` Juri Linkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86fsdhgk69.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=50207@debbugs.gnu.org \
--cc=arstoffel@gmail.com \
--cc=jporterbugs@gmail.com \
--cc=manuel.uberti@inventati.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).