all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#5095: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started
@ 2009-12-01 22:29 Philip Armstrong
  0 siblings, 0 replies; 5+ messages in thread
From: Philip Armstrong @ 2009-12-01 22:29 UTC (permalink / raw)
  To: bug-gnu-emacs

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...






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#5095: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started
@ 2009-12-05 21:16 Chong Yidong
  2009-12-05 23:08 ` Philip Armstrong
  0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2009-12-05 21:16 UTC (permalink / raw)
  To: Philip Armstrong; +Cc: 5095

> 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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#5095: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started
  2009-12-05 21:16 bug#5095: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started Chong Yidong
@ 2009-12-05 23:08 ` Philip Armstrong
  0 siblings, 0 replies; 5+ messages in thread
From: Philip Armstrong @ 2009-12-05 23:08 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 5095

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#5095: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started
@ 2010-01-02 17:58 Chong Yidong
  0 siblings, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2010-01-02 17:58 UTC (permalink / raw)
  To: emacs-devel; +Cc: 5095

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.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#5095: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started
@ 2010-01-05 14:05 Chong Yidong
  0 siblings, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2010-01-05 14:05 UTC (permalink / raw)
  To: Philip Armstrong; +Cc: 5095

> 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.






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-05 14:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-05 21:16 bug#5095: 23.1; emacsclient -t leaves terminal in an odd state if daemon not started Chong Yidong
2009-12-05 23:08 ` Philip Armstrong
  -- strict thread matches above, loose matches on Subject: below --
2010-01-05 14:05 Chong Yidong
2010-01-02 17:58 Chong Yidong
2009-12-01 22:29 Philip Armstrong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.