From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Pluim Subject: Re: org-freemind.el and rx Date: Thu, 14 Oct 2010 09:08:58 -0400 Message-ID: References: <461725B9-86DA-4ECF-A580-038D0A67B5CD@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=39583 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6O2d-0002XZ-HI for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 09:40:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6O2Q-0001UH-38 for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 09:40:07 -0400 Received: from lo.gmane.org ([80.91.229.12]:55008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6O2P-0001U5-Tj for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 09:40:06 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P6O2O-00054O-08 for emacs-orgmode@gnu.org; Thu, 14 Oct 2010 15:40:04 +0200 Received: from lns-bzn-49f-81-56-191-143.adsl.proxad.net ([81.56.191.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Oct 2010 15:40:03 +0200 Received: from rpluim by lns-bzn-49f-81-56-191-143.adsl.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Oct 2010 15:40:03 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Michael Sperber writes: > Carsten Dominik writes: > >> Hi Lennart, >> >> I am trying to keep org-mode also workable with XEmacs. One problem >> here is that XEmacs does not have rx. Would you object if I replace >> the rx macro calls with the string representations of the regular >> expressions in org-freemind.el? >> >> Michael, an alternative would be to get rx ported to and included into >> XEmacs. Is anything like this in the works, or would you like to look >> into this? > > I think the solution is to do rx (I sure hate textual regexps) - which > is on my list, but will likely be a while. I took a quick look, and it's failing byte-compilation because in rx-any-condense-range: (defun rx-any-condense-range (args) "Condense by side effect ARGS as range for Rx `any'." (let (str l) ;; set STR list of all strings ;; set L list of all ranges (mapc (lambda (e) (cond ((stringp e) (push e str)) ((numberp e) (push (cons e e) l)) (t (push e l)))) args) ;; condense overlapped ranges in L (let ((tail (setq l (sort l #'car-less-than-car))) d) 'car-less-than-car is signalling apply(debug error (wrong-type-argument listp ?\[)) l is (?\" ?\[) at this point, and I don't think you can call #'car on either of those 2 elements. Either this code meant to use #'<, or the (t (push e l)) is wrong, or we've discovered another difference between GNU Emacs and XEmacs :) Regards Robert