From 9ac7fabb461242efb4e898787dd3df51842ea5fd Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Thu, 11 Apr 2013 00:32:33 +0200 Subject: [PATCH] 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. --- lisp/org-table.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index 3d5d88896..441870479 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)