[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scan of regexps in Emacs (March 17)
From: |
Stefan Monnier |
Subject: |
Re: Scan of regexps in Emacs (March 17) |
Date: |
Wed, 20 Mar 2019 20:57:41 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>> I wonder why the doc doesn't just say that `-` should be the last
>> character and not mention the other possibilities which just make the
>> rule unnecessarily complex.
> '-' can also be the first character in a regular expression; this is
> pretty common and is standard.
What I meant is that we should simply tell people to always put it at
the end. AFAIK you can always put it at the end, so it's a simpler
rule to follow. That doesn't mean we have to reject a `-` in other
positions (so we can also accept the usual other rule, but we don't
need to advertise it as much as the main rule).
Stefan
- Re: Scan of regexps in Emacs (March 17), (continued)
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/03/18
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/03/19
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/03/19
- Re: Scan of regexps in Emacs (March 17), Stefan Monnier, 2019/03/19
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/03/20
- RE: Scan of regexps in Emacs (March 17), Drew Adams, 2019/03/20
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/03/20
- Re: Scan of regexps in Emacs (March 17), Eli Zaretskii, 2019/03/20
- RE: Scan of regexps in Emacs (March 17), Drew Adams, 2019/03/21
- Re: Scan of regexps in Emacs (March 17), Eli Zaretskii, 2019/03/21
- Re: Scan of regexps in Emacs (March 17),
Stefan Monnier <=
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/03/21
- Re: Scan of regexps in Emacs (March 17), Richard Stallman, 2019/03/20
- Re: Scan of regexps in Emacs (March 17), Stephen Leake, 2019/03/22
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/03/22
- Re: Scan of regexps in Emacs (March 17), Stefan Monnier, 2019/03/22
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/03/20