bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9666: 24.0.50; C-d has unexpected behaviour in CUA rectangle mode


From: Stefan Reichör
Subject: bug#9666: 24.0.50; C-d has unexpected behaviour in CUA rectangle mode
Date: Tue, 04 Oct 2011 09:55:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Stephen Berman <stephen.berman@gmx.net> writes:

> On Tue, 04 Oct 2011 08:30:29 +0200 Stefan Reichör <stefan@xsteve.at> 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).
When this is the case the rectangle is not deleted.

When delete is bound to delete-char then the rectangle is deleted as expected.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]