From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#9666: 24.0.50; C-d has unexpected behaviour in CUA rectangle mode Date: Tue, 04 Oct 2011 14:56:05 +0200 Message-ID: <87lit0ncey.fsf@escher.home> References: <87pqidmcbh.fsf@escher.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317733007 19952 80.91.229.12 (4 Oct 2011 12:56:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2011 12:56:47 +0000 (UTC) Cc: 9666@debbugs.gnu.org To: Stefan =?UTF-8?Q?Reich=C3=B6r?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 04 14:56:43 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RB4Y6-0003ok-FF for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2011 14:56:42 +0200 Original-Received: from localhost ([::1]:38155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB4Y6-0003S7-3W for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2011 08:56:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB4Y2-0003Qs-VS for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2011 08:56:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RB4Xy-0008OH-Qx for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2011 08:56:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB4Xy-0008OD-PO for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2011 08:56:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RB4ZP-0005Od-AW for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2011 08:58:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2011 12:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9666-submit@debbugs.gnu.org id=B9666.131773306420699 (code B ref 9666); Tue, 04 Oct 2011 12:58:03 +0000 Original-Received: (at 9666) by debbugs.gnu.org; 4 Oct 2011 12:57:44 +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 1RB4Z5-0005No-9q for submit@debbugs.gnu.org; Tue, 04 Oct 2011 08:57:43 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RB4Yz-0005Nc-2w for 9666@debbugs.gnu.org; Tue, 04 Oct 2011 08:57:41 -0400 Original-Received: (qmail invoked by alias); 04 Oct 2011 12:56:06 -0000 Original-Received: from i59F541DB.versanet.de (EHLO escher.home) [89.245.65.219] by mail.gmx.net (mp007) with SMTP; 04 Oct 2011 14:56:06 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/ddPtM/cHdcOpLvvEK73YZ4QGaCO/ci20zw4r4BL 92MmJ//AqfJdmN Original-Received: by escher.home (Postfix, from userid 1000) id F11EA25F0B; Tue, 4 Oct 2011 14:56:05 +0200 (CEST) In-Reply-To: ("Stefan =?UTF-8?Q?Reich=C3=B6r?="'s message of "Tue, 04 Oct 2011 09:55:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 04 Oct 2011 08:58:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52153 Archived-At: On Tue, 04 Oct 2011 09:55:00 +0200 Stefan Reich=C3=B6r w= rote: > Stephen Berman writes: > >> On Tue, 04 Oct 2011 08:30:29 +0200 Stefan Reich=C3=B6r wrote: >> >>> Just activate cua mode, select an rectangle and hit DEL or C-d: >>> M-x cua-mode >>> C-RET >>> select rectangle >>> DEL >>> >>> I expect this command to delete the whole rectangle >>> >>> But it deletes only one character and deactivates the marked >>> rectangle >> [...] >>> In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) >>> of 2011-09-12 on 3249CTO >>> Windowing system distributor `Microsoft Corp.', version 5.1.2600 >>> configured using `configure --with-gcc (4.5) --no-opt' >> >> I see somewhat different behavior with the above recipe: DEL (backspace >> key), deletes the one-column rectangle immediately following the >> selected rectangle, and does not deactivate (unhighlight) the latter; >> C-d, on the other hand, does delete the selected rectangle. This is on >> GNU Emacs 24.0.90.3 (i686-suse-linux-gnu, GTK+ Version 2.22.1) of >> 2011-10-04 on escher. > > Digging further into this problem. > There are some modes that bind delete (not BS) to delete-forward-char (e.= g. the > *scratch* buffer). Ah, I guess you also meant above, not DEL. With I also see what you reported. This is indeed different from the behavior of with an active (highlighted) region. > When this is the case the rectangle is not deleted. > When delete is bound to delete-char then the rectangle is deleted as expe= cted. But the standard binding of delete-char is C-d, which you (meant to) report above behaves like (assuming you meant that key instead of DEL); see also your Subject header. Whereas, as I said, I do get deletion with C-d. So the unexpected behavior in cua-mode is (just) with (bound to delete-forward-char), is that what you're saying? If so, I agree (assuming, that is, that should behave the same with rectangles in cua-mode and with active regions outside of cua-mode; I don't know, since I haven't made much use of cua-mode). Steve Berman