From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.help Subject: Re: Return doesn't work any more Date: Thu, 15 May 2003 18:21:14 -0700 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: main.gmane.org 1053048129 14070 80.91.224.249 (16 May 2003 01:22:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 May 2003 01:22:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 16 03:22:08 2003 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 19GTtr-0003aO-00 for ; Fri, 16 May 2003 03:20:44 +0200 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 19GTv3-0001mO-09 for gnu-help-gnu-emacs@m.gmane.org; Thu, 15 May 2003 21:21:57 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19GTuZ-0000xy-00 for help-gnu-emacs@gnu.org; Thu, 15 May 2003 21:21:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19GTuP-0000Xf-00 for help-gnu-emacs@gnu.org; Thu, 15 May 2003 21:21:18 -0400 Original-Received: from renfield.synergymicro.com ([153.105.4.30] helo=synergymicro.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GTuO-0000L2-00 for help-gnu-emacs@gnu.org; Thu, 15 May 2003 21:21:16 -0400 Original-Received: from synergy.synergy.encinitas.ca.us ([153.105.4.29]) by synergymicro.com (8.9.3/8.9.3) with ESMTP id SAA28350 for ; Thu, 15 May 2003 18:22:42 -0700 Original-Received: from [198.17.100.22] (G_Hill_Mac [198.17.100.22]) h4G1Sqdq026954 for ; Thu, 15 May 2003 18:28:52 -0700 In-Reply-To: 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:9788 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9788 At 12:41 AM +0200 5/16/03, Karl Voit wrote: >Hi! > >When I add the lines > > ;;; Ctrl-M for _m_y personal shortcuts (as a test) > (global-unset-key "\C-m") > (global-set-key "\C-ml" 'goto-line) > (global-set-key "\C-mg" 'goto-line) > (global-set-key "\C-mf" 'flyspell-mode) > >to my .emacs, there's only 'RET' in the line at the bottom instead of >a simple return in the buffer currently edited. > >Why does this affect the return-key and how do I get my custom >shortcuts without harming my enter-key? That's because in the ASCII character set \C-m (a.k.a. "control M") is the code for "carriage return." Depending on your platform, you _may_ be able to get your Emacs session to distinguish between typing the RETURN key and typing the M key while holding down the control key. But don't count on it. You can save yourself a lot of time and grief by just getting used to the idea that \C-m and RET are the same thing, and never trying to use \C-m as anything else. (By the way, \C-i is the ASCII code for TAB, so you may as well resign yourself to that as well.) --Greg