From: Mathias Dahl <brakjoller@gmail.com>
Subject: Re: multi-region.el --- Mapping commands over multiple active regions.
Date: Sat, 07 Jan 2006 10:58:06 +0100 [thread overview]
Message-ID: <m2ace8cqc1.fsf@gmail.com> (raw)
In-Reply-To: E1EtRDe-0007Ol-Cg@fencepost.gnu.org
"Richard M. Stallman" <rms@gnu.org> writes:
> Here's one idea. Suppose that region-beginning returned a list of
> region beginnings, and region-end returned a list of region ends.
> That would be a clean way to tell a command that there are
> multi-regions in effect.
Could there be risk here?
Suppose I have three regions:
r1: 10 to 20
r2: 30 to 40
r3: 50 to 60
If I understand your suggestion, `region-beginning' and `region-end',
respectively, would return the following values:
(region-beginning) => (10 30 50)
(region-end) => (20 40 60)
Could I, as a programmer, trust that the ordering of those values are
always in sync?
Maybe these functions are only helper functions, and when I need the
*real* end of a region, I will ask for it explicitly using the
beginning of the region as argument?
next prev parent reply other threads:[~2006-01-07 9:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <?fnord?871xcp586t.fsf@ID-97657.usr.dfncis.de>
2006-01-02 15:03 ` multi-region.el --- Mapping commands over multiple active regions Richard M. Stallman
2006-01-02 16:28 ` Stefan Monnier
2006-01-03 16:26 ` Richard M. Stallman
2006-01-07 9:58 ` Mathias Dahl [this message]
2006-01-08 14:47 ` Richard M. Stallman
2006-01-09 11:27 ` Kim F. Storm
2006-01-09 21:35 ` Richard M. Stallman
2006-01-09 12:47 ` Mathias Dahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ace8cqc1.fsf@gmail.com \
--to=brakjoller@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.