From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tiagohenriques@lycos.co.uk (Tiago Henriques) Newsgroups: gmane.emacs.help Subject: Re: return and enter keys in emacs 21.3 on MacOSX 10.2 Date: 17 Jan 2003 07:19:59 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84ptqwn9r4.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1042816977 18592 80.91.224.249 (17 Jan 2003 15:22:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2003 15:22:57 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ZYKc-0004pR-00 for ; Fri, 17 Jan 2003 16:22:54 +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 18ZYJ3-00052Q-04 for gnu-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2003 10:21:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 194.117.22.137 Original-X-Trace: posting.google.com 1042816800 24407 127.0.0.1 (17 Jan 2003 15:20:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 17 Jan 2003 15:20:00 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:109078 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5606 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5606 > It seems that the return key is unassigned. How can I assign it to run > the command newline, similarly to the keypad-enter key? I added the following line to my .emacs file: (global-set-key [return] 'newline) and now I can use the main keyboard's key as normal when typing in a standard buffer. However, when I use the mini-buffer (e.g. when visiting a file with C-x C-f) it doesn't seem to work, while both C-m amd do work. It seems that instead of assigning the command "newline" to the return key I need to translate to RET, as emacs is apparently already doing with : C-h c : RET (translated from ) runs the comand newline How can I do this translation?