Browse Source

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.
Nicolas Goaziou 5 years ago
parent
commit
61078b4ed4
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lisp/org.el

+ 2 - 3
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))