From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?UTF-8?Q?Reich=C3=B6r?= Newsgroups: gmane.emacs.bugs Subject: bug#9666: 24.0.50; C-d has unexpected behaviour in CUA rectangle mode Date: Tue, 04 Oct 2011 15:06:37 +0200 Message-ID: References: <87pqidmcbh.fsf@escher.home> <87lit0ncey.fsf@escher.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317733670 24671 80.91.229.12 (4 Oct 2011 13:07:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2011 13:07:50 +0000 (UTC) Cc: 9666@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 04 15:07: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 1RB4il-0008Gy-5b for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2011 15:07:43 +0200 Original-Received: from localhost ([::1]:39059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB4ik-0005Yk-Ig for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2011 09:07:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB4ih-0005YU-0k for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2011 09:07:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RB4ia-0001q4-RJ for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2011 09:07:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB4ia-0001q0-OW for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2011 09:07:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RB4k1-0005fx-FQ for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2011 09:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan =?UTF-8?Q?Reich=C3=B6r?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2011 13:09:01 +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.131773369021755 (code B ref 9666); Tue, 04 Oct 2011 13:09:01 +0000 Original-Received: (at 9666) by debbugs.gnu.org; 4 Oct 2011 13:08:10 +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 1RB4jA-0005em-O1 for submit@debbugs.gnu.org; Tue, 04 Oct 2011 09:08:10 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RB4j7-0005ec-Ud for 9666@debbugs.gnu.org; Tue, 04 Oct 2011 09:08:07 -0400 Original-Received: from pchagakli.ge-research.com (68.186.193.aberger.at [193.186.169.68]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MH5lK-1RNmHo22wk-00E6FB; Tue, 04 Oct 2011 15:06:35 +0200 In-Reply-To: <87lit0ncey.fsf@escher.home> (Stephen Berman's message of "Tue, 04 Oct 2011 14:56:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Provags-ID: V02:K0:sVNGCJhVHNvvfCEnQ92eO9kNB2ynjYI4bmutJSw4Qx8 81SkqzmOCAEtMYMPdGSRGZQYmSSBb9ZFCkneu2cSt6bSnpdUjH 5vCCFigFcyoYsJvnzg4rtqzweuv1eZ7xFMwokRmW2hFwtv/Iss vMWuccYZq+bAZek/bbrs1u8GC6XURkp5ZxdE9w6NGjyE6bcVgC yZVtNUTff3KYRqOjJYwu3pc1rqf9vT2zgrJTL1Ui+Fizx72Rx5 JFA+BvKQLcOaT7m60NsC0Adm80o2tO4TT2LegTst2yPIcV1vIq gtZJNlFEpAWDJbSO1LZ2+XbcfltkRLD6l1Qp7gURQCJGAhR7rQ SCAmP5b9Q4lDfj+7V3tvIdJIucI3/CGyVSy+FiZAlTHJEQOuD7 WQHtVUDTvuI/A== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 04 Oct 2011 09:09:01 -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:52157 Archived-At: Stephen Berman writes: > On Tue, 04 Oct 2011 09:55:00 +0200 Stefan Reich=F6r wr= ote: > >> Stephen Berman writes: >> >>> On Tue, 04 Oct 2011 08:30:29 +0200 Stefan Reich=F6r = 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 exp= ected. > > 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). I assumed that C-d and are bound to the same function. I see that this is no longer the case - and this also the reason for the different behaviour in cua rectangle mode. I confirm that C-d does the expected thing. does not work as expec= ted. cua rectangle mode should treat delete-forward-char the same way as delete-= char.