summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorHelmut Eller <eller.helmut@gmail.com>2023-07-20 16:27:34 +0200
committerEli Zaretskii <eliz@gnu.org>2023-08-03 10:45:41 +0300
commit5129ea4b0540a0df35be59cdaf2fe63260670e9f (patch)
tree7fb899a7c9a06e48f7925bf2ecf3806fe2533828 /lisp/emacs-lisp
parentd727e8ee7c0b6f3457080c8a94ad54d6cffda911 (diff)
downloademacs-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