unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: regexp-opt for all kinds of strings
Date: Fri, 20 Jul 2007 14:17:35 +1000	[thread overview]
Message-ID: <87myxrzp28.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 1184788335.177448.16880@d30g2000prg.googlegroups.com

Nordlöw <per.nordlow@gmail.com> writes:

> Hey!
>
> Is there a version of regexp-opt() that can take a list of regular
> expression (regexps) as argument. If not, why?
>

No, I don't know of any that will do that. The problem I think is that parsing
a list which also includes regexp would make the optimisation process very
complex as you would have to parse the regexps and work out how to combine them
with the non-regexp elements to obtain a final optimised regexp. The parsing
would likely require a full implementation of the regexp engine.

regards,

Tim

-- 
tcross (at) rapttech dot com dot au

  parent reply	other threads:[~2007-07-20  4:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-18 19:52 regexp-opt for all kinds of strings Nordlöw
2007-07-18 20:19 ` Stefan Monnier
2007-07-20  4:17 ` Tim X [this message]
2007-07-20  8:06   ` Nordlöw
  -- strict thread matches above, loose matches on Subject: below --
2007-07-18 16:21 Nordlöw
2007-07-19  1:58 ` David Hansen
2007-07-20  3:04 ` Tim X

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87myxrzp28.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@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.
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).