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.
This commit is contained in:
Bastien Guerry 2013-04-11 00:32:33 +02:00
parent 69ebb265be
commit 9ac7fabb46
1 changed files with 1 additions and 1 deletions

View File

@ -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)