[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master eb07b3d: Make list-colors-display sort list passed as argument
From: |
Stefan Kangas |
Subject: |
master eb07b3d: Make list-colors-display sort list passed as argument |
Date: |
Sat, 30 Oct 2021 11:35:42 -0400 (EDT) |
branch: master
commit eb07b3d9b3e05b6863fa61ea3b022f2184ec5c82
Author: dalanicolai <dalanicolai@gmail.com>
Commit: Stefan Kangas <stefan@marxist.se>
Make list-colors-display sort list passed as argument
* lisp/facemenu.el (list-colors-display): Don't skip sorting list of
colors if it was passed as an argument. (Bug#51371)
---
lisp/facemenu.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/facemenu.el b/lisp/facemenu.el
index 7417bb1..fe458b8 100644
--- a/lisp/facemenu.el
+++ b/lisp/facemenu.el
@@ -551,8 +551,8 @@ If the optional argument CALLBACK is non-nil, it should be a
function to call each time the user types RET or clicks on a
color. The function should accept a single argument, the color name."
(interactive)
- (when (and (null list) (> (display-color-cells) 0))
- (setq list (list-colors-duplicates (defined-colors)))
+ (when (> (display-color-cells) 0)
+ (setq list (list-colors-duplicates (or list (defined-colors))))
(when list-colors-sort
;; Schwartzian transform with `(color key1 key2 key3 ...)'.
(setq list (mapcar
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master eb07b3d: Make list-colors-display sort list passed as argument,
Stefan Kangas <=