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 16:50:08 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <7D9FD7FA-1159-11D7-AB00-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 1040086234 10008 80.91.224.249 (17 Dec 2002 00:50:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 00:50:34 +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 18O5wN-0002b8-00 for ; Tue, 17 Dec 2002 01:50:31 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18O6A5-00007T-00 for ; Tue, 17 Dec 2002 02:04:41 +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 18O5wT-0003rB-0A for emacs-devel@quimby.gnus.org; Mon, 16 Dec 2002 19:50:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18O5w7-0003nf-00 for emacs-devel@gnu.org; Mon, 16 Dec 2002 19:50:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18O5w4-0003ji-00 for emacs-devel@gnu.org; Mon, 16 Dec 2002 19:50:14 -0500 Original-Received: from rwcrmhc51.attbi.com ([204.127.198.38]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18O5w4-0003iT-00 for emacs-devel@gnu.org; Mon, 16 Dec 2002 19:50:12 -0500 Original-Received: from apache.org (12-234-84-6.client.attbi.com[12.234.84.6]) by rwcrmhc51.attbi.com (rwcrmhc51) with SMTP id <2002121700500805100jfoire>; Tue, 17 Dec 2002 00:50:08 +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:10185 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10185 Hi Andrew, Thanks a lot for the quick reply! On Monday, Dec 16, 2002, at 12:17 US/Pacific, Andrew Choi wrote: > Ovidiu Predescu writes: > >> With the latest CVS I get a really weird problem on MacOS X. The >> return key does not seem to work anymore on my TiBook 800MHz. The only >> way I can make it to work is if I press the Function key on the >> keyboard. When I hook up a USB keyboard to the laptop, the return key >> on this is still not functional, but the return key on the keypad >> works just fine. [...] > > I don't have access to a TiBook so I cannot check this. Please check > whether RET is recognized at all by Emacs. I.e., what does > > (read-event) > > evaluate to when you hit the return key? The most recent change to key > handle I can think of is the following. This is indeed interesting. 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' 'kp-enter' is bound to 'newline', but 'return' is bound to nothing, which is why it doesn't work. To alleviate the problem I defined: (global-set-key [return] 'newline) in my .emacs. But it would be good to have this work with the stock Emacs. > 2002-10-04 Steven Tamm > > * macterm.c (keycode_to_xkeysym_table): Change return to be > treated like an X keysym. > > But it was done quite a while ago. But you should probably start > looking there. Up until very recently I've been using CVS sources extracted from on September 27. This problem started affecting me only in the past few days. Regards, -- Ovidiu Predescu http://webweavertech.com/ovidiu/weblog/