diff options
author | Bastien Guerry <bzg@altern.org> | 2013-04-11 00:32:33 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-04-11 00:32:33 +0200 |
commit | 9ac7fabb461242efb4e898787dd3df51842ea5fd (patch) | |
tree | e2943ac61fd0fad4b651e368b3354f0957f4a66f | |
parent | 69ebb265be118ea1a37afb9603c4582d25d33d09 (diff) | |
download | org-mode-9ac7fabb461242efb4e898787dd3df51842ea5fd.tar.gz |
org-table.el (org-table-copy-down): Don't move cursor when getting the field
* org-table.el (org-table-copy-down): Don't move cursor when
getting the field.
This prevents the point from moving when inadvertently calling
S-RET outside of a table.
-rw-r--r-- | lisp/org-table.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el index 3d5d888..4418704 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -1118,7 +1118,7 @@ copying. In the case of a timestamp, increment by one day." (interactive "p") (let* ((colpos (org-table-current-column)) (col (current-column)) - (field (org-table-get-field)) + (field (save-excursion (org-table-get-field))) (non-empty (string-match "[^ \t]" field)) (beg (org-table-begin)) (orig-n n) |