jed-users mailing list

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

Re: Problem with ` character, needs two presses


G. Milde <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
> if (_slang_utf8_ok)
>    setkey("quoted_insert", "°");
> else
>    setkey("quoted_insert", "\d176");

I think that you can simplify this using:

   setkey ("quoted_insert", "\x{B0}");

In non-UTF-8 mode, \x{B0} will expand to the byte 0xB0, but in UTF-8
mode, \x{B0} will expand to the UTF-8 encoding of the character U+B0.
Note that \x{B0} and \xB0 are not the same in UTF-8 mode.

--John

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


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