gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] [OT] Unicode meets Scheme strings draft


From: Tom Lord
Subject: Re: [Gnu-arch-users] [OT] Unicode meets Scheme strings draft
Date: Fri, 23 Jan 2004 08:03:40 -0800 (PST)




    > From: Junio C Hamano <address@hidden>

    > Let's take one step back a bit.  What is a "character" in the
    > context of this thread (i.e. Pika)?

A unicode codepoint, plus buckybits.   


    > I do not understand why you would want *any* bucky bit.  For
    > example, what does the bucky bit "Shift" really mean?  How would
    > a character #\S-A be different from #\S-a?  Is #\S-a really the
    > character "a" with bucky bit "Shift" on?  Or is it simply a
    > character "A", which is different from the character "a"?  Which
    > one of the following is true: (eq \#S-a \#A) (eqv \#S-a \#A)
    > (equal \#S-a \#A)?


(equal? #\S-a #\A) => #f


    > For that matter, What is the difference between #\C-a, #\C-A?
    > How about #\U+0001?

(equal? #\C-a #\C-A) => #f
(equal? #\C-a #\U+0001) => #f
(equal? #\C-A #\U+0001) => #f

(eq? #\ctl-a #\U+0001) => #t
(eq? #\ctl-a #\soh) => #t
(eq? #\ctl-< #\C-<) => #t

(char->integer #\C-A) => 4194369     ; or something like that
(char->integer #\ctl-<) => 4194364   ; or something like that
(char->integer #\ctl-a) => 1

I haven't completely decided yet how to handle something like:

        (global-set-key #\C-a 'beginning-of-line)

My current thinking is that if a keyboard transmits #\U+0001, and
there is no binding for that, the event is converted to #\C-a and
retried.   Of course, under X11, we're likely to convert the event
into #\C-a in the first place.

Hmm.   In fact, that's pretty nice.   For example, it would let 
me have:

        (global-set-key #\C-v 'x11-scroll-up)
        (global-set-key #\ctl-v 'terminal-scroll-up)

-t


        




reply via email to

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