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