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 22:22:20 -0400 Message-ID: References: <5088281E.1080208@gmail.com> <83625zbljf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351131788 10552 80.91.229.3 (25 Oct 2012 02:23:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2012 02:23:08 +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 04:23:16 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 1TRD6I-0008LG-1H for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2012 04:23:14 +0200 Original-Received: from localhost ([::1]:54953 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRD6A-0008Hc-74 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 22:23:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRD67-0008HD-BN for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 22:23:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRD66-0006P6-3u for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 22:23:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRD66-0006P0-18 for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 22:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TRD82-00020j-MP for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2012 22:25: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 02:25: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.13511318717687 (code B ref 12723); Thu, 25 Oct 2012 02:25:02 +0000 Original-Received: (at 12723) by debbugs.gnu.org; 25 Oct 2012 02:24:31 +0000 Original-Received: from localhost ([127.0.0.1]:60266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRD7X-0001zw-2X for submit@debbugs.gnu.org; Wed, 24 Oct 2012 22:24:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:29617) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRD7U-0001zj-NX for 12723@debbugs.gnu.org; Wed, 24 Oct 2012 22:24:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu0/O+LFW/2dsb2JhbABEtBGBCIIVAQEEAVYcBwULCy0HBwsUGA0kiBwFugmNGoMqA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="202672770" Original-Received: from 206-248-177-86.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.177.86]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Oct 2012 22:22:21 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id DA510AE4BB; Wed, 24 Oct 2012 22:22:20 -0400 (EDT) In-Reply-To: <83625zbljf.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 24 Oct 2012 23:35:48 +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:66009 Archived-At: > How would such a rectangular highlighting behave when some of the text > in the region is R2L and some L2R? Will it select text in visual > order or in logical (buffer) order? The rectangle operations do not currently pay attention to this (they work on logical order) and the highlighting would do the same since the highlighting is there to make visible what the rectangle operations would/will do. > Anyway, doing this kind of stuff in Lisp is not trivial even if we > disregard the bidirectional text issue, because variable-size fonts, > double-width characters, composed characters, display strings, and > other display atrocities complicate the 1:1 relation between buffer > text and what's on the glass. Similarly, variable-width fonts and stuff would not require more work in the highlighting than in kill-rectangle. I'm not saying they're not relevant, but as long as kill-rectangle doesn't take them into account, the highlighting shouldn't either. Stefan