From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: Multi-tty design (Re: Reordering etc/NEWS) Date: Tue, 22 May 2007 03:39:24 +0300 Message-ID: <20070522003924.GB16497@kobe.laptop> References: <85y7jtc41t.fsf@lola.goethe.zz> <4646F1C6.4020709@lorentey.hu> <851whkrioc.fsf@lola.goethe.zz> <85hcqg4qxs.fsf@lola.goethe.zz> <85d5144p78.fsf@lola.goethe.zz> <200705131822.l4DIMtXt019128@oogie-boogie.ics.uci.edu> <85abw8o51q.fsf@lola.goethe.zz> <85lkfsh2xm.fsf@lola.goethe.zz> <85hcqgh1is.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179794460 6728 80.91.229.12 (22 May 2007 00:41:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 00:41:00 +0000 (UTC) Cc: Andreas Schwab , Dan Nicolaescu , K??roly L??rentey , joakim@verona.se, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 22 02:40:58 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HqIQp-0007IU-Rt for ged-emacs-devel@m.gmane.org; Tue, 22 May 2007 02:40:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqIQp-0006Kf-F7 for ged-emacs-devel@m.gmane.org; Mon, 21 May 2007 20:40:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqIQl-0006KQ-E5 for emacs-devel@gnu.org; Mon, 21 May 2007 20:40:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqIQj-0006KE-FK for emacs-devel@gnu.org; Mon, 21 May 2007 20:40:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqIQj-0006KB-9H for emacs-devel@gnu.org; Mon, 21 May 2007 20:40:49 -0400 Original-Received: from igloo.linux.gr ([62.1.205.36]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HqIQh-0004bk-T2; Mon, 21 May 2007 20:40:48 -0400 Original-Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l4M0diMq020436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 22 May 2007 03:39:49 +0300 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l4M0dQJI038174; Tue, 22 May 2007 03:39:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l4M0dONb037328; Tue, 22 May 2007 03:39:24 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Content-Disposition: inline In-Reply-To: <85hcqgh1is.fsf@lola.goethe.zz> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.523, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.68, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-detected-kernel: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71562 Archived-At: On 2007-05-13 23:11, David Kastrup wrote: >David Kastrup writes: >> So one of the differences appears to be that the tty session has >> TERMCAP information. > > I get the following: > > C-u M-: (environment) RET > [...] > > And in a Window initiated from emacsclient (no -t) very much the same > except for: > "OLDPWD=/home/tmp/emacs" "_=/usr/local/emacs-21/bin/emacsclient" > "COLORTERM=gnome-terminal" "WINDOW=1" "SHLVL=2" "PWD=/home/tmp" > "STY=17353.pts-0.lola" "WINDOWID=41943133") > > So the funny thing is that some environment variables appear to make > it through emacsclient, but the termcap related stuff doesn't. And > the ones that make it are seemingly those which don't exist in the > other session (and it is very strange that some seem to exist as just > the environment variable names without "=" and a value). The emacsclient session of Emacs appears to be initiated in a screen(1) window (by the presense of the "STY" environment variable). I think screen unconditionally sets TERMCAP, and this was what used to bite me some times, which eventually led me to add to my .bashrc file: case $TERM in screen*|vt220*) unset TERMCAP ;; esac Can you try running emacsclient outside of screen? Does it behave in the same way then too? - Giorgos