emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] externals/xr e77aa97: Postfix ops are literal after ^ but not


From: Stefan Monnier
Subject: Re: [elpa] externals/xr e77aa97: Postfix ops are literal after ^ but not after \(?:^\)
Date: Wed, 20 Feb 2019 20:35:47 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>>>    Postfix ops are literal after ^ but not after \(?:^\)
>> BTW, some of those details of the syntax of regexps are really
>> undesirable.  Would it be possible for xr to flag them somehow to try
>> and discourage their use?
> Now xr has `xr-lint'. Was that what you had in mind?

Yes, the patch looked great: simple to implement but return thorough info.
The next question will be how/where to hook it.

Maybe we could setup a flymake backend which looks for (defcustom ... "...")
and things like (re-search-forward "..."), tho maybe hooking it into the
byte-compiler is a better option (that will also make it work with
flymake)


        Stefan




reply via email to

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