Hello,

Martin Steffen <mstef...@ifi.uio.no> writes:

> org-element--set-regexps: Invalid function: 41

41 is ?\) character. I think the problem lies in this snippet from
`org-element--set-regexps'

  (case org-plain-list-ordered-item-terminator
    (?\) ")") (?. "\\.") (otherwise "[.)]"))
     ^^^

Could you try the following patch?

diff --git a/lisp/org-element.el b/lisp/org-element.el
index 8f41ab2..7b95e0d 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -177,8 +177,11 @@ specially in `org-element--object-lex'.")
                ;; Clock lines.
                (regexp-quote org-clock-string) "\\|"
                ;; Lists.
-               (let ((term (case org-plain-list-ordered-item-terminator
-                             (?\) ")") (?. "\\.") (otherwise "[.)]")))
+               (let ((term (if (characterp
+                                org-plain-list-ordered-item-terminator)
+                               (char-to-string
+                                org-plain-list-ordered-item-terminator)
+                             "[.)]"))
                      (alpha (and org-list-allow-alphabetical "\\|[A-Za-z]")))
                  (concat "\\(?:[-+*]\\|\\(?:[0-9]+" alpha "\\)" term "\\)"
                          "\\(?:[ \t]\\|$\\)"))


Regards,

-- 
Nicolas Goaziou

Reply via email to