Bläddra i källkod

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 12 år sedan
förälder
incheckning
61078b4ed4
1 ändrade filer med 2 tillägg och 3 borttagningar
  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))