lang/org: refactor +org|realign-table-maybe
This commit is contained in:
parent
48f5811e0d
commit
1b9c5befb4
1 changed files with 4 additions and 3 deletions
|
@ -327,9 +327,10 @@ with `org-cycle'). Also:
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org|realign-table-maybe ()
|
(defun +org|realign-table-maybe ()
|
||||||
"Auto-align table under cursor and re-calculate formulas."
|
"Auto-align table under cursor and re-calculate formulas."
|
||||||
(when (org-at-table-p)
|
(when (and (org-at-table-p) org-table-may-need-update)
|
||||||
(save-excursion
|
(quiet!
|
||||||
(quiet! (org-table-recalculate)))))
|
(org-table-recalculate)
|
||||||
|
(if org-table-may-need-update (org-table-align)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org|update-cookies ()
|
(defun +org|update-cookies ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue