diff options
author | Helmut Eller <eller.helmut@gmail.com> | 2023-07-20 16:27:34 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-08-03 10:45:41 +0300 |
commit | 5129ea4b0540a0df35be59cdaf2fe63260670e9f (patch) | |
tree | 7fb899a7c9a06e48f7925bf2ecf3806fe2533828 /lisp/emacs-lisp | |
parent | d727e8ee7c0b6f3457080c8a94ad54d6cffda911 (diff) | |
download | emacs-5129ea4b0540a0df35be59cdaf2fe63260670e9f.tar.gz emacs-5129ea4b0540a0df35be59cdaf2fe63260670e9f.tar.bz2 emacs-5129ea4b0540a0df35be59cdaf2fe63260670e9f.zip |
Improve interactive prompting for face colors
When displaying the completion candidates, show how the face would
look with the new foreground/background.
* lisp/faces.el (faces--string-with-color): New helper,
factored out from 'defined-colors-with-face-attributes'.
(defined-colors-with-face-attributes): Use it.
(read-color): Add optional argument FACE and pass
it to 'faces--string-with-color.'
(read-face-attribute): Call 'read-color' with more appropriate
foreground and face arguments.
* doc/lispref/minibuf.texi (High-Level Completion): Describe
the intention behind the arguments FOREGROUND and FACE of
'read-color'. (Bug#64725)
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions