diff options
| author | Eli Zaretskii | 2024-09-07 11:27:03 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-09-07 11:27:03 +0300 |
| commit | 04c44405bf604380c575fa2a4d9611af0f3bc0d9 (patch) | |
| tree | c8c2c80cd33a0535acaeab9eee2e17f4cf582985 /doc | |
| parent | 4d6fadb8d2146218fd573dc8b6ccfcab59fbfb93 (diff) | |
| download | emacs-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.texi | 19 |
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 |
| 340 | Should be either @code{right} or @code{left}. | 340 | Should be either @code{right} or @code{left}. If not specified, |
| 341 | numerical values will be flushed to the right, and all other values will | ||
| 342 | be 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 |
| 429 | The width of the blank space between columns. | 431 | The width of the blank space between columns. If not specified, it |
| 432 | defaults to 1. | ||
| 430 | 433 | ||
| 431 | @item :divider-width | 434 | @item :divider-width |
| 432 | @itemx :divider | 435 | @itemx :divider |
| 433 | You can have a divider inserted between the columns. This can either | 436 | You can have a divider inserted between the columns. This can either be |
| 434 | be specified by using @code{:divider}, which should be a string to be | 437 | specified by using @code{:divider}, which should be a string to be |
| 435 | displayed between the columns, or @code{:divider-width}, which | 438 | displayed between the columns, or @code{:divider-width}, which specifies |
| 436 | specifies the width of the space to be used as the divider. | 439 | the width of the space to be used as the divider, in units of characters |
| 440 | of 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 | ||
| 443 | string of that width. | ||
| 437 | 444 | ||
| 438 | @item :sort-by | 445 | @item :sort-by |
| 439 | This should be a list of tuples, and specifies how the table is to be | 446 | This should be a list of tuples, and specifies how the table is to be |