summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-01-26 09:34:57 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2013-01-26 09:34:57 (GMT)
commit61078b4ed415e7b8b7ba28f325bef7c6f7a00dc2 (patch)
tree98905308cafbca7f0de029d3dce1725d6269dc64
parentf11accd3ee8f4a2eaaf570ecd6b93d862b1fc9f4 (diff)
downloadorg-mode-61078b4ed415e7b8b7ba28f325bef7c6f7a00dc2.zip
org-mode-61078b4ed415e7b8b7ba28f325bef7c6f7a00dc2.tar.gz
Fix C-c C-c at a footnote definition
* lisp/org.el (org-ctrl-c-ctrl-c): `save-excursion' prevents `org-footnote-action' to put point back onto the definition.
-rw-r--r--lisp/org.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 718848c..b75173f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19582,9 +19582,8 @@ This command does many different things, depending on context:
(goto-char (org-element-property :post-affiliated context))
(org-update-dblock)))
(footnote-definition
- (save-excursion
- (goto-char (org-element-property :post-affiliated context))
- (call-interactively 'org-footnote-action)))
+ (goto-char (org-element-property :post-affiliated context))
+ (call-interactively 'org-footnote-action))
(footnote-reference (call-interactively 'org-footnote-action))
((headline inlinetask)
(save-excursion (goto-char (org-element-property :begin context))