unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Bastien <bzg@gnu.org>, 19829@debbugs.gnu.org
Subject: bug#19829: 25.0.50; Design of commands operating on rectangular regions
Date: Wed, 08 Jul 2015 01:12:54 +0300	[thread overview]
Message-ID: <87r3oj399d.fsf@mail.linkov.net> (raw)
In-Reply-To: <jwva8v9xwar.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Tue, 07 Jul 2015 08:20:28 -0400")

> I think the first thing is to figure out what is the ideal API, ignoring
> backward compatibility.  In this ideal case, I think we'd just want
> a single arg which takes a "region descriptor" (along the lines of what
> you described earlier, tho its format would be opaque) with methods like
> `region-contiguous-p', `region-beginning', `region-end',
> `region-chunks', `region-extract', ...
>
> Then we can try and figure how to adapt it to the real world and how to
> get from here to there.  But I think it mostly means we'll want to go
> from two args (START/END) to just a single arg.  So adding an argument
> doesn't seem to be the obvious best choice.

To achieve the ideal API we need to remove at least one arg END anyway.
But when we'll find a backward-compatible way to remove one arg,
then it would be equally easy to remove two args START and END,
leaving the new arg REGION completely with the new meaning.

OTOH, it would be more difficult to achieve the ideal API while going
thru an intermediate START-OR-REGION arg with the combined meaning
because before changing the meaning of START-OR-REGION to just REGION
requires adapting of function bodies to the new meaning of this arg,
i.e. the choice is between "removing two args START and END" vs.
"removing END and adapting START-OR-REGION".





  reply	other threads:[~2015-07-07 22:12 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10 14:58 bug#19829: 25.0.50; query-replace in rectangle regions do not honor boundaries Bastien
2015-02-10 23:40 ` Juri Linkov
2015-02-12  0:57   ` Juri Linkov
2015-02-12 14:33     ` Stefan Monnier
2015-02-13  0:54       ` Juri Linkov
2015-02-14  3:59         ` Stefan Monnier
2015-02-18 18:30           ` Juri Linkov
2015-02-18 22:56             ` Stefan Monnier
2015-02-19 19:12               ` Juri Linkov
2015-02-19 21:29                 ` Stefan Monnier
2015-02-23 19:19                   ` Juri Linkov
2015-03-11 20:31                     ` Stefan Monnier
2015-03-12 19:19                       ` Juri Linkov
2015-03-13  1:04                         ` Stefan Monnier
2015-06-30 20:42                       ` bug#19829: 25.0.50; Design of commands operating on rectangular regions Juri Linkov
2015-07-01  2:29                         ` Stefan Monnier
2015-07-01 22:17                           ` Juri Linkov
2015-07-02  3:02                             ` Stefan Monnier
2015-07-02 22:40                               ` Juri Linkov
2015-07-07 12:20                                 ` Stefan Monnier
2015-07-07 22:12                                   ` Juri Linkov [this message]
2015-07-07 21:27                         ` Richard Stallman
2015-07-07 22:15                           ` Juri Linkov
2015-02-19 14:27             ` bug#19829: 25.0.50; query-replace in rectangle regions do not honor boundaries Bastien
2015-11-13 23:32 ` Juri Linkov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3oj399d.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=19829@debbugs.gnu.org \
    --cc=bzg@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).