From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marko Rauhamaa Newsgroups: gmane.emacs.devel Subject: Latin-3 XKeysyms Date: 10 Nov 2003 23:35:51 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068536524 24607 80.91.224.253 (11 Nov 2003 07:42:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2003 07:42:04 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Nov 11 08:42:02 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AJTA2-0007yw-00 for ; Tue, 11 Nov 2003 08:42:02 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AJTA1-0006cF-00 for ; Tue, 11 Nov 2003 08:42:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AJU6K-0001lE-Ao for emacs-devel@quimby.gnus.org; Tue, 11 Nov 2003 03:42:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AJU5y-0001j9-5b for emacs-devel@gnu.org; Tue, 11 Nov 2003 03:41:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AJU5Q-0000tG-Iz for emacs-devel@gnu.org; Tue, 11 Nov 2003 03:41:51 -0500 Original-Received: from [209.77.185.85] (helo=lumo.pacujo.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AJU5O-0000l8-IF for emacs-devel@gnu.org; Tue, 11 Nov 2003 03:41:18 -0500 Original-Received: by lumo.pacujo.net (Postfix, from userid 500) id E89663F39B; Mon, 10 Nov 2003 23:35:51 -0800 (PST) Original-To: emacs-devel@gnu.org Original-Lines: 34 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17766 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17766 After many years of frustration I finally took the bull by the horns and figured out why emacs 21.3 still ignores Latin-3 XKeysyms like XK_Ccircumflex. In fact, here's a simple patch that fixes the problem: ======================================================================== --- src/keyboard.c.bak 2003-11-10 23:30:13.000000000 -0800 +++ src/keyboard.c 2003-11-10 23:29:52.000000000 -0800 @@ -4670,6 +4670,12 @@ /* A function key. The symbol may need to have modifier prefixes tacked onto it. */ case non_ascii_keystroke: + if (event->code >= 0x200 && event->code < 0x300) { + Lisp_Object lispy_c; + + XSETFASTINT (lispy_c, event->code + 0x700); + return lispy_c; + } button_down_time = 0; for (i = 0; i < sizeof (lispy_accent_codes) / sizeof (int); i++) ======================================================================== (I hearby donate the patch to the FSF. I created it on my own computer in my home in California, where slave contracts are not enforceable. I certify that no other party can possibly have any claim to the patch. In fact, since those lines are an almost verbatim copy of a few lines above, I shouldn't have any claim to it to begin with.) Marko -- Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/