1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-29 07:58:21 +00:00

org-footnote: re-use global regexps when possible

* lisp/org-footnote.el (org-footnote-at-definition-p): re-use
  org-footnote-definition-re.
This commit is contained in:
Nicolas Goaziou 2011-08-16 18:10:15 +02:00
parent d053a72066
commit cb906e4406

View File

@ -262,10 +262,9 @@ label, start, end and definition of the footnote otherwise."
message-signature-separator nil t)))))
(or (and (re-search-forward
(org-re
(concat "^[ \t]*$" "\\|"
org-outline-regexp-bol
"\\|"
"^\\[\\([0-9]+\\|fn:[-_[:word:]]+\\)\\]"))
(concat org-outline-regexp-bol "\\|"
org-footnote-definition-re "\\|"
"^[ \t]*$"))
bound 'move)
(progn (skip-chars-forward " \t\n") (point-at-bol)))
(point))))