GNU bug report logs -
#36496
[PATCH] Describe the rx notation in the lisp manual
Previous Next
Reported by: Mattias Engdegård <mattiase <at> acm.org>
Date: Thu, 4 Jul 2019 12:14:01 UTC
Severity: wishlist
Merged with 31698
Found in version 27.0
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Mattias Engdegård <mattiase <at> acm.org> writes:
> Ah, you called out my little white lie. They are synonyms in practice,
> because almost nobody uses minimal-match, probably for good
> reasons. (xr used to generate {minimal|maximal}-match, but it was
> decidedly less readable so it got changed.)
>
> Yet you are right in the sense that the documentation should not lie
> or wilfully obscure the workings. There appears to be no good
> solution, because the underlying design isn't very good. It might be
> different if minimal-match affected the entire expression inside,
> including (or ...) and (** ...), but that will have to wait for the
> next big engine.
>
> The new patch versions describe the semantics more objectively, while
> still recommending the user to stay clear of minimal-match. Good
> enough?
> +(zero-or-more RX...) Match RXs zero or more times. Alias: 0+
> +(one-or-more RX...) Match RXs one or more times. Alias: 1+
> +(zero-or-one RX...) Match RXs or the empty string. Alias: opt, optional
> +(* RX...) Match RXs zero or more times; greedy.
> +(+ RX...) Match RXs one or more times; greedy.
> +(? RX...) Match RXs or the empty string; greedy.
Yep, that looks fine.
This bug report was last modified 3 years and 21 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.