nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] delete a marked region or line without affectin


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] delete a marked region or line without affecting the cutbuffer
Date: Wed, 24 Oct 2018 21:09:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

>>>             case 1:
>>> -                   if (keycode >= 0x80)
>>> +                   if (keycode == KEY_DC)
>>> +                           retval = altdelete;
>>
>> No, this will not be added either.  <Esc> <Del> will not be equivalent
>> to <Alt+Del>, just like <Esc> <Enter> is not equivalent to <Alt+Enter>
>> and <Esc> <Down> is not equivalent to <Alt+Down>, and so on.
> 
> M-Del doesn't work in urxvt without it.

Hmm!  The Alt+arrow combinations don't work either on urxvt (without -K,
and do something unexpected with -K).  These things will have to be fixed
separately, not as part of this patch.

>>> +   else if (retval == altdelete) {
>>> +           meta_key = TRUE;
>>> +           return ALT_DELETE;  
>>
>> Why does 'meta_key' need to be set?  It is not set for the other
>> 'ALT_' keystrokes.  Same thing further down.
> 
> It doesn't work without it.

Ow...  The assign_keyinfo() make an exception for the arrow keys.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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