From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Martin Steffen <msteffen@ifi.uio.no>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode 3.5.1 <at> emacs 24: invalid-functon 41
Date: Fri, 28 Aug 2015 23:03:24 +0200 [thread overview]
Message-ID: <877fofcehv.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <loom.20150818T211436-415@post.gmane.org> (Martin Steffen's message of "Tue, 18 Aug 2015 19:39:11 +0000 (UTC)")
Hello,
Martin Steffen <msteffen@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
next prev parent reply other threads:[~2015-08-28 21:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 6:41 org-mode 3.5.1 @ emacs 24: invalid-functon 41 Martin Steffen
2015-08-18 16:08 ` Bastien
2015-08-18 19:39 ` org-mode 3.5.1 <at> " Martin Steffen
2015-08-28 21:03 ` Nicolas Goaziou [this message]
2015-08-29 11:09 ` Martin Steffen
2015-09-02 5:54 ` Martin Steffen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fofcehv.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=msteffen@ifi.uio.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).