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
This commit is contained in:
Nicolas Goaziou 2014-03-28 17:25:25 +01:00
parent 25c591fcc4
commit 10cd4ed4d0
1 changed files with 2 additions and 1 deletions

View File

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