emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-freemind.el and rx
Date: Thu, 14 Oct 2010 09:08:58 -0400	[thread overview]
Message-ID: <pknd3rcc45j.fsf@gmail.com> (raw)
In-Reply-To: y9l1v7tnh8i.fsf@deinprogramm.de

Michael Sperber <sperber@deinprogramm.de> writes:

> Carsten Dominik <carsten.dominik@gmail.com> 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

  parent reply	other threads:[~2010-10-14 13:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 10:57 org-freemind.el and rx Carsten Dominik
2010-10-14 11:31 ` Michael Sperber
2010-10-14 13:00   ` Ilya Shlyakhter
2010-10-14 13:16     ` Uwe Brauer
2010-10-15  6:52       ` Ilya Shlyakhter
2010-10-14 13:08   ` Robert Pluim [this message]
2010-10-14 15:03 ` Lennart Borgman

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=pknd3rcc45j.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --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).