unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: ma.jiehong@gmail.com, 12723@debbugs.gnu.org
Subject: bug#12723: 24.2; Improvement: changing text rectangle kill/past and its integration	with the kill-ring
Date: Thu, 25 Oct 2012 08:28:17 -0400	[thread overview]
Message-ID: <jwvfw523fqw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83zk3b9pcj.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Oct 2012 05:56:28 +0200")

>> the highlighting would do the same since the highlighting is there
>> to make visible what the rectangle operations would/will do.
> IMHO, this doesn't make sense.  The result will be complete confusion
> of the user wrt what parts of text are being selected.  You should try
> that if you don't believe me.

I'm sure it can be confusing.  Yet, it reflects "which part of the text
is selected", just as much as the current region highlighting does, with
the same amount of confusion (except that we'd have several such
regions, and an expectation that the combination should look rectangular).

I'm really not worried, tho: in those cases where it's really confusing,
people probably don't use rectangle operations anyway (after all, if the
highlighting is confusing yet reflects what's going to happen, it must
be pretty difficult for the user to figure out in her head (i.e. without
the highlighting help) what's going to happen).

> So we have visual-line-mode on by default, but rectangle regions will
> disregard that completely and treat continued lines as one line?  Why
> does this make sense?

Don't know.  But that's what we have now and have had for eons.  Really,
this issue is a complete non-issue: we're talking about reflecting on
screen what is about to happen, so any problem "on screen" (i.e. in the
highlighting) is really due to what's actually going to happen, not to
the highlighting per se.  As soon as you write the code to "fix"
kill-rectangle, I'm pretty sure updating the highlighting
correspondingly will be easy.


        Stefan





  reply	other threads:[~2012-10-25 12:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24 17:40 bug#12723: 24.2; Improvement: changing text rectangle kill/past and its integration with the kill-ring Jiehong Ma
2012-10-24 18:59 ` Stefan Monnier
2012-10-24 21:35   ` Eli Zaretskii
2012-10-25  2:22     ` Stefan Monnier
2012-10-25  3:56       ` Eli Zaretskii
2012-10-25 12:28         ` Stefan Monnier [this message]
2012-10-25 16:53           ` Eli Zaretskii
2012-10-25 18:33             ` Stefan Monnier
2012-10-25 19:43               ` Eli Zaretskii
2012-10-26  1:34                 ` Stefan Monnier

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=jwvfw523fqw.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=12723@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=ma.jiehong@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 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).