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: Stefan Monnier
Subject: Re: Raw strings (experimental patches inside)
Date: Sat, 04 Aug 2012 19:47:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>>> When I type a regex I'm always annoyed by the amount of escaping
>>> I have to do.  I've always wished Emacs Lisp had raw strings
>>> ie. a syntax to type litteral text without interpretation.
>> AFAIK, the only real use-case is indeed regexp, and for them a better
>> solution would be to not escape the parentheses at all.
> That doesn't handle the horror that is searching for backslashes...

That is not a problem significant enough to warrant the introduction of
something like raw-strings.

> It would also be nice to have a function which takes a string representation
> and converts it to an `rx' representation, which I couldn't find in rx when
> I looked.

Indeed, we don't have that right now.
My lex.el includes something pretty close, but I'd rather not include
lex.el into Emacs because it's not clean enough.  OTOH maybe I could add
it to GNU ELPA.


        Stefan



reply via email to

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