jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Remap ^M


On  2.12.04, John E. Davis wrote:
> G. Milde <g.milde@xxxxxx> wrote:
> > * let x_set_keysym support a wider range of keysyms, including
> >   the ISO_Left_Tab (i.e. Shift-Tab) so it will work with 
> >   Xfree86-4 "out of the box".
> >   
> >   %  one of the following should work:
> >          x_set_keysym(0xFE20, '$', Key_Shift_Tab);
> >          x_set_keysym(0xFE20, 0, Key_Shift_Tab);
> 
> I will to it this weekend--- it should be easy to do.

Good news. Thank you for your efforts.

Would it be possible to include support for multi-modifier-pressed too?

What I miss for wmark/cuamark and some emulations is recognising
"Ctrl-Shift-somekey", i.e. something like

   The `shift' argument is an integer with the
   following meanings:

       0   : unmodified key
       '$' : shifted
       '^' : control
       '&' : shift + control

   Any other value for shift will default to 0 (unshifted).

(or whatever character is sensible for this to encode).

This would make me perfectly happy and would hopefully allow a common
interface with Markos upcoming fljed.

 
> ... I recommend that the return-key or its equivalent generate a \r
> character, as is assumed now.  If the terminal can distinguish between
> the Ctrl-M and the return-key, and you want to exploit that difference,
> then map Ctrl-M to something other than \r.

IMHO, it would be better to map the Return key -- this is a bit more of
work for the moment but clearly more transparent:

  * it would work analog to the Delete key mechanism, where in xjed
    Key_Del == "\e[3~" and Ctrl-H = ^H and Ctrl-? = ^?
    
  * it would be hard to remember that all Ctrl-[A-_] keypresses generate
    ^A ... ^_ *except* Ctrl-M.
    
Therefore I propose a Key_Return variable in keydefs.sl that defaults
to \r but can be set to a different value if the terminal supports that.
Emulations would then bind Key_Return to newline-indent and the
minibuffer to mini_exit_minibuffer.


Günter

-- 
G.Milde web.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2004 date index] [2004 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]