From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: emacsclient bug Date: Sat, 26 Jan 2008 18:06:55 -0800 Message-ID: <200801270207.m0R2753h021953@sallyv1.ics.uci.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201399827 13919 80.91.229.12 (27 Jan 2008 02:10:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2008 02:10:27 +0000 (UTC) Cc: lenbok@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 27 03:10:46 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 1JIwyp-0002PL-IW for ged-emacs-devel@m.gmane.org; Sun, 27 Jan 2008 03:10:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIwyP-000259-06 for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 21:10:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIwxj-0001qh-8I for emacs-devel@gnu.org; Sat, 26 Jan 2008 21:09:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIwxh-0001pv-Bl for emacs-devel@gnu.org; Sat, 26 Jan 2008 21:09:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIwxh-0001pl-7L for emacs-devel@gnu.org; Sat, 26 Jan 2008 21:09:33 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JIwxd-0005gv-FV; Sat, 26 Jan 2008 21:09:29 -0500 X-ICS-MailScanner-Watermark: 1202004427.2648@V1bfEhGTPHqHBShCfPtU0w Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m0R2753h021953; Sat, 26 Jan 2008 18:07:06 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sat, 26 Jan 2008 16:58:30 -0500") Original-Lines: 29 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:87622 Archived-At: Stefan Monnier writes: > > 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. > > > That might not be the right thing to do. It seems to me that the most > > convenient behavior for emacsclient is to use (by default) the tty or > > display that Emacs is already using. It would do that unless you > > specify -display or -nw or -t. > > > Doesn't that seem right to you? > > Yes, I've just changed it, so that now it behaves by default as it used > to in Emacs-22: connection to $DISPLAY is only attempted if it's > explicitly requested by a --display parameter. It makes the default > not only closer to previous behavior but also "safer" I believe. Does it work? After updating from CVS and make bootstrap emacs -Q -f server-start& emacsclient ~/.emacs just hangs emacsclient -t ~/.emacs works, it opens a tty frame.