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.
This commit is contained in:
Nicolas Goaziou 2011-09-17 12:01:54 +02:00
parent bf3e9aa9a2
commit 1e1cde7546
1 changed files with 1 additions and 1 deletions

View File

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