[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-mode 3.5.1 <at> emacs 24: invalid-functon 41
From: |
Nicolas Goaziou |
Subject: |
Re: [O] org-mode 3.5.1 <at> emacs 24: invalid-functon 41 |
Date: |
Fri, 28 Aug 2015 23:03:24 +0200 |
Hello,
Martin Steffen <address@hidden> 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