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: emacsclient bug Date: Mon, 21 Jan 2008 10:52:53 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200930999 24449 80.91.229.12 (21 Jan 2008 15:56:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2008 15:56:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Len Trigg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 21 16:56:58 2008 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 1JGz0u-00064K-9y for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2008 16:56:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGz0U-0002aH-IN for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2008 10:56:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGyxE-0001X8-Qv for emacs-devel@gnu.org; Mon, 21 Jan 2008 10:52:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGyxD-0001WZ-Tr for emacs-devel@gnu.org; Mon, 21 Jan 2008 10:52:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGyxD-0001WM-Nj for emacs-devel@gnu.org; Mon, 21 Jan 2008 10:52:55 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JGyxD-0007K2-DO for emacs-devel@gnu.org; Mon, 21 Jan 2008 10:52:55 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAADNOlEfO+IHadGdsb2JhbACQGgEwmkd+ X-IronPort-AV: E=Sophos;i="4.25,227,1199682000"; d="scan'208";a="12997167" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 21 Jan 2008 10:52:53 -0500 Original-Received: from pastel.home ([206.248.129.218]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id BQV70353; Mon, 21 Jan 2008 10:52:53 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 3233B7F61; Mon, 21 Jan 2008 10:52:53 -0500 (EST) In-Reply-To: (Len Trigg's message of "Mon, 21 Jan 2008 16:16:26 +1300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: 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:87216 Archived-At: >> > It sounds like the problem is larger than just treating DISPLAY as an >> > implicit -display parameter. If I pass -display $DISPLAY, would emacs >> > also incorrectly open a new frame, rather than using the existing tty >> > (assuming I supply neither -c or -t)? >> >> Of course it would open a new X11 frame: That's what `-display' is for. > I had always thought of --display and $DISPLAY as fulfilling the same > function, setting the name of your X server, rather than an > instruction to perform an action (open a window when you otherwise > wouldn't). The other behaviour of emacs is consistent with this > interpretation: In X11 that's indeed what it traditionally does. In Emacs-22.1 where I added the --display argument, it indeed worked that way. > emacs -nw --display $DISPLAY (opens in tty) > emacsclient -t --display $DISPLAY (opens in tty) Indeed and emacs --display $DISPLAY emacsclient --display $DISPLAY should also both use an X11 frame on $DISPLAY. That fact that the Emacs server does not yet have an X11 connection open is not taken into account to decide what to: if the client does not explicitly ask for a tty, then the default is to use an X11 frame. Stefan