[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51371: 28.0.50; [PATCH] Make list-colors-display sorting support gen
From: |
Stefan Kangas |
Subject: |
bug#51371: 28.0.50; [PATCH] Make list-colors-display sorting support general |
Date: |
Sun, 24 Oct 2021 05:47:07 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
dalanicolai <dalanicolai@gmail.com> writes:
> The snippet passes colors form the shr-color-html-colors-alist variable
> to list-colors-display. However, currently, despite the docstring
> suggesting to me something different, the list-colors-display function
> only applies its sort functionality if no list is passes as argument.
> I don't see a good reason for that limitation, because the limitation is
> set using a when condition, while the sort function works perfectly fine
> with custom color-lists (e.g. try the snippet above).
>
> So this patch simply removes the (when (null list)) condition, and
> passes the list, if given, to the sort functionality.
> Adapting the docstring is not necessary as it already suggests that the sort
> functionality works in general.
Is there any situation in which you wouldn't want the list sorted?