Only realign tables in +org-realign-table-maybe-h

Don't recalculate formulas.
This commit is contained in:
Henrik Lissner 2020-04-13 15:23:16 -04:00
parent 006eee75d0
commit 41606f5369
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 20 additions and 16 deletions

View file

@ -46,11 +46,10 @@ re-align the table if necessary. (Necessary because org-mode has a
;;;###autoload
(defun +org-realign-table-maybe-h ()
"Auto-align table under cursor and re-calculate formulas."
"Auto-align table under cursor."
(when (and (org-at-table-p) org-table-may-need-update)
(let ((pt (point))
(inhibit-message t))
(org-table-recalculate)
(if org-table-may-need-update (org-table-align))
(goto-char pt))))