* Re: `special' keys in keyboard macros
[not found] <mailman.1156.1065435549.21628.bug-gnu-emacs@gnu.org>
@ 2003-10-06 18:45 ` Thomas Dickey
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Dickey @ 2003-10-06 18:45 UTC (permalink / raw)
Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> wrote:
> 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
control/? sounds like code 128, which is of course the usual setting
for the backarrow key with Debian Linux. If emacs chooses to treat
the stty erase value as backspace, that's understandable. However,
backspace is properly a code 8.
> \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?
--
Thomas E. Dickey
http://dickey.his.com
ftp://dickey.his.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* `special' keys in keyboard macros
@ 2003-10-06 10:14 Roland Winkler
0 siblings, 0 replies; 2+ messages in thread
From: Roland Winkler @ 2003-10-06 10:14 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-06 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1156.1065435549.21628.bug-gnu-emacs@gnu.org>
2003-10-06 18:45 ` `special' keys in keyboard macros Thomas Dickey
2003-10-06 10:14 Roland Winkler
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).