Kaynağa Gözat

org-footnote: re-use global regexps when possible

* lisp/org-footnote.el (org-footnote-at-definition-p): re-use
  org-footnote-definition-re.
Nicolas Goaziou 13 yıl önce
ebeveyn
işleme
cb906e4406
1 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3 4
      lisp/org-footnote.el

+ 3 - 4
lisp/org-footnote.el

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