From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7522: 24.0.50; point after `clear-rectangle' and `string-rectangle' Date: Fri, 17 Dec 2010 07:07:27 -0800 Message-ID: <47A673391EF34818915D0933C0495549@us.oracle.com> References: <11F39F208FB54E6290AE378C52AB17C6@us.oracle.com> <87pqt01qf0.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292599516 23662 80.91.229.12 (17 Dec 2010 15:25:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Dec 2010 15:25:16 +0000 (UTC) Cc: 7522@debbugs.gnu.org To: "'Chong Yidong'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 17 16:25:11 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTcBD-0003Qq-GA for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Dec 2010 16:25:11 +0100 Original-Received: from localhost ([127.0.0.1]:54526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTcBC-0008OD-KO for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Dec 2010 10:25:10 -0500 Original-Received: from [140.186.70.92] (port=36905 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTc91-0006SR-Qc for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2010 10:22:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTc8w-0003Jj-4T for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2010 10:22:55 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTc8w-0003Jf-2w for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2010 10:22:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PTbqj-0007B6-PL; Fri, 17 Dec 2010 10:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Dec 2010 15:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7522 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7522-submit@debbugs.gnu.org id=B7522.129259823427579 (code B ref 7522); Fri, 17 Dec 2010 15:04:01 +0000 Original-Received: (at 7522) by debbugs.gnu.org; 17 Dec 2010 15:03:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTbqb-0007Al-TG for submit@debbugs.gnu.org; Fri, 17 Dec 2010 10:03:54 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTbqZ-0007AZ-4L for 7522@debbugs.gnu.org; Fri, 17 Dec 2010 10:03:51 -0500 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBHFABpM007003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 17 Dec 2010 15:10:12 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBHFA6pY024563; Fri, 17 Dec 2010 15:10:10 GMT Original-Received: from abhmt014.oracle.com by acsmt355.oracle.com with ESMTP id 863251771292598450; Fri, 17 Dec 2010 07:07:30 -0800 Original-Received: from dradamslap1 (/10.159.231.83) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 17 Dec 2010 07:07:30 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87pqt01qf0.fsf@stupidchicken.com> Thread-Index: Acud7gtyR5xyd6HpQiaKKlq62DqhMAADUMMg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 17 Dec 2010 10:04:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42592 Archived-At: > > I'm no expert on this. But what is the rationale for > > leaving point at bol after such commands. Wouldn't it make > > more sense to put point at the same corner of the replaced > > rectangle as it was for the rectangle that was replaced? > > I can't reproduce this. After `C-x r t' or `C-x r c', point is at a > corner of the replaced/cleared rectangle. Please provide an exact > recipe. Instead of "replaced rectangle" I should have said "replacing rectangle". Select a rectangle, with point at the lower right corner and mark at the upper left. Then C-x r t. Type `EEE' as the string to replace each row of the rectangle. The cursor is left at the beginning, not the end, of the `EEE' string on the last row. IOW, a rectangle of E's replaces the selected rectangle, but point is now at neither the upper left nor the lower right. This can make a difference when combining such an action with other operations, including other rectangle operations. You should be able to do `C-x C-x' to select the E's rectangle. Instead, you get the region from the first E to the first E in the last row, which corresponds to an empty rectangle (no width).