all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: 6384@debbugs.gnu.org
Subject: bug#6384: Teach rx explicitly numbered submatches
Date: Thu, 10 Jun 2010 18:51:04 +0300	[thread overview]
Message-ID: <871vce98br.fsf@mail.jurta.org> (raw)
In-Reply-To: <AANLkTil8YNg_dRodt7YiU5wC1oQJo469i9oDU5Htu7Y3@mail.gmail.com> (Lennart Borgman's message of "Wed, 9 Jun 2010 20:19:52 +0200")

>      (submatch		. (rx-submatch 1 nil)) ; SRE
> +    (submatch-n		. (rx-submatch-n 2 nil))

I think better would be to allow the existing subform `submatch'
to support numbered groups, i.e. in addition to the current form
`(submatch SEXP1 SEXP2 ...)' also support
`(submatch N SEXP1 SEXP2 ...)' because the number is a parameter
of normal groups.

There are already subforms that support different number of integer
arguments like `(repeat N SEXP)' and `(repeat N M SEXP)'.  So the same
could be done for `submatch' too.

-- 
Juri Linkov
http://www.jurta.org/emacs/





  reply	other threads:[~2010-06-10 15:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 17:22 bug#6384: Teach rx explicitly numbered submatches Lennart Borgman
2010-06-09 18:16 ` Stefan Monnier
2010-06-09 18:19   ` Lennart Borgman
2010-06-10 15:51     ` Juri Linkov [this message]
2010-06-10 16:21       ` 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

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

  git send-email \
    --in-reply-to=871vce98br.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=6384@debbugs.gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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.