diff options
| author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-15 11:46:40 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-04-15 12:09:07 +0200 |
| commit | f36ff9da170abeada75d7c3d29ba420ffe7c02f4 (patch) | |
| tree | 1703ed1edae89edc3103d6e569cd5f0fcc521173 /doc | |
| parent | 2b92b57923ff14a0cd2feab966a9e6a676f75f11 (diff) | |
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.texi | 10 |
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 background color on the rows. If there are fewer colors here than there are rows, the rows will be repeated. The most common use case here is to have alternating background colors on the rows, so -this would usually be a list of two colors. +this would usually be a list of two colors. This can also be a list +of faces to be used. @item :column-colors If present, this should be a list of color names to be used as the background color on the columns. If there are fewer colors here than there are columns, the colors will be repeated. The most common use case here is to have alternating background colors on the columns, so -this would usually be a list of two colors. If both -@code{:row-colors} and @code{:column-colors} is present, the colors -will be ``blended'' to produce the final colors in the table. +this would usually be a list of two colors. This can also be a list +of faces to be used. If both @code{:row-colors} and +@code{:column-colors} is present, the colors will be ``blended'' to +produce the final colors in the table. @item :actions This uses the same syntax as @code{define-keymap}, but doesn't refer |
