GNU bug report logs -
#37659
rx additions: anychar, unmatchable, unordered-or
Previous Next
Reported by: Mattias Engdegård <mattiase <at> acm.org>
Date: Tue, 8 Oct 2019 09:37:01 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 27.1
Done: Mattias Engdegård <mattiase <at> acm.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> > Is there an identifiable subset of rx features ... that map
> > (even if not one-to-one) to regexp syntax components?
>
> C-h f rx
>
> (syntax SYNTAX) Match a character with syntax SYNTAX, being one of:
> whitespace, punctuation, word, symbol, open-parenthesis,
> close-parenthesis, expression-prefix, string-quote,
> paired-delimiter, escape, character-quote, comment-start,
> comment-end, string-delimiter, comment-delimiter
Yes, that's fine for char syntax classes. It's
good that their correspondences are listed.
But for, say, `line-start' (aka `bol') there is a
verbal description but no mention of the Elisp
regexp syntax that corresponds:
‘line-start’, ‘bol’
matches the empty string, but only at the
beginning of a line in the text being matched
That's the kind of thing I was suggesting. It would
be helpful, I think, to mention (somewhere) that the
regexp syntax for this is "^".
Same thing for the other constructs (`string-start'
and all the rest).
I'm using Emacs 26.3. I didn't find anything beyond
the doc string - nothing in the Emacs or Elisp manual
(which is OK).
This bug report was last modified 5 years and 133 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.