[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Structural regular expressions
From: |
Stefan Monnier |
Subject: |
Re: Structural regular expressions |
Date: |
Fri, 10 Sep 2010 15:31:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>>> And what is narrow-to-region supposed to do then?
>> Signal an error when the region is not contiguous?
> Opens another can of worms because quite a number of commands accepting
> a region argument implement it internally using narrow-to-region.
What can of worms? Old uses will still work just as well as before.
And as explained in earlier threads, some of those commands could be
magically made to work by letting an "r" in the interactive spec mean
"apply once per contiguous region segment". I haven't experimented with
such a change, so it may or may not be an acceptable heuristic, but in
any case I don't see it as a problem that commands need to be adjusted
in order to work in the case that the region is split into more than
1 chunk.
Stefan
- Re: Structural regular expressions, (continued)
- Re: Structural regular expressions, Stefan Monnier, 2010/09/08
- Re: Structural regular expressions, Lawrence Mitchell, 2010/09/08
- Re: Structural regular expressions, Stefan Monnier, 2010/09/08
- Re: Structural regular expressions, David Kastrup, 2010/09/09
- Re: Structural regular expressions, Stefan Monnier, 2010/09/09
- Re: Structural regular expressions, David Kastrup, 2010/09/10
- Re: Structural regular expressions,
Stefan Monnier <=
- Re: Structural regular expressions, Davis Herring, 2010/09/09
- Re: Structural regular expressions, Lennart Borgman, 2010/09/09
- Re: Structural regular expressions, Stefan Monnier, 2010/09/10
- Re: Structural regular expressions, Richard Stallman, 2010/09/10
- Re: Structural regular expressions, David House, 2010/09/10
- Message not available
- Re: Structural regular expressions, Tom, 2010/09/10
- RE: Structural regular expressions, Drew Adams, 2010/09/10
- Re: Structural regular expressions, Miles Bader, 2010/09/10
- Re: Structural regular expressions, Tom, 2010/09/11
- Re: Structural regular expressions, Wojciech Meyer, 2010/09/11