From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Steffen Subject: Re: org-mode 3.5.1 emacs 24: invalid-functon 41 Date: Sat, 29 Aug 2015 13:09:54 +0200 Message-ID: <87a8taic59.fsf@login.ifi.uio.no> References: <87614c8tqg.fsf@gnu.org> <877fofcehv.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVe1Q-0003ZL-Co for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 07:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVe1N-0003x9-6p for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 07:10:08 -0400 Received: from mail-out5.uio.no ([129.240.10.17]:48531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVe1N-0003tD-0c for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 07:10:05 -0400 Received: from mail-mx6.uio.no ([129.240.10.40]) by mail-out5.uio.no with esmtp (Exim 4.80.1) (envelope-from ) id 1ZVe1K-0007ig-41 for emacs-orgmode@gnu.org; Sat, 29 Aug 2015 13:10:02 +0200 In-Reply-To: <877fofcehv.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 28 Aug 2015 23:03:24 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 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