From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: `special' keys in keyboard macros Date: Mon, 6 Oct 2003 12:14:44 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <16257.16532.727889.658851@tfkp07.physik.uni-erlangen.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1065435659 19752 80.91.224.253 (6 Oct 2003 10:20:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2003 10:20:59 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 06 12:20:58 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 1A6SU5-0001n9-00 for ; Mon, 06 Oct 2003 12:20:57 +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 1A6SU2-0001k6-SZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2003 06:20:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A6SSH-000184-Rb for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2003 06:19:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A6SPO-0000q3-KQ for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2003 06:16:37 -0400 Original-Received: from [131.188.164.207] (helo=tfkp07.physik.uni-erlangen.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6SPL-0000Se-5t for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2003 06:16:03 -0400 Original-Received: by tfkp07.physik.uni-erlangen.de (Postfix, from userid 500) id 644134D10; Mon, 6 Oct 2003 12:14:59 +0200 (CEST) Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5914 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5914 In GNU Emacs 21.2.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-04-09 on tfkp12 configured using `configure --prefix=/nfs/common --libexecdir=/nfs/common/lib --bindir=/nfs/common/lib/emacs/21.2/bin/i686-Linux --mandir=/nfs/common/share/man --infodir=/nfs/common/share/info --with-gcc --with-pop --with-x --with-x-toolkit=athena i386-pc-linux' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: POSIX value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US locale-coding-system: iso-latin-1 default-enable-multibyte-characters: nil Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I am having some problems with `special' keys like the return key when I am defining and storing keyboard macros. For example, I might want to define a keyboard macro that runs the commands bound to the keys RET, left-arrow, right-arrow, up-arrow, down-arrow, insert, delete and backspace. When emacs runs in its own X window [for short: "emacs (X)"] I get the keyboard macro ;; "emacs (X)" (fset 'foo [return left right up down insert delete backspace]) On the other hand "emacs -nw" gives me for the same key sequence ;; "emacs -nw" (fset 'bar "\C-m\C-[OD\C-[OC\C-[OA\C-[OB\C-[[2~\C-[[3~\C-?") The problem is: "emacs -nw" cannot make use of the keyboard macro foo and "emacs (X)" cannot make use of the macro bar either. The problem applies to both my quickly hacked keyboard macros as well as to my personalized keybindings that use the macro kbd (i.e., which string KEYS should be passed to kbd such that I get the same keybindings using "emacs -nw" and "emacs (X)"). Roland PS Recently I rediscovered the beauty and efficiency of "emacs -nw" when I am forced to use a slow modem connection. PPS It seems to me that it is not a problem of "emacs -nw" but of xterm that \C-? is always interpreted as backspace. I was long using \C-? as a distinct key with "emacs (X)" but now I realized it doesn't work with "emacs -nw". Is there somewhere a list of keybindings one should avoid if compatibility between "emacs (X)" and "emacs -nw" is an issue?