GNU bug report logs - #58165
[Patch] [GNU ELPA] rcirc-color: Allow recoloring nicks

Previous Next

Package: emacs;

Reported by: Thuna <thuna.cing <at> gmail.com>

Date: Thu, 29 Sep 2022 14:59:02 UTC

Severity: normal

Tags: patch

Done: Philip Kaludercic <philipk <at> posteo.net>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 58165 <at> debbugs.gnu.org (full text, mbox):

From: Thuna <thuna.cing <at> gmail.com>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 58165 <at> debbugs.gnu.org
Subject: Re: bug#58165: [Patch] [GNU ELPA] rcirc-color: Allow recoloring nicks
Date: Fri, 30 Sep 2022 02:30:22 +0200
> While at it one could replace the `foreground-color', since (elisp)
> Special Properties says:
>
>         • A cons cell of the form ‘(foreground-color . COLOR-NAME)’ or
>           ‘(background-color . COLOR-NAME)’.  This specifies the
>           foreground or background color, similar to ‘(:foreground
>           COLOR-NAME)’ or ‘(:background COLOR-NAME)’.  This form is
>           supported for backward compatibility only, and should be
>           avoided.

I avoided it on the off chance something would break, but I don't mind
either way.

> Also, it would be nice to also reformat the code using a let* block.
> Something like
>
>         (let* ((index (random (length rcirc-colors)))
>                (color (elt rcirc-colors index))
>                (face (cons 'foreground-color color)))
>           (puthash nick face rcirc-color-mapping))

Seems ok to me.




This bug report was last modified 2 years and 265 days ago.

Previous Next


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