diff options
author | Marco Wahl <marcowahlsoft@gmail.com> | 2020-03-30 23:21:22 +0200 |
---|---|---|
committer | Marco Wahl <marcowahlsoft@gmail.com> | 2020-03-30 23:21:22 +0200 |
commit | fe34a408f24948ccbe936fdf734ba4110b957e3e (patch) | |
tree | cdda69beecce2e0160347786ebd513adcf862d6e | |
parent | 50ae73854b80e31bfe3e213e9c71f187b6d72da2 (diff) | |
download | org-mode-fe34a408f24948ccbe936fdf734ba4110b957e3e.tar.gz |
org-table: Fix formula at column insert
* lisp/org-table.el (org-table-insert-column): Fix the index.
Report and fix by Yu Han Quek. https://lists.gnu.org/archive/html/emacs-orgmode/2020-03/msg00290.html
TINYCHANGE
-rw-r--r-- | lisp/org-table.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el index 63b2288..58e7c3b 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -1307,8 +1307,8 @@ However, when FORCE is non-nil, create new columns if necessary." ;; Fix TBLFM formulas, if desirable. (when (or (not org-table-fix-formulas-confirm) (funcall org-table-fix-formulas-confirm "Fix formulas? ")) - (org-table-fix-formulas "$" nil (1- col) 1) - (org-table-fix-formulas "$LR" nil (1- col) 1)))) + (org-table-fix-formulas "$" nil col 1) + (org-table-fix-formulas "$LR" nil col 1)))) (defun org-table-find-dataline () "Find a data line in the current table, which is needed for column commands. |