Subject: bug#18952: 24.4; delete weirdness in cua mode

From: Andy Grover <[email-masked]>
Date: Wed, 05 Nov 2014 11:02:02 -0800

On 11/05/2014 08:03 AM, Eli Zaretskii wrote:
>> Date: Tue, 04 Nov 2014 23:11:41 -0800
>> From: Andy Grover <[email-masked]>
>>
>>
>> to reproduce:
>> 1) hold down up or down-arrow while editing init.el then release
>> 2) hit backspace
>>
>> expected behavior: one character deleted
>>
>> existing behavior: seemingly-random huge amount of stuff in the buffer
>> deleted
> 
> Are you sure you didn't type S-<down> several times?  This:
> 
>> Recent input:
>> C-s <up> <prior> <prior> <prior> <prior> <prior> <prior>
>> <next> <next> <down> <down> <down> <down> <down> <down>
>> <down> <down> <S-down> <S-down> <S-down> <S-down> <S-down>
>> <S-down> <S-down> <S-down> <S-down> <S-down> <S-down>
>> <S-down> C-c <timeout> <up> <up> <up> <up> <up> <right>
>> <up> <up> <right> <right> <right> <right> <right> <right>
>> <right> <right> <right> <right> <right> <right> <right>
>> <backspace> C-z <backspace> C-z <up> <up> <up> <up>
> 
> says you did.
> 

Yes exactly, define a region with shift-down, then arrow down (region
disappears) then hitting backspace deletes to start of region, instead
of a single character.

Setting transient-mark-mode makes the problem go away. But isn't
cua-mode supposed to work without transient-mark-mode?

-- Andy