GNU bug report logs - #5095
23.1; emacsclient -t leaves terminal in an odd state if daemon not started

Previous Next

Package: emacs;

Reported by: Philip Armstrong <phil <at> kantaka.co.uk>

Date: Tue, 1 Dec 2009 22:35:08 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5095 in the body.
You can then email your comments to 5095 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5095; Package emacs. (Tue, 01 Dec 2009 22:35:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philip Armstrong <phil <at> kantaka.co.uk>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 01 Dec 2009 22:35:13 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Philip Armstrong <phil <at> kantaka.co.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started
Date: Tue, 01 Dec 2009 22:29:29 +0000
If I start emacsclient like, without the emacs deamon already running:

$ emacsclient -t
or
$ emacsclient -t <filename>

and then press pagedown, emacs inserts the string "6~" into the buffer
at point.

If the emacs daemon has already started, or I use emacsclient -c to
open a new frame (-c) without the daemon being started, then pagedown
works just fine.

I've seen this bug both on emacs 23 in current Debian unstable, and
with one compiled from sources (ports) on OS X.


In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2)
 of 2009-11-02 on raven, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10605000
configured using `configure  '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''

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

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-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
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<escape> x r e p o <tab> r <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5095; Package emacs. (Sat, 05 Dec 2009 21:20:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 05 Dec 2009 21:20:06 GMT) Full text and rfc822 format available.

Message #10 received at 5095 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Philip Armstrong <phil <at> kantaka.co.uk>
Cc: 5095 <at> debbugs.gnu.org
Subject: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started
Date: Sat, 05 Dec 2009 16:16:45 -0500
> If I start emacsclient like, without the emacs deamon already running:
>
> $ emacsclient -t
> or
> $ emacsclient -t <filename>
>
> and then press pagedown, emacs inserts the string "6~" into the buffer
> at point.

If there is no server present, you should get an error message like
this:

  emacsclient: can't find socket; have you started the server?
  To start the server in Emacs, type "M-x server-start".
  emacsclient: No socket or alternate editor.  Please use:

        --socket-name
        --server-file      (or environment variable EMACS_SERVER_FILE)
        --alternate-editor (or environment variable ALTERNATE_EDITOR)

Please provide a self-contained recipe for reproducing this bug.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5095; Package emacs. (Sat, 05 Dec 2009 23:15:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philip Armstrong <phil <at> kantaka.co.uk>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 05 Dec 2009 23:15:05 GMT) Full text and rfc822 format available.

Message #15 received at 5095 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Philip Armstrong <phil <at> kantaka.co.uk>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 5095 <at> debbugs.gnu.org
Subject: Re: 23.1; emacsclient -t leaves terminal in an odd state if daemon
 not started
Date: Sat, 5 Dec 2009 23:08:14 +0000
On Sat, Dec 05, 2009 at 04:16:45PM -0500, Chong Yidong wrote:
>> If I start emacsclient like, without the emacs deamon already running:
>>
>> $ emacsclient -t
>> or
>> $ emacsclient -t <filename>
>>
>> and then press pagedown, emacs inserts the string "6~" into the buffer
>> at point.
>
>If there is no server present, you should get an error message like
>this:
>
>  emacsclient: can't find socket; have you started the server?
>  To start the server in Emacs, type "M-x server-start".
>  emacsclient: No socket or alternate editor.  Please use:
>
>        --socket-name
>        --server-file      (or environment variable EMACS_SERVER_FILE)
>        --alternate-editor (or environment variable ALTERNATE_EDITOR)
>
>Please provide a self-contained recipe for reproducing this bug.

I've set ALTERNATE_EDITOR to "", so emacsclient starts the server
automatically if it's not already running & then connects to it once
started.

Phil

-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt



Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5095; Package emacs. (Sat, 02 Jan 2010 17:59:01 GMT) Full text and rfc822 format available.

Message #18 received at 5095 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: emacs-devel <at> gnu.org
Cc: 5095 <at> debbugs.gnu.org
Subject: Re: 23.1;
	emacsclient -t leaves terminal in an odd state if daemon not started
Date: Sat, 02 Jan 2010 12:58:11 -0500
Anyone have any idea about Bug#5095?  I can reproduce this:

emacs --daemon
emacsclient -t
[up]               =>     "M-o A is undefined"

Subsequent function keystrokes are handled correctly.

So it appears that the input-decode-map is not set up properly for the
very first keystroke on a terminal frame created by the daemon.  But
I've no clue why.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5095; Package emacs. (Tue, 05 Jan 2010 14:06:02 GMT) Full text and rfc822 format available.

Message #21 received at 5095 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Philip Armstrong <phil <at> kantaka.co.uk>
Cc: 5095 <at> debbugs.gnu.org
Subject: Re: 23.1;
	emacsclient -t leaves terminal in an odd state if daemon not started
Date: Tue, 05 Jan 2010 07:05:29 -0700
> I've set ALTERNATE_EDITOR to ""
>
> $ emacsclient -t
> or
> $ emacsclient -t <filename>
>
> and then press pagedown, emacs inserts the string "6~" into the buffer
> at point.

I've checked a fix for this bug into the repository.




bug closed, send any further explanations to Philip Armstrong <phil <at> kantaka.co.uk> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Tue, 05 Jan 2010 14:06:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 03 Feb 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 197 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.