]> git.eshelyaron.com Git - emacs.git/commit
vtable: allow resetting column alignment when table data changes
authorJoost Kremers <joostkremers@fastmail.com>
Thu, 30 May 2024 23:38:54 +0000 (01:38 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 9 Nov 2024 15:49:22 +0000 (16:49 +0100)
commite43a06d63182d53a95765929074a78cfc1ede4aa
tree62a8548cd47d5a24db9a0cabad0f7c6986cc9dc5
parentb833f8bb863fd941634200d6adc2765bbc95ffca
vtable: allow resetting column alignment when table data changes

* lisp/emacs-lisp/vtable.el (vtable--compute-columns): If a column
was not created with an explicit 'align' property, allow changing
this property when the column data changes from numeric to
non-numeric (or vice versa).  This makes it possible to add data to
an empty table, because in a table without data all columns are
assumed to be numeric and right-aligned.  (Bug#73775)

(cherry picked from commit 35e1ab970c1cfc6a1b62fbb920e0d2bb031765da)
lisp/emacs-lisp/vtable.el