Subject: bug#811: 23.0.60; emacsclient -t inserts one char when pressing an arrow key

From: Tassilo Horn <[email-masked]>
Date: Thu, 28 Aug 2008 21:06:59 +0200

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

1. Start emacs -Q
2. eval (server-start)
3. from a terminal, invoke emacsclient -t some-file
4. Press <left>, <right>, <up> or <down>

The first keypress of an arrow key after the emacsclient invokation
inserts one D, C, A or B.  The next press moves point as expected.  With
emacsclient -c this does not happen.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.0.60/etc/DEBUG for instructions.

In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2008-08-26 on thinkpad
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-gpm' '--with-dbus' '--build=x86_64-pc-linux-gnu' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-mtune=core2 -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  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.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  yas/minor-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  window-number-meta-mode: t
  window-number-mode: t
  savehist-mode: t
  exec-abbrev-cmd-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<escape> q C-c g <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <down> <down> <up> <return> 
<return> F C-k C-k C-k H i SPC R a l f , <return> <down> 
M-q <down> <down> <down> <down> <down> M-q <down> <up> 
<down> <down> <return> Y e p <backspace> s , SPC t 
h a t SPC w o r k s . SPC SPC T h a n k s SPC a SPC 
l o t ! <return> <return> b <tab> C-k C-k C-k C-k C-k 
C-k C-k C-k C-k C-k C-k C-k C-k C-k C-c C-c c <return> 
SPC <return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> SPC <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> SPC <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
SPC <return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> SPC c <return> c <return> 
SPC SPC <backspace> SPC SPC <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> SPC <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> SPC SPC SPC SPC SPC <return> <return> 
<return> <return> <return> <return> <return> <return> 
SPC SPC <down> <down> <down> <down> c <down> <down> 
<down> <down> <down> <down> <down> <down> <return> 
1 <return> <return> q <return> SPC c <return> SPC SPC 
SPC SPC <down> <return> <down> <return> c <help-echo> 
M-x r e b <return> <right> <return>

Recent messages:
20080828T205613.487> Generating summary...
20080828T205613.722> Generating summary...done
Adding "Re: Haskell Mode?" to field "subjects"
Don't suspect your neighbor: report him!
 
Adding "Bug in C-n" to field "subjects"
20080828T205655.497> Exiting summary buffer and applying spam rules
20080828T205655.644> nnimap: Setting marks in INBOX.mailinglists.emacs-devel...
20080828T205655.661> nnimap: Setting marks in INBOX.mailinglists.emacs-devel...done
Auto-saving...

-- 
Richard Stallman  doesn't use web  browsers. Emacs connects  directly to
the network driver and he reads and writes TCP/IP himself.