summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-05-03 15:41:42 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-06-29 12:00:42 +0200
commit9c316540779ba887fbfaae250c2b855ebbdccc32 (patch)
treed15a9dad1f23f67c70bde4ec735557cc24bdf975
parentc9d01b3bbd9c4deaeb76eaed870c1083a04e4e4e (diff)
downloadorg-mode-9c316540779ba887fbfaae250c2b855ebbdccc32.tar.gz
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.
-rw-r--r--lisp/org-footnote.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 3e23165..66feeac 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -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'."))))