aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-04-15 11:46:40 +0200
committerLars Ingebrigtsen2022-04-15 12:09:07 +0200
commitf36ff9da170abeada75d7c3d29ba420ffe7c02f4 (patch)
tree1703ed1edae89edc3103d6e569cd5f0fcc521173 /doc
parent2b92b57923ff14a0cd2feab966a9e6a676f75f11 (diff)
downloademacs-f36ff9da170abeada75d7c3d29ba420ffe7c02f4.tar.gz
emacs-f36ff9da170abeada75d7c3d29ba420ffe7c02f4.zip
Allow using faces for colors in vtable
* doc/misc/vtable.texi (Making A Table): Adjust color documentation. * lisp/emacs-lisp/vtable.el (make-vtable): Mix more. (vtable--compute-colors): Mix both foreground and background colors. (vtable--make-color-face, vtable--face-blend): New functions. (vtable--insert-line): Adjust usage.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/vtable.texi10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi
index 5a3957758c9..296dc520a1b 100644
--- a/doc/misc/vtable.texi
+++ b/doc/misc/vtable.texi
@@ -392,16 +392,18 @@ If present, this should be a list of color names to be used as the
392background color on the rows. If there are fewer colors here than 392background color on the rows. If there are fewer colors here than
393there are rows, the rows will be repeated. The most common use 393there are rows, the rows will be repeated. The most common use
394case here is to have alternating background colors on the rows, so 394case here is to have alternating background colors on the rows, so
395this would usually be a list of two colors. 395this would usually be a list of two colors. This can also be a list
396of faces to be used.
396 397
397@item :column-colors 398@item :column-colors
398If present, this should be a list of color names to be used as the 399If present, this should be a list of color names to be used as the
399background color on the columns. If there are fewer colors here than 400background color on the columns. If there are fewer colors here than
400there are columns, the colors will be repeated. The most common use 401there are columns, the colors will be repeated. The most common use
401case here is to have alternating background colors on the columns, so 402case here is to have alternating background colors on the columns, so
402this would usually be a list of two colors. If both 403this would usually be a list of two colors. This can also be a list
403@code{:row-colors} and @code{:column-colors} is present, the colors 404of faces to be used. If both @code{:row-colors} and
404will be ``blended'' to produce the final colors in the table. 405@code{:column-colors} is present, the colors will be ``blended'' to
406produce the final colors in the table.
405 407
406@item :actions 408@item :actions
407This uses the same syntax as @code{define-keymap}, but doesn't refer 409This uses the same syntax as @code{define-keymap}, but doesn't refer