From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: James Davidson Newsgroups: gmane.emacs.help Subject: Re: Carbon Emacs binding to Enter key Date: Tue, 21 Dec 2004 11:53:21 -0800 Organization: Sun Microsystems Corporation Message-ID: <41C87F31.5060405@sun.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1103658875 17839 80.91.229.6 (21 Dec 2004 19:54:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2004 19:54:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 21 20:54:30 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cgq5W-0002HC-00 for ; Tue, 21 Dec 2004 20:54:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CgqG1-0007MV-L7 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2004 15:05:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed.pnap.net!brmea-news-1.sun.com!news1nwk.sfbay.sun.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: d-mpk16-78-171.sfbay.sun.com Original-X-Trace: news1nwk.SFbay.Sun.COM 1103658802 17616 129.146.78.171 (21 Dec 2004 19:53:22 GMT) Original-X-Complaints-To: usenet@news1nwk.sfbay.sun.com Original-NNTP-Posting-Date: Tue, 21 Dec 2004 19:53:22 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:127454 X-Originally-To: Tiago Maduro-Dias Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22903 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22903 On 12/20/04 6:41 PM, Tiago Maduro-Dias wrote: > Hi! > > I've recently "discovered" the usefulness of the enter key (the one next > to the arrow keys and the space-bar), at least on my laptop's keyboard, > as an alternative to the regular return key. But I also seem to have > encountered an interesting issue (read "feature"?) with Carbon Emacs > 21.3.50 (on Mac OSX Panther). > > When I press the key, the event seems to be attached to C-c. In fact, > pressing it twice will result in the obvious C-c C-c and C-h c ends up > with "Describe key briefly: C-c-" on my minibuffer (waiting for another > event). > > If I run both the original emacs-21.2.1 or emacs-21.3.50 from > Terminal.app (with either emacs -nw or emacs -q -nw), the enter key will > behave as expected (by me at least). If I use the faithful xterm, then > the behaviour just described for Carbon Emacs happens again. This makes > sense to me, since Terminal.app is interpreting the strokes, and uses > the smilingly standard macosx interpretation for the particular key. > > So, how can I go about forcing the key to bind to what I want it to? > (character 13, newline, or something of the sort)? > > Thank you in advance, > > Tiago Maduro-Dias. > You may need a package like ucontrol Most Mac OSX Emacs users use this to rebind the caps lock key into control. It also supports rebinding of the enter key into other things; a common usage is to rebind it to 'fn', so that page-up and page-down can be done with one hand. -Jim