[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rectangular regions
From: |
Stefan Monnier |
Subject: |
Re: Rectangular regions |
Date: |
Thu, 31 Oct 2013 21:50:25 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> Or better yet --- just take an interval list.
Or provide a `region-iterator-function', so that count-words could do
something like:
(let ((total 0))
(funcall region-iterator-function
(lambda (beg end)
(cl-incf total (count-words-internal beg end))))
total)
I'm not sure yet what this really should look like. We'll need to take
a closer look at the various uses of the region and see what primitives
would be useful.
Some of the issues have to do with modifying the buffer while we go
through the various chunks of the region, as well as dealing with things
like "the region starts in the middle of a TAB character" or "the region
starts/ends after the end of the line".
> An interval list would allow us to select a "rectangle" in bidi
> buffers, the underlying character-range chunks of which would actually
> be arbitrary and non-contiguous.
I'm in no hurry to go down that path. Lots of potholes on the way, and
from where I stand, there doesn't seem to be much gold at the end of
that road.
Stefan
- Re: Rectangular regions, (continued)
- Re: Rectangular regions, Eli Zaretskii, 2013/10/30
- Re: Rectangular regions, Bastien, 2013/10/30
- Re: Rectangular regions, Jose E. Marchesi, 2013/10/31
- Re: Rectangular regions, Stefan Monnier, 2013/10/31
- Re: Rectangular regions, Jambunathan K, 2013/10/31
- Re: Rectangular regions, Jay Finger, 2013/10/31
- Re: Rectangular regions, Eli Zaretskii, 2013/10/31
- Re: Rectangular regions, Daniel Colascione, 2013/10/31
- Re: Rectangular regions, Daniel Colascione, 2013/10/31
- Re: Rectangular regions, Eli Zaretskii, 2013/10/31
- Re: Rectangular regions,
Stefan Monnier <=
- Re: Rectangular regions, Xue Fuqiao, 2013/10/31
- Re: Rectangular regions, Stefan Monnier, 2013/10/31
- Re: Rectangular regions, Leo Liu, 2013/10/31
- Re: Rectangular regions, Josh, 2013/10/31
- Re: Rectangular regions, Josh, 2013/10/31
- Re: Rectangular regions, Stefan Monnier, 2013/10/31
- Re: Rectangular regions, John Yates, 2013/10/30
- Re: Rectangular regions, Richard Stallman, 2013/10/31
Re: Rectangular regions, Stephen J. Turnbull, 2013/10/30
Re: Rectangular regions, Xue Fuqiao, 2013/10/31