aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2024-09-07 11:27:03 +0300
committerEli Zaretskii2024-09-07 11:27:03 +0300
commit04c44405bf604380c575fa2a4d9611af0f3bc0d9 (patch)
treec8c2c80cd33a0535acaeab9eee2e17f4cf582985 /doc
parent4d6fadb8d2146218fd573dc8b6ccfcab59fbfb93 (diff)
downloademacs-04c44405bf604380c575fa2a4d9611af0f3bc0d9.tar.gz
emacs-04c44405bf604380c575fa2a4d9611af0f3bc0d9.zip
Fix alignment and documentation of vtable.el
* lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Ensure proper alignment between the columns in header-line and in the body of the table. (Bug#73032) * doc/misc/vtable.texi (Making A Table): Document the defaults of the various keyword parameters.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/vtable.texi19
1 files changed, 13 insertions, 6 deletions
diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi
index 2e0adfb235a..795d7fad037 100644
--- a/doc/misc/vtable.texi
+++ b/doc/misc/vtable.texi
@@ -337,7 +337,9 @@ width (in pixels), and @var{table} is the table.
337@end defun 337@end defun
338 338
339@item align 339@item align
340Should be either @code{right} or @code{left}. 340Should be either @code{right} or @code{left}. If not specified,
341numerical values will be flushed to the right, and all other values will
342be flushed to the left.
341@end table 343@end table
342 344
343@item :getter 345@item :getter
@@ -426,14 +428,19 @@ current line, they can use the @code{vtable-current-object} function
426(@pxref{Interface Functions}) to determine what that object is. 428(@pxref{Interface Functions}) to determine what that object is.
427 429
428@item :separator-width 430@item :separator-width
429The width of the blank space between columns. 431The width of the blank space between columns. If not specified, it
432defaults to 1.
430 433
431@item :divider-width 434@item :divider-width
432@itemx :divider 435@itemx :divider
433You can have a divider inserted between the columns. This can either 436You can have a divider inserted between the columns. This can either be
434be specified by using @code{:divider}, which should be a string to be 437specified by using @code{:divider}, which should be a string to be
435displayed between the columns, or @code{:divider-width}, which 438displayed between the columns, or @code{:divider-width}, which specifies
436specifies the width of the space to be used as the divider. 439the width of the space to be used as the divider, in units of characters
440of the face used to display the table. If not specified,
441@code{:divider} defaults to @code{nil}, but specifying
442@code{:divider-width} effectively sets the divider to a whitespace
443string of that width.
437 444
438@item :sort-by 445@item :sort-by
439This should be a list of tuples, and specifies how the table is to be 446This should be a list of tuples, and specifies how the table is to be