emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]