From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Multi-tty design (Re: Reordering etc/NEWS) Date: Sun, 20 May 2007 11:04:07 +0200 Message-ID: <858xbjq320.fsf@lola.goethe.zz> References: <86lkfrr3s6.fsf@lola.quinscape.zz> <86d513r2i1.fsf@lola.quinscape.zz> <861whjr097.fsf@lola.quinscape.zz> <200705141648.l4EGmmvW007675@oogie-boogie.ics.uci.edu> <85bqgngvos.fsf@lola.goethe.zz> <200705141819.l4EIJLPr009832@oogie-boogie.ics.uci.edu> <85ps53fcm0.fsf@lola.goethe.zz> <200705142004.l4EK4DHg012188@oogie-boogie.ics.uci.edu> <85lkfrf91x.fsf@lola.goethe.zz> <200705142102.l4EL2pHK013655@oogie-boogie.ics.uci.edu> <4649D75C.2090905@lorentey.hu> <464A6144.10905@lorentey.hu> <86ejlfpfdj.fsf@lola.quinscape.zz> <861whepoq7.fsf@lola.quinscape.zz> <868xbmmbji.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179651865 4008 80.91.229.12 (20 May 2007 09:04:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 May 2007 09:04:25 +0000 (UTC) Cc: Andreas Schwab , Dan Nicolaescu , Karoly Lorentey , joakim@verona.se, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 20 11:04:23 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 1HphKw-0003b9-Hl for ged-emacs-devel@m.gmane.org; Sun, 20 May 2007 11:04:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HphKv-0008Pg-5f for ged-emacs-devel@m.gmane.org; Sun, 20 May 2007 05:04:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HphKp-0008OR-0D for emacs-devel@gnu.org; Sun, 20 May 2007 05:04:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HphKn-0008N3-6w for emacs-devel@gnu.org; Sun, 20 May 2007 05:04:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HphKn-0008Mr-0W for emacs-devel@gnu.org; Sun, 20 May 2007 05:04:13 -0400 Original-Received: from mail-in-04.arcor-online.net ([151.189.21.44]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HphKl-00031Y-3O for emacs-devel@gnu.org; Sun, 20 May 2007 05:04:12 -0400 Original-Received: from mail-in-01-z2.arcor-online.net (mail-in-12-z2.arcor-online.net [151.189.8.29]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id AB6E417F4C0; Sun, 20 May 2007 11:04:05 +0200 (CEST) Original-Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 79B9127945A; Sun, 20 May 2007 11:04:05 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-058-022.pools.arcor-ip.net [84.61.58.22]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id 48D4934A6A5; Sun, 20 May 2007 11:04:05 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id A15E01C4CE33; Sun, 20 May 2007 11:04:07 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Fri\, 18 May 2007 12\:27\:09 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:71414 Archived-At: Stefan Monnier writes: >>>> For everything that is not terminal-related, nothing but a single >>>> environment makes sense, I think. >>> >>> Might be. But both the TERM and the DISPLAY variables at least need >>> to be adjusted in subprocesses compared to what they were in Emacs's >>> own environment. This is true regardless of multi-tty. > >> Agreed. The TERM adjustment in some of Emacs' code currently is done >> using >> (let ((process-environment (copy-sequence process-environment))) >> (setenv "TERM" ... > > This code is fine. >> Which is easier if `initial-environment' is called >> `process-environment'... > > Well, the opposite is true for existing code that adds stuff to > `process-environment'. I believe such code is a lot more > widespread. If the way this addition is done is by virtue of "setenv", we can cater for it. And this only concerns variables which are treated terminal-specifically. > If you think this is a problem, then you want terminal-environment > to be client-local rather than terminal-local. You may then want to > call it client-environment-alist. It's not like it's difficult to > implement: it's all managed in server.el, except the "lookup through > `foo-filter'" which might be done in the C code when building the > environment of a new subprocess. As written in a separate posting: I'd prefer not to have different notions of terminal-local and client-local. But it may be possible to make both the same by letting terminal-locality include the client as a differentiating factor as well. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum