all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Michael Heerdegen <michael_heerdegen@web.de>,
	36237@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	kevin.legouguec@gmail.com
Subject: bug#36237: Support (rx (and (regexp EXPR) (regexp-quote EXPR)))
Date: Tue, 18 Jun 2019 21:45:57 +0200	[thread overview]
Message-ID: <385FA4F7-7FB5-43A2-B571-CFBA20B24123@acm.org> (raw)
In-Reply-To: <87fto9yawl.fsf@gmail.com>

16 juni 2019 kl. 14.25 skrev Noam Postavsky <npostavs@gmail.com>:

>>> The plan was to replace rx with ry entirely when complete.
> 
> How far away is this?  Would it make sense to delay this bug until "ry"
> comes in?

The function-complete ry has been put at https://gitlab.com/mattiase/ry for the time being. It should now be entirely compatible, including support for `rx-constituents'. Your proposed `literal' was also added, which was instructive; I needed to know how it would fit in.

Bootstrapping Emacs with it (ry renamed to rx, of course) works, including python-mode which uses `rx-constituents' for extension. It also has fewer of the known bugs of the current rx, and a much more extensive test suite.

There are two things that perhaps need to be resolved before replacing the current rx:

1. Is there externally developed elisp code that makes use of internal rx functions and variables, perhaps for extension purposes, and do we need to worry about breaking it? The code is old enough not to delineate internal and public symbols clearly (no double-dash), which means that people may have gone and used all sort of things.

2. What would a good extension mechanism look like, and should one be put into place right away, so that we can point to a decent replacement for the internal toys that users relied upon?

Noam, unless the consensus is that ry is unequivocally as good or better than rx, you could just as well apply your patch (suitably fixed up). Even if later replaced, there is nothing fundamentally wrong with the design; let's not hold it hostage.






  parent reply	other threads:[~2019-06-18 19:45 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-15 23:43 bug#36237: Support (rx (and (regexp EXPR) (regexp-quote EXPR))) Noam Postavsky
2019-06-16  0:03 ` Michael Heerdegen
2019-06-16  0:28   ` Noam Postavsky
2019-06-16 10:03 ` Mattias Engdegård
2019-06-16 11:34   ` Stefan Monnier
2019-06-16 12:25     ` Noam Postavsky
2019-06-16 12:35       ` Stefan Monnier
2019-06-16 19:50         ` Noam Postavsky
2019-06-16 20:04           ` Stefan Monnier
2019-06-16 20:25           ` Drew Adams
2019-06-16 20:34             ` Mattias Engdegård
2019-06-16 21:09               ` Drew Adams
2019-06-17 20:57             ` Juri Linkov
2019-06-18 19:45       ` Mattias Engdegård [this message]
2019-06-19  1:34         ` Noam Postavsky
2019-06-19 15:42           ` Mattias Engdegård
2019-06-20  0:29             ` Noam Postavsky
2019-06-20 10:26               ` Mattias Engdegård
2019-06-22 22:05                 ` Noam Postavsky
2019-06-23 11:09                   ` Mattias Engdegård
2019-06-23 15:46                     ` Noam Postavsky
2019-06-24  3:50                       ` Stefan Monnier
2019-06-24 10:52                         ` Mattias Engdegård
2019-06-26  2:07                       ` Noam Postavsky
2019-06-23 14:45                   ` Drew Adams
2019-06-26 12:23 ` Andy Moreton
2019-06-26 12:56   ` Noam Postavsky
2019-06-26 13:08 ` Andy Moreton

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=385FA4F7-7FB5-43A2-B571-CFBA20B24123@acm.org \
    --to=mattiase@acm.org \
    --cc=36237@debbugs.gnu.org \
    --cc=kevin.legouguec@gmail.com \
    --cc=michael_heerdegen@web.de \
    --cc=monnier@iro.umontreal.ca \
    --cc=npostavs@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.