From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.devel Subject: Re: Problem with the RETURN key Date: Mon, 16 Dec 2002 19:12:09 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <7D9FD7FA-1159-11D7-AB00-00039398D61E@apache.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1040091220 32650 80.91.224.249 (17 Dec 2002 02:13:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 02:13:40 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18O7Eo-0008UU-00 for ; Tue, 17 Dec 2002 03:13:38 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18O7SY-0000sk-00 for ; Tue, 17 Dec 2002 03:27:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18O7Dx-0001DV-01 for emacs-devel@quimby.gnus.org; Mon, 16 Dec 2002 21:12:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18O7Dj-00019q-00 for emacs-devel@gnu.org; Mon, 16 Dec 2002 21:12:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18O7Dg-00011J-00 for emacs-devel@gnu.org; Mon, 16 Dec 2002 21:12:30 -0500 Original-Received: from shawidc-mo1.cg.shawcable.net ([24.71.223.10] helo=pd2mo3so.prod.shaw.ca) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18O7Dg-0000z7-00 for emacs-devel@gnu.org; Mon, 16 Dec 2002 21:12:28 -0500 Original-Received: from pd5mr3so.prod.shaw.ca (pd5mr3so-qfe3.prod.shaw.ca [10.0.141.144]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H78001PZRGD6P@l-daemon> for emacs-devel@gnu.org; Mon, 16 Dec 2002 19:12:13 -0700 (MST) Original-Received: from pn2ml2so.prod.shaw.ca (pn2ml2so-qfe0.prod.shaw.ca [10.0.121.146]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H78002D9RGE44@l-daemon> for emacs-devel@gnu.org; Mon, 16 Dec 2002 19:12:14 -0700 (MST) Original-Received: from owlbear.local.shawmail (h68-144-207-94.cg.shawcable.net [68.144.207.94]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H78008N1RGDNC@l-daemon> for emacs-devel@gnu.org; Mon, 16 Dec 2002 19:12:14 -0700 (MST) In-reply-to: <7D9FD7FA-1159-11D7-AB00-00039398D61E@apache.org> Original-To: Ovidiu Predescu User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 27 Original-cc: Steven Tamm X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10189 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10189 Ovidiu Predescu writes: > [...] Here are the results of running (read-event): > > - external keyboard: > keypad return key: 'kp-enter' > normal return key: 'return' ^^^^^^ > - built-in keyboard: > return key with "function" button pressed: 'kp-enter' > normal return key: 'return' ^^^^^^ Then there is no problem with the C code recognizing the return key on the Powerbook G4. What does `C-h k RET' say? Mine says: RET (translated from ) runs the command newline ... Can you try running without a start-up file? > I was wrong, my solution worked in limited cases only. Replacing in > the keycode_to_xkeysym_table array the '\x0d' with 0 solved the > problem for me. Please don't change the code arbitrarily without understanding it. It is there to make Emacs recognize C-return, among other things.