浏览代码

org-element: Fix regression

* lisp/org-element.el (org-element--object-regexp): Take into
  consideration `org-emphasis-regexp-components' when building regexp.

http://permalink.gmane.org/gmane.emacs.orgmode/84349
Nicolas Goaziou 11 年之前
父节点
当前提交
10cd4ed4d0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/org-element.el

+ 2 - 1
lisp/org-element.el

@@ -4147,7 +4147,8 @@ Elements are accumulated into ACC."
 		"\\(?:[_^][-{(*+.,[:alnum:]]\\)"
 		;; Bold, code, italic, strike-through, underline and
 		;; verbatim.
-		"[*~=+_/][^- \t.,:!?;'\"]"
+		(concat "[*~=+_/]"
+			(format "[^%s]" (nth 2 org-emphasis-regexp-components)))
 		;; Plain links.
 		(concat "\\<" link-types ":")
 		;; Objects starting with "[": regular link, footnote