all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: Stefan Monnier <monnier+gnu/emacs@rum.cs.yale.edu>
Subject: Re: regexp-opt-group
Date: Mon, 20 Jan 2003 12:42:46 -0500	[thread overview]
Message-ID: <200301201742.h0KHgkj10618@rum.cs.yale.edu> (raw)
In-Reply-To: yoijsmvnvi22.fsf@elendil.dd.chalmers.se

> "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> writes:
> 
> > > With this change, does everything work right?
> [...]
> 
> > The `strings' list is expected to always be properly sorted.
> > I believe that if the list is indeed sorted, then
> > (nthcdr (length half1) strings) should DTRT (and faster than your loop).
> > OTOH, if the list is not properly sorted, then it's probably a bug
> > somewhere else.
> > Note: I haven't seen the original message from Johan.
> 
> It was posted in gnu.emacs.bug.
> http://groups.google.com/groups?selm=mailman.537.1042928665.21513.bug-gnu-emacs%40gnu.org

> (regexp-opt-group '("000" "this string is missing" "foo"
> 		    "0this occurs twice"))

So the bug is in the docstring of regexp-opt-group which should say
that the list should be sorted.  And also make it more clear that it's
an internal function.

Why did you use `regexp-opt-group' rather than `regexp-opt' ?


	Stefan

  reply	other threads:[~2003-01-20 17:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-18 22:21 regexp-opt-group Johan Bockgård
2003-01-20  0:50 ` regexp-opt-group Richard Stallman
2003-01-20 16:54   ` regexp-opt-group Stefan Monnier
2003-01-20 17:37     ` regexp-opt-group Johan Bockgård
2003-01-20 17:42       ` Stefan Monnier [this message]
2003-01-22 10:00         ` regexp-opt-group Richard Stallman

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

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

  git send-email \
    --in-reply-to=200301201742.h0KHgkj10618@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.