diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 7ef433bfa..fef88c12b 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -249,7 +249,7 @@ footnote text is included and defined locally. The return value will be nil if not at a footnote definition, and a list with label, start, end and definition of the footnote otherwise." - (when (org-footnote-in-valid-context-p) + (when (save-excursion (beginning-of-line) (org-footnote-in-valid-context-p)) (save-excursion (end-of-line) (let ((lim (save-excursion (re-search-backward