From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Multi-tty design (Re: Reordering etc/NEWS) Date: Wed, 16 May 2007 11:41:47 -0400 Message-ID: References: <85d5144p78.fsf@lola.goethe.zz> <200705131822.l4DIMtXt019128@oogie-boogie.ics.uci.edu> <85abw8o51q.fsf@lola.goethe.zz> <464835DE.3020007@lorentey.hu> <86y7jrr8rx.fsf@lola.quinscape.zz> <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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179405073 23329 80.91.229.12 (17 May 2007 12:31:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 May 2007 12:31:13 +0000 (UTC) Cc: Andreas Schwab , Dan Nicolaescu , joakim@verona.se, emacs-devel@gnu.org To: Karoly Lorentey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 17 14:31:10 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 1Hof8N-0002Hd-5c for ged-emacs-devel@m.gmane.org; Thu, 17 May 2007 14:31:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HofGS-0004jE-NF for ged-emacs-devel@m.gmane.org; Thu, 17 May 2007 08:39:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HofDb-0002yT-8G for emacs-devel@gnu.org; Thu, 17 May 2007 08:36:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HofDa-0002xg-7J for emacs-devel@gnu.org; Thu, 17 May 2007 08:36:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HofDZ-0002xW-IL for emacs-devel@gnu.org; Thu, 17 May 2007 08:36:29 -0400 Original-Received: from 18.red-83-50-230.dynamicip.rima-tde.net ([83.50.230.18] helo=alfajor.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hof5Q-0005Ia-Jy for emacs-devel@gnu.org; Thu, 17 May 2007 08:28:07 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 878321C659; Wed, 16 May 2007 11:41:47 -0400 (EDT) In-Reply-To: <464A6144.10905@lorentey.hu> (Karoly Lorentey's message of "Wed\, 16 May 2007 03\:41\:24 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Linux 2.6 (newer, 3) 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:71225 Archived-At: > - At least some environment variables _must_ behave locally; if not > client-locally, then at least terminal-locally. DISPLAY is perhaps > the most obvious example. X clients such as xdvi started from Emacs > must appear on the display the user currently works on. Actually, the DISPLAY environment should behave that way even without the use of emacsclient (when you use make-frame-on-display). > This is an important feature for multi-tty users and I would like > to keep it supported. Similar variables include SSH_AUTH_SOCK, > GPG_AGENT_INFO, AGENT_SOCKET, LANG, LC_*, and basically anything > that may be different from login session to login session. I don't think the vars you list are particularly important. Which version of those vars to use (the one from the emacsclient process or from the main Emacs process) may depend from case to case. So either choice is probably OK. I tend to think of emacsclient as "connect to the main Emacs process", so I tend to expect it to work in the environment of the main Emacs process. You seem to think of it as "pretend you're a normal Emacs process, just quick-started", so you expect a slightly different behavior. > - For the user, there is a strong sense of connection between > an emacsclient instance and its set of frames. If emacsclient > exits, then its frames are deleted and vice versa. C-x C-c kills > emacsclient, not the entire Emacs process. All this feels > very natural and fits a range of common use-cases, particularly > the ones involving quick editing jobs from the command prompt. > (These are the ones for which Emacs was so infamously not well > suited before.) Yes, it's probably OK to use frames as an approximation of "terminal" or "display" or "client". > - Furthermore, to me it seems more consistent to have all > environment variables be local than just a select few of them. I don't find it important, but it doesn't seem to be bad either. So I'd leave it as a choice that can be determined by the implementation. Stefan