From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: regexp-opt-group
Date: Sun, 19 Jan 2003 19:50:33 -0500 [thread overview]
Message-ID: <E18aQ93-0006UE-00@fencepost.gnu.org> (raw)
In-Reply-To: <yoijof6e2j5v.fsf@helm.dd.chalmers.se> (bojohan@helm.dd.chalmers.se)
With this change, does everything work right?
It appears to be the right fix for this bug,
but I didn't have time to study the whole file carefully.
*** regexp-opt.el.~1.21.~ Thu Jun 20 10:43:11 2002
--- regexp-opt.el Sun Jan 19 17:18:58 2003
***************
*** 223,229 ****
;; particular letter and those that do not, and recurse on them.
(let* ((char (char-to-string (string-to-char (car strings))))
(half1 (all-completions char strings))
! (half2 (nthcdr (length half1) strings)))
(concat open-group
(regexp-opt-group half1)
"\\|" (regexp-opt-group half2)
--- 223,231 ----
;; particular letter and those that do not, and recurse on them.
(let* ((char (char-to-string (string-to-char (car strings))))
(half1 (all-completions char strings))
! (half2 strings))
! (dolist (elt half1)
! (setq half2 (delq elt half2)))
(concat open-group
(regexp-opt-group half1)
"\\|" (regexp-opt-group half2)
next parent reply other threads:[~2003-01-20 0:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <yoijof6e2j5v.fsf@helm.dd.chalmers.se>
2003-01-20 0:50 ` Richard Stallman [this message]
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 ` regexp-opt-group Stefan Monnier
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
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=E18aQ93-0006UE-00@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@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.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).