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: return and enter keys in emacs 21.3 on MacOSX 10.2 Date: 16 Jan 2003 09:41:15 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1042739421 11456 80.91.224.249 (16 Jan 2003 17:50:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2003 17:50:21 +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 18ZE9g-0002yT-00 for ; Thu, 16 Jan 2003 18:50:16 +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 18ZE4z-0002wo-04 for gnu-help-gnu-emacs@m.gmane.org; Thu, 16 Jan 2003 12:45:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 56 Original-NNTP-Posting-Host: 194.117.22.137 Original-X-Trace: posting.google.com 1042738875 19984 127.0.0.1 (16 Jan 2003 17:41:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 16 Jan 2003 17:41:15 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:109039 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:5567 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5567 Hi, I'm using emacs 21.3.50.5 with MacOSX 10.2.3 (Jaguar, update 3). Unfortunately I'm having a bit of a problem with, since my Return key doesn't seem to work correctly under Jaguar. Using my 500MHz iBook, the only way I can make it work is by pressing Fn-Return or Ctrl-M, which is annoying. Using an external USB keyboard I still have the same problem, the only difference being that the KeyPad Enter key seems to be recognized as return. I understand that these 2 separate keys correspond to 2 different keycodes, and usually are associated with the following ascii characters: Return: ascii 13 Enter: ascii 3 It seems emacs is only accepting ascii 3 for Return, instead of accepting 13 or both. How can I configure my .emacs file so that it maps Return to Enter, making the Return key emit ascii 3? Or am I looking at it the wrong way? I've googled for the answer for one and a half days, and was unable to find a solution. Thanks in advance for any advice, Tiago Henriques PS: In case of doubt, here is my .emacs file: (setq mac-command-key-is-meta nil) (global-set-key [(alt v)] 'yank) (global-set-key [(alt c)] 'kill-ring-save) (global-set-key [(alt x)] 'kill-region) (global-set-key [(alt q)] 'save-buffers-kill-emacs) (global-set-key [(alt z)] 'undo) (setq load-path (cons "~/Documents/emacs/" load-path)) (setq load-path (cons "~/Documents/emacs/rozenberg/" load-path)) (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist)) (setq interpreter-mode-alist (cons '("python" . python-mode) interpreter-mode-alist)) (autoload 'python-mode "python-mode" "Python editing mode." t) (add-hook 'python-mode-hook '(lambda () (define-key py-mode-map "\C-c\C-c" 'py-execute-prog) (define-key py-mode-map "\C-c\C-g" 'py-call-pdb) (define-key py-mode-map "\C-c\C-w" 'pychecker))) (load "py-mode-ext.el") ;;; add these lines if you like color-based syntax highlighting (global-font-lock-mode t) (setq font-lock-maximum-decoration t)