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.
This commit is contained in:
Nicolas Goaziou 2013-01-26 10:34:57 +01:00
parent f11accd3ee
commit 61078b4ed4
1 changed files with 2 additions and 3 deletions

View File

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