GNU bug report logs - #51262
[PATCH] Don't use color escape sequences in `vc-git-expanded-log-entry'

Previous Next

Package: emacs;

Reported by: Jan Synáček <jan.synacek <at> gmail.com>

Date: Mon, 18 Oct 2021 10:47:01 UTC

Severity: normal

Tags: patch

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Jan Synáček <jan.synacek <at> gmail.com>
Cc: 51262 <at> debbugs.gnu.org
Subject: bug#51262: [PATCH] Don't use color escape sequences in `vc-git-expanded-log-entry'
Date: Tue, 19 Oct 2021 11:00:57 -0700
close 51262 28.1
thanks

Jan Synáček <jan.synacek <at> gmail.com> writes:

> It looks like the following part of my ~/.gitconfig triggers the issue:
> ...
> [color]
>     ui = always

Aha, so that's the culprit.  Presumably without that, git detects that
it's a "dumb" terminal and doesn't output any color escape sequences.

> Colors as in interpreted escape sequences?

That was my first assumption, but it's actually just font-locking.

It seems like your proposed patch does fix the reported issue, and I
could see no other adverse effects; the colors are there there even with
your patch.

I have therefore now pushed this to the emacs-28 branch (commit
5c1a575ef4) with some minor touch-ups to the commit message.  I'm
therefore closing this bug report.

Thanks again for the bug report and patch!




This bug report was last modified 3 years and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.