From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.devel Subject: change in X character input processing Date: 31 Oct 2002 10:55:28 +0000 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1036061792 20772 80.91.224.249 (31 Oct 2002 10:56:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 31 Oct 2002 10:56:32 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 187D00-0005Oh-00 for ; Thu, 31 Oct 2002 11:56:28 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 187D5Y-0006ia-00 for ; Thu, 31 Oct 2002 12:02:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 187D0v-0006Tz-00; Thu, 31 Oct 2002 05:57:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 187CzZ-0004LS-00 for emacs-devel@gnu.org; Thu, 31 Oct 2002 05:56:01 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 187Cz3-0003hm-00 for emacs-devel@gnu.org; Thu, 31 Oct 2002 05:56:00 -0500 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10) id 187Cz3-0003hf-00 for emacs-devel@gnu.org; Thu, 31 Oct 2002 05:55:29 -0500 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.35 #1 (Debian)) id 187Cz2-0004jP-00 for ; Thu, 31 Oct 2002 10:55:28 +0000 Original-To: emacs-devel@gnu.org Original-Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8989 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8989 I've changed the handling of character input under X to consider the definitions of keysyms rather than trying to decode everything for some locale which may be inappropriate. Thus, for instance, my euro key will work in a Latin-1 environment like the pound key (and doesn't depend on Latin-9 support in the X libraries). I think this DTRT generally, but if some sort of input doesn't work right, please let me know. There seems to be a shortage of useful documentation in this area. Note that a given keysym produces a character from a fixed charset, e.g. Odiaeresis always produces (make-char 'latin-iso8859-1 86). The Kana keysyms produce mule-unicode since I'm not sure how to map them onto CJK charsets from the defined unicodes; if anyone is sure how to translate them, please update the table in term/x-win.el which populates `x-keysym-table'. Note also that input via a Compose key and other sorts of X input methods will be different. Thus with typical XKB rules, `Compose e =3D' won't produce =A4 in a Latin-1 locale but `AltGr 4' will. (That's using X's Multi_key and Mode_switch.)