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] X or tty Date: Fri, 18 May 2007 22:14:40 +0200 Message-ID: <857ir5ubwv.fsf@lola.goethe.zz> References: <464CC097.10700@gnu.org> <85abw3up91.fsf@lola.goethe.zz> <464DF9D8.7080001@lorentey.hu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1179519287 32113 80.91.229.12 (18 May 2007 20:14:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 May 2007 20:14:47 +0000 (UTC) Cc: =?utf-8?Q?K=C3=A1roly_L=C5=91rentey?= , emacs-devel To: csant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 18 22:14:45 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 1Hp8qa-0004BJ-QV for ged-emacs-devel@m.gmane.org; Fri, 18 May 2007 22:14:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hp8qa-0007LC-61 for ged-emacs-devel@m.gmane.org; Fri, 18 May 2007 16:14:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hp8qX-0007L7-7H for emacs-devel@gnu.org; Fri, 18 May 2007 16:14:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hp8qU-0007Kh-RH for emacs-devel@gnu.org; Fri, 18 May 2007 16:14:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hp8qU-0007Ke-M0 for emacs-devel@gnu.org; Fri, 18 May 2007 16:14:38 -0400 Original-Received: from mail-in-05.arcor-online.net ([151.189.21.45]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hp8qU-0004rE-5a for emacs-devel@gnu.org; Fri, 18 May 2007 16:14:38 -0400 Original-Received: from mail-in-03-z2.arcor-online.net (mail-in-03-z2.arcor-online.net [151.189.8.15]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id C8B8637A5E0; Fri, 18 May 2007 22:14:36 +0200 (CEST) Original-Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53]) by mail-in-03-z2.arcor-online.net (Postfix) with ESMTP id A596A2D3C56; Fri, 18 May 2007 22:14:36 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-072-219.pools.arcor-ip.net [84.61.72.219]) by mail-in-13.arcor-online.net (Postfix) with ESMTP id 78F9D22D161; Fri, 18 May 2007 22:14:36 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 3286E1C4CE32; Fri, 18 May 2007 22:14:40 +0200 (CEST) In-Reply-To: (csant@csant.info's message of "Fri\, 18 May 2007 21\:56\:53 +0200") 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:71339 Archived-At: csant writes: > On Fri, 18 May 2007 21:09:12 +0200, K=C3=A1roly L=C5=91rentey > wrote: > >> 1. Emacsclient opens a new frame by default. It prefers X, but >> falls back to tty when necessary or when forced, just like Emacs >> itself. > > The simplest case is running server and client both in X, and > expected behaviour would be for the client to prefer X. Equally > obvious would be the case where no X is available, and both the > server and the client run in console. I can easily see use cases > for running the emacs server without X (in screen, or in console) > and expect emacsclients to draw their frame on the X display they > are invoked on. I can a bit less easily imagine cases where you'd > run the server in X, and clients on a display but wanting them to > open the frame in terminal. Funny. For me it is just the other way round. The normal case for me is to run my emacs server in an X session. Now if I am somewhere on the road and want to access my Emacs session at home via a modem connection or similar, I have quite limited bandwidth. Even though the ssh session I'll be using into my home computer forwards X connections, I would not want to make use of it: it would be dead slow. > Ideally, I'd like the client to inherit by default any `forced' > flags set to the server, i.e. to start by default with -t when the > server was deliberately started -nw in an environment that does have > $DISPLAY set. This could be overwritten in the client with -d . > > Would that break more expected behaviours than fix some? I think it would be unexpected. If you have frequent particular uses, I think it reasonable to use a shell script wrapper or shell alias or environment variables for starting your favorite programs with your favorite options. Maybe emacsclient could read options from an environment variable EMACSCLIENT_FLAGS (is that environment name acceptable under Windows?) on startup, then you could set it there. --=20 David Kastrup, Kriemhildstr. 15, 44793 Bochum