all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tiagohenriques@lycos.co.uk (Tiago Henriques)
Subject: return and enter keys in emacs 21.3 on MacOSX 10.2
Date: 16 Jan 2003 09:41:15 -0800	[thread overview]
Message-ID: <c7f46aea.0301160941.2a770afb@posting.google.com> (raw)

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)

             reply	other threads:[~2003-01-16 17:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-16 17:41 Tiago Henriques [this message]
2003-01-16 20:02 ` return and enter keys in emacs 21.3 on MacOSX 10.2 Kai Großjohann
2003-01-17 11:52   ` Tiago Henriques
2003-01-17 15:19     ` Tiago Henriques
2003-01-17 15:45     ` Benjamin Riefenstahl
2003-01-19 22:12       ` Tiago Henriques

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c7f46aea.0301160941.2a770afb@posting.google.com \
    --to=tiagohenriques@lycos.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.