emacs-devel
[Top][All Lists]
Advanced

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

Re: Raw strings (experimental patches inside)


From: Stephen J. Turnbull
Subject: Re: Raw strings (experimental patches inside)
Date: Sat, 11 Aug 2012 16:49:16 +0900

Dmitry Gutov writes:

 > This would be a backward-incompatible change to the regexp engine,
 > wouldn't it?

Not to the matching engine, but to the regexp compiler.

It would be reasonable easy to implement backward-compatibly:  if a
string's first character has a non-nil "punc-are-operators" property,
then all punctuation would be interpreted as regex operators *unless*
they are escaped.

Neither the property name nor the API are likely to be optimal, but it
would work.  You could also do it with some kind of variable.




reply via email to

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