org-element: Remove dependency on ‘org-emphasis-regexp-components’

* lisp/org-element.el (org-element--set-regexps): Hard-code syntax,
since this is not configurable.
This commit is contained in:
Nicolas Goaziou 2021-11-14 15:13:41 +01:00
parent 577b987972
commit c47b535bbd
1 changed files with 1 additions and 4 deletions

View File

@ -93,7 +93,6 @@
(defvar org-drawer-regexp)
(defvar org-edit-src-content-indentation)
(defvar org-emph-re)
(defvar org-emphasis-regexp-components)
(defvar org-keyword-time-not-clock-regexp)
(defvar org-match-substring-regexp)
(defvar org-odd-levels-only)
@ -193,9 +192,7 @@ specially in `org-element--object-lex'.")
"\\(?:[_^][-{(*+.,[:alnum:]]\\)"
;; Bold, code, italic, strike-through, underline
;; and verbatim.
(concat "[*~=+_/]"
(format "[^%s]"
(nth 2 org-emphasis-regexp-components)))
(rx (or "*" "~" "=" "+" "_" "/") (not space))
;; Plain links.
(concat "\\<" link-types ":")
;; Objects starting with "[": citations,