From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.devel Subject: Re: [kzeitler@lucent.com: Re: compose key on SUN keyboard creates 2 characters (and beeps)] Date: 12 Jan 2004 10:33:13 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073900276 11593 80.91.224.253 (12 Jan 2004 09:37:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2004 09:37:56 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jan 12 10:37:52 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AfyW8-0004nY-00 for ; Mon, 12 Jan 2004 10:37:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AfyW3-0001fK-00 for ; Mon, 12 Jan 2004 10:37:47 +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 1AfzQZ-00068S-Am for emacs-devel@quimby.gnus.org; Mon, 12 Jan 2004 05:36:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AfzQT-00066L-9u for emacs-devel@gnu.org; Mon, 12 Jan 2004 05:36:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AfzPx-0005vf-7E for emacs-devel@gnu.org; Mon, 12 Jan 2004 05:36:04 -0500 Original-Received: from [192.11.226.163] (helo=hoemail2.firewall.lucent.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AfzPw-0005vO-SL; Mon, 12 Jan 2004 05:35:32 -0500 Original-Received: from nbgif1.de.lucent.com (h135-246-31-82.lucent.com [135.246.31.82]) by hoemail2.firewall.lucent.com (Switch-2.2.8/Switch-2.2.0) with ESMTP id i0C9XGT27346; Mon, 12 Jan 2004 03:33:26 -0600 (CST) Original-Received: from sfsws1.de.lucent.com (sfsws1.de.lucent.com [135.246.31.38]) by nbgif1.de.lucent.com (8.11.7p1+Sun/8.11.7) with ESMTP id i0C9XEL21989; Mon, 12 Jan 2004 10:33:14 +0100 (MET) Original-Received: from sfsw51.de.lucent.com (sfsw51 [135.246.123.35]) by sfsws1.de.lucent.com (8.11.7p1+Sun/8.8.5) with ESMTP id i0C9XDr05912; Mon, 12 Jan 2004 10:33:13 +0100 (MET) Original-Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7p1+Sun/8.8.8) id i0C9XDp24242; Mon, 12 Jan 2004 10:33:13 +0100 (MET) X-Authentication-Warning: sfsw51.de.lucent.com: kzeitler set sender to kzeitler@lucent.com using -f Original-To: "Jan D." X-Kibo-Says: Plastic is the code of honor of everything. In-Reply-To: Original-Lines: 45 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 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:19140 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19140 >>>>> "Jan" == Jan D writes: Jan> Jan> I'm assuming these lines are to be added rather than subtracted since Jan> they are not in xterm.c 1.823. looks like I've exchanged old and new file again in my patch, sorry :-) Jan> The internals of XComposeStatus is intended to be hidden, i.e. can Jan> change at any time, so looking inside it might be unportable. But a yes I agree. Since emacs looks at every single event, there must be a way to tell emacs to ignore these events until the key is complete. I couldn't find a better way. Jan> check for > 0 (no need to limit ourselves to 1 or 2) can be done. But are you sure, this would amaze me? I thought when chars_matched is 3, emacs needs to handle the char, and as long as we're composing a character, we need to ignore it. Jan> we should do break instead of goto OTHER. I don't know when/how these 3 events that compose one char need to be dispatched. Jan> Checking for nbytes <= 0 is not an option as we would then miss Jan> several keys that returns 0 (function keys, the key, keypad Jan> keys ...). yes, you're right. Sorry, that wasn't a good idea, I have to admit :-(. Does the compose key work the way it's implemented now e.g. under GNU/Linux? Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kzeitler@lucent.com | ------------------------------------------ --- It's odd, and a little unsettling, to reflect upon the fact that English is the only major language in which "I" is capitalized; in many other languages "You" is capitalized and the "i" is lower case. -- Sydney J. Harris