GNU bug report logs -
#36237
Support (rx (and (regexp EXPR) (regexp-quote EXPR)))
Previous Next
Reported by: Noam Postavsky <npostavs <at> gmail.com>
Date: Sat, 15 Jun 2019 23:44:02 UTC
Severity: wishlist
Tags: fixed, patch
Merged with 6985
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Mattias EngdegÄrd <mattiase <at> acm.org> writes:
>
> what I meant is that the docs frequently use "form" for the `rx'
> whatchamacallits even though they aren't Lisp expressions. The
> terminology is a mess; use whatever you find understandable.
Well, the rest of the rx docstring uses SEXP for the `rx'
whatchamacallits, so I think leaving it as (eval FORM) should be fine.
And hopefully we'll be able to deprecate eval soon enough so it won't
matter too much.
>>squash! Support (rx (and (regexp EXPR) (literal EXPR))) (Bug#36237)
>
> Remnants of rebase editing?
Oops, yes. I wish git would comment out the "squash!..." line
automatically.
> since the order of the branches matters. Maybe it's the regexp string
> that should be the other way around; hard to tell without any context.
Yeah, I switched the regexp string instead, on the grounds that
otherwise "$" would almost never match (except at end of buffer) since
[^:] already matches \n.
> +`(regexp REGEXP-EXPR)'
> + include REGEXP-EXPR in string notation in the result, where
> + REGEXP-EXPR is any lisp expression that evaluates a string
> + containing a valid regexp.
>
> Missed "to" after "evaluate"?
Oops.
> I'm happy with the patch after the obvious fixes.
I'll wait a few more days in case something else comes up.
Drew Adams <drew.adams <at> oracle.com> writes:
> Minor:
>
> "at run-time" -> "at run time"
>
> Emacs docs seem to use "runtime" as
> adjective and "run time" as noun, which
> is fairly conventional. Sometimes,
> outside Emacs, "runtime" is used for both.
The elisp manual has a couple of "run-time" as well, but more cases of
"run time" so I went with that.
[0001-Support-rx-and-regexp-EXPR-literal-EXPR-Bug-36237.patch (text/plain, attachment)]
This bug report was last modified 5 years and 326 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.