From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ovidiu Predescu Newsgroups: gmane.emacs.devel Subject: Re: Problem with the RETURN key Date: Mon, 16 Dec 2002 23:15:07 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <453EDB86-118F-11D7-B29E-00039398D61E@apache.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v548) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1040109344 16270 80.91.224.249 (17 Dec 2002 07:15:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 07:15:44 +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 18OBx8-0004EG-00 for ; Tue, 17 Dec 2002 08:15:42 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18OCAy-0003Xy-00 for ; Tue, 17 Dec 2002 08:30:00 +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 18OBxO-0000M4-0C for emacs-devel@quimby.gnus.org; Tue, 17 Dec 2002 02:15:58 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18OBws-0008Gh-00 for emacs-devel@gnu.org; Tue, 17 Dec 2002 02:15:26 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18OBwd-0007Vn-00 for emacs-devel@gnu.org; Tue, 17 Dec 2002 02:15:18 -0500 Original-Received: from sccrmhc01.attbi.com ([204.127.202.61]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18OBwb-0007Ng-00 for emacs-devel@gnu.org; Tue, 17 Dec 2002 02:15:10 -0500 Original-Received: from apache.org (12-234-84-6.client.attbi.com[12.234.84.6]) by sccrmhc01.attbi.com (sccrmhc01) with SMTP id <2002121707150700100r51kpe>; Tue, 17 Dec 2002 07:15:07 +0000 Original-To: Andrew Choi In-Reply-To: X-Mailer: Apple Mail (2.548) 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:10198 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10198 On Monday, Dec 16, 2002, at 18:12 US/Pacific, Andrew Choi wrote: > 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? The result is " is undefined". This happens with no startup 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. I just wanted to verify this is the cause of the problem, and it seems to be indeed. Any ideas on how to proceed further? Best regards, -- Ovidiu Predescu http://webweavertech.com/ovidiu/weblog/