From: Martin Steffen <msteffen@ifi.uio.no>
To: emacs-orgmode@gnu.org
Subject: Re: org-mode 3.5.1 <at> emacs 24: invalid-functon 41
Date: Sat, 29 Aug 2015 13:09:54 +0200 [thread overview]
Message-ID: <87a8taic59.fsf@login.ifi.uio.no> (raw)
In-Reply-To: <877fofcehv.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 28 Aug 2015 23:03:24 +0200")
Hi,
thanks for the info. I tried to reproduce the error but failed, which
means, in the meantime org 3.5.1 works.
Note, however, that it's no longer the same git-reversion. When I first
stumbled upon it, it was org-version 3.5.1 and the then latest pull from
the git-server. Since it basically made all of org unsusable ("RETURN"
did not work any longer), I decided to ``go back in time'' and
git-pulled an earlier version (namely the one git-labeled "release
3.5").
Now, in order to reproduce the error (and try the patch), I pulled the
now latest one, and the ``41-error'' does _not_ show up. I also applied
to small patch (because the 2 lines you pointed at do appear in the
org-element.el file), but that does not lead to an immediately visible
change (but as said, the error was gone already).
Unfortunately, I don't know which exact revision it was that showed that
problem ---I think in the meantime I did not also update emacs
itself---, but if it disappeared in the now latest version, I am content
as well.
Thanks, Martin
Nicolas> Hello,
Nicolas> Martin Steffen <msteffen@ifi.uio.no> writes:
>> org-element--set-regexps: Invalid function: 41
Nicolas> 41 is ?\) character. I think the problem lies in this
Nicolas> snippet from `org-element--set-regexps'
Nicolas> (case org-plain-list-ordered-item-terminator (?\) ")")
Nicolas> (?. "\\.") (otherwise "[.)]")) ^^^
Nicolas> Could you try the following patch?
Nicolas> diff --git a/lisp/org-element.el b/lisp/org-element.el
Nicolas> index 8f41ab2..7b95e0d 100644 --- a/lisp/org-element.el +++
Nicolas> b/lisp/org-element.el @@ -177,8 +177,11 @@ specially in
Nicolas> `org-element--object-lex'.") ;; Clock lines.
Nicolas> (regexp-quote org-clock-string) "\\|" ;; Lists. - (let
Nicolas> ((term (case org-plain-list-ordered-item-terminator - (?\)
Nicolas> ")") (?. "\\.") (otherwise "[.)]"))) + (let ((term (if
Nicolas> (characterp + org-plain-list-ordered-item-terminator) +
Nicolas> (char-to-string + org-plain-list-ordered-item-terminator) +
Nicolas> "[.)]")) (alpha (and org-list-allow-alphabetical
Nicolas> "\\|[A-Za-z]"))) (concat "\\(?:[-+*]\\|\\(?:[0-9]+" alpha
Nicolas> "\\)" term "\\)" "\\(?:[ \t]\\|$\\)"))
Nicolas> Regards,
Nicolas> -- Nicolas Goaziou
next prev parent reply other threads:[~2015-08-29 11:10 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
2015-08-29 11:09 ` Martin Steffen [this message]
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=87a8taic59.fsf@login.ifi.uio.no \
--to=msteffen@ifi.uio.no \
--cc=emacs-orgmode@gnu.org \
/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).