[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lack of tooling slowing down contributions
From: |
Juri Linkov |
Subject: |
Re: Lack of tooling slowing down contributions |
Date: |
Wed, 19 Jun 2019 23:47:33 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>> BTW, I tried to replace the regexp above with ‘rx’ that is easier to read:
>>
>> (rx (group (>= 5 (not (any " ."))))
>> (group (regexp (sentence-end))))
>>
>> but it fails. Not sure if this will be fixed in bug#36237.
>
> The regexp subform takes a string argument, so you need:
>
> `(rx (group (>= 5 (not (any " ."))))
> (group (regexp ,(sentence-end))))
But 'eval' doesn't require backquoting:
(rx (group (>= 5 (not (any " ."))))
(group (eval (sentence-end))))
The only problem with 'eval' is that it applies 'regexp-quote'
on the result of evaluation that is counterproductive here.
- Re: Lack of tooling slowing down contributions, (continued)
- Re: Lack of tooling slowing down contributions, Juri Linkov, 2019/06/16
- Re: Lack of tooling slowing down contributions, Phil Sainty, 2019/06/16
- Re: Lack of tooling slowing down contributions, Van L, 2019/06/17
- Re: Lack of tooling slowing down contributions, Marcin Borkowski, 2019/06/17
- Re: Lack of tooling slowing down contributions, Yuri Khan, 2019/06/17
- Re: Lack of tooling slowing down contributions, Juri Linkov, 2019/06/17
- Re: Lack of tooling slowing down contributions, Juri Linkov, 2019/06/18
- Re: Lack of tooling slowing down contributions, Andy Moreton, 2019/06/19
- Re: Lack of tooling slowing down contributions,
Juri Linkov <=
- Re: Lack of tooling slowing down contributions, Noam Postavsky, 2019/06/19
- Re: Lack of tooling slowing down contributions, Damien Cassou, 2019/06/17