From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 31698@debbugs.gnu.org
Subject: bug#31698: 27.0; `rx' help: Show equivalent regexp constructs
Date: Sun, 03 Jun 2018 21:30:18 +0300 [thread overview]
Message-ID: <83efhnd8p1.fsf@gnu.org> (raw)
In-Reply-To: <8e6225c9-73f1-4d5c-b62e-26596d556433@default> (message from Drew Adams on Sun, 3 Jun 2018 10:53:29 -0700 (PDT))
> Date: Sun, 3 Jun 2018 10:53:29 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 31698@debbugs.gnu.org
>
> > Given it's not-so-widespread use (and even outright critique of its
> > very raison d'être), I see no need to describe this in the manual. If
> > and when its use becomes more widespread, we could consider that. For
> > now, it will just bloat the manual.
>
> Perhaps its not-so-widespread use is _partly_ due to the lack
> of more helpful doc?
I very much doubt that, and the recent discussion seems to concur.
> I'm thinking, in particular, of people who are familiar
> with regexps (Elisp or other) but not with `rx'.
I'm one such person, and yet I see no problem with the current
documentation.
> > > 2. Please document (in the doc string of `rx', if nowhere else) the
> > > correspondences between each of the `rx' constructs and regexp
> > > syntax. At least please document the most important ones. For
> > > example, `zero-or-more' presumably corresponds to postfix regexp
> > > char `*'.
> >
> > Really? Doesn't "zero-or-more" define the effect as clearly as
> > possible? I think it does.
>
> Perhaps you're missing the point. Yes, `zero-or-more'
> describes the effect. No, it does not tell you which
> `rx' construct corresponds to `*' in a regexp. Again,
> I'm thinking, in particular, of people who are familiar
> with regexps (Elisp or other) but not with `rx'.
Again, I'm one such person, and it was immediately clear to me what
'zero-or-more' translates to.
> You must scan 212 lines (!) of doc string before you get to
> `and' (aka `seq', aka `:', aka `sequence'), which tells you
> how to write a sequence of patterns.
There will always be something for which you will need to scan 212
lines before you get to it. There isn't too much one can say on a
single line, so something's gotta give.
> > Having said all that, if someone wants to work on this and thinks they
> > can improve on the current state of affairs, feel free.
>
> I certainly _hope_ people feel free to help. I guess
> you say that to make clear that you are leaving the
> request open.
Did you see me close it?
next prev parent reply other threads:[~2018-06-03 18:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-03 17:01 bug#31698: 27.0; `rx' help: Show equivalent regexp constructs Drew Adams
2018-06-03 17:14 ` Eli Zaretskii
2018-06-03 17:53 ` Drew Adams
2018-06-03 18:30 ` Eli Zaretskii [this message]
2018-06-03 20:02 ` Drew Adams
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=83efhnd8p1.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=31698@debbugs.gnu.org \
--cc=drew.adams@oracle.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 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).