From 1e1cde7546c2dfe7e835163072aca263f6f0b7bb Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 17 Sep 2011 12:01:54 +0200 Subject: [PATCH] org-footnote: check context around definition at a proper place * lisp/org-footnote.el (org-footnote-at-definition-p): Context must be valid at the beginning of line, not at point. --- lisp/org-footnote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.4.GIT