[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: insert-char as alias to ucs-insert
From: |
Eli Zaretskii |
Subject: |
Re: insert-char as alias to ucs-insert |
Date: |
Mon, 16 Jul 2012 18:58:45 +0300 |
> From: Thien-Thi Nguyen <address@hidden>
> Date: Mon, 16 Jul 2012 12:31:04 +0200
> Cc: address@hidden, Leo <address@hidden>, address@hidden
>
> () Chong Yidong <address@hidden>
> () Mon, 16 Jul 2012 17:16:20 +0800
>
> One significant difference is that ucs-insert errors out if the
> argument is larger than #x10FFFF, whereas insert-char does
> not---it tests for CHARACTERP, which accepts up to #x3FFFFF.
> That's because the code space of utf-8-emacs is larger than
> Unicode. Off the top of my head, making it more permissive is
> OK, i.e. we should allow insert-char with arguments of up to
> #x3FFFFF. Anyone have a different opinion?
>
> So this would break code that depends on ‘ucs-insert’ throwing
> this range error. Is there a lot of code like that in the wild?
If there is such a code, it is already broken, because a character in
Emacs can really have values up to #x3FFFFF.
> Regardless, it feels wrong to discard this check.
Can you explain why?
- insert-char as alias to ucs-insert, René Kyllingstad, 2012/07/12
- Re: insert-char as alias to ucs-insert, Leo, 2012/07/13
- Re: insert-char as alias to ucs-insert, Chong Yidong, 2012/07/14
- Re: insert-char as alias to ucs-insert, René Kyllingstad, 2012/07/15
- Re: insert-char as alias to ucs-insert, Chong Yidong, 2012/07/16
- Re: insert-char as alias to ucs-insert, Thien-Thi Nguyen, 2012/07/16
- Re: insert-char as alias to ucs-insert,
Eli Zaretskii <=
- Re: insert-char as alias to ucs-insert, Thien-Thi Nguyen, 2012/07/16
- Re: insert-char as alias to ucs-insert, Jason Rumney, 2012/07/17
- Re: insert-char as alias to ucs-insert, Stefan Monnier, 2012/07/16