emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-tty design (Re: Reordering etc/NEWS)


From: David Kastrup
Subject: Re: Multi-tty design (Re: Reordering etc/NEWS)
Date: Sun, 13 May 2007 22:41:09 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux)

David Kastrup <address@hidden> writes:

> Dan Nicolaescu <address@hidden> writes:
>
>> Can you please send a proper bug report starting from emacs -Q that
>> shows what exactly are you doing? Please include what system are you
>> using, what toolkit are you using, etc etc.
>
> Looks like the effects on Athena and Gtk+ are similar.  However, at
> least from emacs -Q (and using M-x server-start) I can get a tty
> session to start with emacsclient.  I can't with my full session, so
> I'll need to experiment around with the details.
>
> Either way, even when using emacs -Q, a setenv of PATH to a different
> value in the Emacs started from the GNOME taskbar will be visible in a
> subsequently initiated emacsclient session, whether on the tty or
> under X.
>
> I'm not likely get through with checking what in my .emacs might be
> interfering with emacsclient sessions starting up on the tty today.

Ok, some more info: _if_ I start Emacs from the same tty as I later
start emacsclient -t, I can get a tty session.

If I use Alt-F2 to start Emacs directly from the window manager (which
in its turn gets started from gnome-session started from gdm's login
screen), emacsclient -t will not talk with it, _sometimes_ saying
*ERROR*: Cannot open termcap database file
but that is not consistent.  It does this perhaps once or twice in 10
tries.  It exits with exit state 0, though, in either case.

So it would seem that the Emacs started from the window manager is
missing something in order to make friends with the tty that
emacsclient -t is called from.

Any idea how to debug this?  Current Emacs settings are

GNU Emacs 23.0.51.1 (i686-pc-linux-gnu, GTK+ Version 2.10.11,
multi-tty) of 2007-05-13 on lola

and I have (possibly relevant) environment settings
SHELL=/bin/bash
GTK_RC_FILES=/etc/gtk/gtkrc:/home/dak/.gtkrc-1.2-gnome2
USERNAME=dak
SESSION_MANAGER=local/lola:/tmp/.ICE-unix/5904
DESKTOP_SESSION=default
GDM_XSERVER_LOCATION=local
PWD=/home/dak
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8
GDMSESSION=default
SHLVL=1
LANGUAGE=en_US.UTF-8
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=dak
DISPLAY=:0.0
XAUTHORITY=/home/dak/.Xauthority
_=/usr/bin/env

in the GDM session Emacs, and
DESKTOP_STARTUP_ID=
SHELL=/bin/bash
TERM=screen
WINDOWID=41943133
USER=dak
TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
        :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
        :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
        :li#24:co#80:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
        :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
        :vb=\Eg:G0:as=\E(0:ae=\E(B:\
        
:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
        :po=\E[5i:pf=\E[4i:Z0=\E[?3h:Z1=\E[?3l:k0=\E[10~:\
        :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\
        :k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:\
        :F2=\E[24~:F3=\EO2P:F4=\EO2Q:F5=\EO2R:F6=\EO2S:\
        :F7=\E[15;2~:F8=\E[17;2~:F9=\E[18;2~:FA=\E[19;2~:kb=:\
        :K2=\EOE:kB=\E[Z:*4=\E[3;2~:*7=\E[1;2F:#2=\E[1;2H:\
        :#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:%e=\E[5;2~:%i=\E[1;2C:\
        :kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:\
        :kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:
USERNAME=dak
SESSION_MANAGER=local/lola:/tmp/.ICE-unix/5904
DESKTOP_SESSION=default
STY=17353.pts-0.lola
GDM_XSERVER_LOCATION=local
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8
GDMSESSION=default
SHLVL=2
LANGUAGE=en_US.UTF-8
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=dak
WINDOW=1
DISPLAY=:0.0
XAUTHORITY=/home/dak/.Xauthority
COLORTERM=gnome-terminal
_=/usr/bin/env


So one of the differences appears to be that the tty session has
TERMCAP information.

Add to this that I don't seem to have emacsclient passing the PATH
variable to the sessions it initiates, and it seems like the missing
individual environment from the text tty is causing my problems to
have emacsclient -t work.

It is curious that emacsclient will only sometimes complain but always
exit immediately.

Any ideas how to debug?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]