From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <5088281E.1080208@gmail.com> <83625zbljf.fsf@gnu.org> <83zk3b9pcj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351168151 32230 80.91.229.3 (25 Oct 2012 12:29:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2012 12:29:11 +0000 (UTC) Cc: ma.jiehong@gmail.com, 12723@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 14:29:19 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TRMYn-0004PU-I9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2012 14:29:17 +0200 Original-Received: from localhost ([::1]:46825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRMYf-0001sx-Pt for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2012 08:29:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRMYa-0001sm-3w for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 08:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRMYV-0003aP-86 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 08:29:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRMYV-0003aL-4z for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 08:28:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TRMaU-0002wh-2s for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 08:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2012 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12723 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12723-submit@debbugs.gnu.org id=B12723.135116822811276 (code B ref 12723); Thu, 25 Oct 2012 12:31:02 +0000 Original-Received: (at 12723) by debbugs.gnu.org; 25 Oct 2012 12:30:28 +0000 Original-Received: from localhost ([127.0.0.1]:60821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRMZw-0002vp-GH for submit@debbugs.gnu.org; Thu, 25 Oct 2012 08:30:28 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:44764) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRMZv-0002ve-3G for 12723@debbugs.gnu.org; Thu, 25 Oct 2012 08:30:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu0/O+LFW/2dsb2JhbABEtBGBCIIVAQEEAVYjBQsLNAcLFBgNJIgcBboJkEQDozOBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="202808670" Original-Received: from 206-248-177-86.dsl.teksavvy.com (HELO pastel.home) ([206.248.177.86]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Oct 2012 08:28:17 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6D704593D3; Thu, 25 Oct 2012 08:28:17 -0400 (EDT) In-Reply-To: <83zk3b9pcj.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Oct 2012 05:56:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66021 Archived-At: >> 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