org-footnote: remove unnecessary checks in footnotes regexps

* lisp/org-footnote.el (org-footnote-goto-definition): now,
  determining if point is at a footnote reference is entirely
  determined by `org-footnote-at-reference-p'. No need to check if
  pattern isn't at beginning of the line elsewhere.
This commit is contained in:
Nicolas Goaziou 2011-05-03 15:41:42 +02:00
parent c9d01b3bbd
commit 9c31654077
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ If no footnote is found, return nil."
(if (not def)
(error "Cannot find definition of footnote %s" label)
(goto-char (nth 1 def))
(looking-at (format "^\\[%s\\]\\|.\\[%s:" label label))
(looking-at (format "\\[%s\\]\\|\\[%s:" label label))
(goto-char (match-end 0))
(org-show-context 'link-search)
(message "Edit definition and go back with `C-c &' or, if unique, with `C-c C-c'."))))