[Top][All Lists]
[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
- Re: Raw strings (experimental patches inside), (continued)
- Re: Raw strings (experimental patches inside), Pascal J. Bourguignon, 2012/08/04
- Re: Raw strings (experimental patches inside), Aurélien Aptel, 2012/08/04
- Re: Raw strings (experimental patches inside), Pascal J. Bourguignon, 2012/08/05
- Re: Raw strings (experimental patches inside), Lars Brinkhoff, 2012/08/05
- Re: Raw strings (experimental patches inside), Stefan Monnier, 2012/08/05
- Re: Raw strings (experimental patches inside), Pascal J. Bourguignon, 2012/08/06
- Re: Raw strings (experimental patches inside), Stefan Monnier, 2012/08/06
- Re: Raw strings (experimental patches inside), Pascal J. Bourguignon, 2012/08/06
- Re: Raw strings (experimental patches inside), Stefan Monnier, 2012/08/03
- Re: Raw strings (experimental patches inside), Ivan Andrus, 2012/08/04
- Re: Raw strings (experimental patches inside),
Stefan Monnier <=
- Re: Raw strings (experimental patches inside), Aurélien Aptel, 2012/08/04
- Re: Raw strings (experimental patches inside), Stefan Monnier, 2012/08/06
- Re: Raw strings (experimental patches inside), Vr Rm, 2012/08/09
- Re: Raw strings (experimental patches inside), Stephen J. Turnbull, 2012/08/10
- Re: Raw strings (experimental patches inside), Stefan Monnier, 2012/08/10
- Re: Raw strings (experimental patches inside), Stephen J. Turnbull, 2012/08/10
- Re: Raw strings (experimental patches inside), Stefan Monnier, 2012/08/10
- Re: Raw strings (experimental patches inside), Stephen J. Turnbull, 2012/08/11
- Re: Raw strings (experimental patches inside), Dmitri Paduchikh, 2012/08/11
- Re: Raw strings (experimental patches inside), Stephen J. Turnbull, 2012/08/11