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: Wed, 24 Oct 2012 14:59:22 -0400 Message-ID: References: <5088281E.1080208@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1351105220 25670 80.91.229.3 (24 Oct 2012 19:00:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2012 19:00:20 +0000 (UTC) Cc: 12723@debbugs.gnu.org To: Jiehong Ma Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 21:00:28 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 1TR6Bo-0004n9-PW for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 21:00:28 +0200 Original-Received: from localhost ([::1]:54560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR6Be-0001b7-Pa for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 15:00:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR6BW-0001Yf-Qg for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 15:00:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR6BQ-0000Wy-SA for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 15:00:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR6BQ-0000VW-Pq for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 15:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TR6DK-0000MM-Ij for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 15:02: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: Wed, 24 Oct 2012 19:02: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.13511052911342 (code B ref 12723); Wed, 24 Oct 2012 19:02:02 +0000 Original-Received: (at 12723) by debbugs.gnu.org; 24 Oct 2012 19:01:31 +0000 Original-Received: from localhost ([127.0.0.1]:60006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR6Co-0000Lb-Tz for submit@debbugs.gnu.org; Wed, 24 Oct 2012 15:01:31 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]:34971) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TR6Cn-0000LU-8y for 12723@debbugs.gnu.org; Wed, 24 Oct 2012 15:01:29 -0400 Original-Received: from ceviche.home ([96.21.127.30]) by VL-VM-MR004.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MCE005RUVEY2Q40@VL-VM-MR004.ip.videotron.ca> for 12723@debbugs.gnu.org; Wed, 24 Oct 2012 14:59:22 -0400 (EDT) Original-Received: by ceviche.home (Postfix, from userid 20848) id 2554A661F0; Wed, 24 Oct 2012 14:59:22 -0400 (EDT) In-reply-to: <5088281E.1080208@gmail.com> 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:65998 Archived-At: > In the following, I would like to present how I think it would be > nicer, and also more accessible to users. 100% agreement. That's exactly how I want it to work, as well. More specifically, I'd expect `mark-active' to take a special `rectangle' value to mean that the current selection is a rectangular region. Also, I'd expect the rectangular highlighting to be done by moving the region-highlighting code to Elisp (using the previously-mentioned but vaporware before-redisplay-hook). As for how to store the rectangles on the kill-ring, I haven't really thought about it yet. We could maybe store them as strings with a special text-property annotation, or as lists of strings, or as a cons cell (rectange . STRING). The first option is probably best compatibility-wise, while the second would be a step in the direction of supporting general non-contiguous regions. Stefan