GNU bug report logs -
#50179
[PATCH] Add support for "bright" ANSI colors to ansi-color and term-mode
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Tue, 24 Aug 2021 04:04:02 UTC
Severity: wishlist
Tags: patch
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Jim Porter <jporterbugs <at> gmail.com> writes:
> I don't quite know what to do about man.el though. It has overrides
> for a few of the faces used by ansi-color. I could maintain that
> behavior fairly easily, but maybe it makes sense to have it use the
> defaults from ansi-color.
Hm... I wonder why man.el is overriding the colours?
Skimming the patch, it looks good to me, but some trivial comments:
> -(defcustom ansi-color-faces-vector
> - [default bold default italic underline success warning error]
Instead of removing the variable, mark it as obsolete instead. (Users
may have code that references it in their .emacs files, and that
shouldn't bug out.)
> +(defconst ansi-color-basic-faces-vector
> + [nil
[...]
> - :type '(vector face face face face face face face face)
> - :set 'ansi-color-map-update
> - :initialize 'custom-initialize-default
> - :group 'ansi-colors)
Needs a :version.
> -(defcustom ansi-color-names-vector
> - ["black" "red3" "green3" "yellow3" "blue2" "magenta3" "cyan3" "gray90"]
Same thing with obsoletion here.
> -(defvar Man-ansi-color-map (let ((ansi-color-faces-vector
> - [ default Man-overstrike default Man-underline
> - Man-underline default default Man-reverse ]))
> - (ansi-color-make-color-map))
> - "The value used here for `ansi-color-map'.")
And same obsoletion thing here.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.