GNU bug report logs - #45829
28.0.50; Some tweaks to the color widget, from wid-edit+.el

Previous Next

Package: emacs;

Reported by: Mauro Aranda <maurooaranda <at> gmail.com>

Date: Tue, 12 Jan 2021 22:14:02 UTC

Severity: wishlist

Tags: fixed, patch

Found in version 28.0.50

Done: Mauro Aranda <maurooaranda <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: maurooaranda <at> gmail.com, 45829 <at> debbugs.gnu.org
Subject: bug#45829: 28.0.50; Some tweaks to the color widget, from wid-edit+.el
Date: Sat, 16 Jan 2021 09:09:25 +0200
> From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
> Date: Fri, 15 Jan 2021 22:22:38 +0000
> Cc: 45829 <at> debbugs.gnu.org
> 
> >  (define-widget 'color 'editable-field
> >    "Choose a color name (with sample)."
> >    :format "%{%t%}: %v (%{sample%})\n"
> >    :value-create 'widget-color-value-create
> > -  :size 10
> > +  :size (1+ (apply #'max (mapcar #'length (defined-colors))))
> 
> Is defined-colors guaranteed to return non-nil?

Not according to its doc string.




This bug report was last modified 4 years and 120 days ago.

Previous Next


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