From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: is this possible using the new rectangle mark mode? Date: Fri, 31 Jan 2014 10:28:08 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391182100 8699 80.91.229.3 (31 Jan 2014 15:28:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jan 2014 15:28:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Darren Hoo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 31 16:28:27 2014 Return-path: Envelope-to: ged-emacs-devel@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 1W9G15-0003Uw-GF for ged-emacs-devel@m.gmane.org; Fri, 31 Jan 2014 16:28:27 +0100 Original-Received: from localhost ([::1]:56358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9G15-0008VX-2c for ged-emacs-devel@m.gmane.org; Fri, 31 Jan 2014 10:28:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9G0v-0008TD-9K for emacs-devel@gnu.org; Fri, 31 Jan 2014 10:28:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9G0n-0004Pu-Vq for emacs-devel@gnu.org; Fri, 31 Jan 2014 10:28:17 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:44680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9G0n-0004Po-Rr for emacs-devel@gnu.org; Fri, 31 Jan 2014 10:28:09 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFHO+J67/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46496728" Original-Received: from 206-248-158-187.dsl.teksavvy.com (HELO pastel.home) ([206.248.158.187]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 31 Jan 2014 10:28:09 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 03B356035F; Fri, 31 Jan 2014 10:28:08 -0500 (EST) In-Reply-To: (Darren Hoo's message of "Fri, 31 Jan 2014 21:39:47 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169277 Archived-At: > kill a rectangle marked region ending with a line that is not the > longest line like: > aaaaaaaaaaaaaaaaaaaaa > bbbbbbbbbbbbbbbb > ccccccccc The "new rectangle-mark-mode" just provides a different UI to the same old rectangle commands available since forever. So yes for the above: put point before the first "c" then C-x SPC then move cursor to after the last "a" and finally C-w. > and yank it to these lines: > 1 > 2 > 3 Yup: put point before "1" and hit C-y. > and I want it to be either this: > aaaaaaaaaaaaaaaaaaaaa1 > bbbbbbbbbbbbbbbb2 > ccccccccc3 No, this is not a rectangle. > or this one: > aaaaaaaaaaaaaaaaaaaaa1 > bbbbbbbbbbbbbbbb 2 > ccccccccc 3 Yes, that's the one you should get. And yes, the first question's answer would have been "no" if the longest line was the "bbb" one. Stefan