[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36496: [PATCH] Describe the rx notation in the lisp manual
From: |
Noam Postavsky |
Subject: |
bug#36496: [PATCH] Describe the rx notation in the lisp manual |
Date: |
Sat, 06 Jul 2019 15:12:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) |
Mattias Engdegård <mattiase@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.
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, (continued)
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Mattias Engdegård, 2019/07/05
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Eli Zaretskii, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Mattias Engdegård, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Eli Zaretskii, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Mattias Engdegård, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Eli Zaretskii, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Mattias Engdegård, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Eli Zaretskii, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Mattias Engdegård, 2019/07/07
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Eli Zaretskii, 2019/07/07
- bug#36496: [PATCH] Describe the rx notation in the lisp manual,
Noam Postavsky <=
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Noam Postavsky, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Richard Stallman, 2019/07/06
bug#36496: [PATCH] Describe the rx notation in the lisp manual, Richard Stallman, 2019/07/05
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Eli Zaretskii, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Richard Stallman, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Drew Adams, 2019/07/06
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Richard Stallman, 2019/07/07
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Drew Adams, 2019/07/07
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Richard Stallman, 2019/07/08
- bug#36496: [PATCH] Describe the rx notation in the lisp manual, Drew Adams, 2019/07/08