From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.help Subject: return key in keyboard macros Date: 05 Oct 2003 14:18:46 +0200 Organization: FAU Erlangen-Nuernberg Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065357117 18175 80.91.224.253 (5 Oct 2003 12:31:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2003 12:31:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 05 14:31:56 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A683H-0002BT-00 for ; Sun, 05 Oct 2003 14:31:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6834-0000UL-66 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2003 08:31:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news2.telebyte.nl!npeer.de.kpn-eurorings.net!uni-erlangen.de!news.uni-erlangen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: tfkp14.physik.uni-erlangen.de Original-X-Trace: rznews2.rrze.uni-erlangen.de 1065356333 24614 131.188.164.214 (5 Oct 2003 12:18:53 GMT) Original-X-Complaints-To: news@uni-erlangen.de Original-NNTP-Posting-Date: 5 Oct 2003 12:18:53 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:117069 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12997 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12997 I am having some problems with the return key when I am defining and storing keyboard macros. When emacs runs in its own X window, the return key is translated into `[return]'. For example, ;; emacs in its own X window (fset 'foo [return]) On the other hand "emacs -nw" translates the return key into "\C-m". For example ;; "emacs -nw" (fset 'bar "\C-m") The problem is: "emacs -nw" cannot make use of the keyboard macro foo because here [return] is not bound to anything. (There is no such compatibility problem with the keyboard macro bar.) Can I enforce emacs to generate keyboard macros that will work both with "emacs -nw" and with emacs in its own X window? Thanks a lot, Roland PS I am using GNU emacs 21.2.1