From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#12780: Starting emacs as a daemon, and requesting a client with -n Date: Fri, 2 Nov 2012 19:32:47 +0100 Message-ID: <45486FF7-AE2C-4AA7-8058-D087883E94C0@swipnet.se> References: <20627.60104.535330.184001@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1351881197 28814 80.91.229.3 (2 Nov 2012 18:33:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2012 18:33:17 +0000 (UTC) Cc: 12780@debbugs.gnu.org, Justin Wood To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 02 19:33:26 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TUM3Z-0007uc-7h for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Nov 2012 19:33:25 +0100 Original-Received: from localhost ([::1]:50553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUM3Q-0008HN-KM for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Nov 2012 14:33:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUM3O-0008Gs-95 for bug-gnu-emacs@gnu.org; Fri, 02 Nov 2012 14:33:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUM3M-0001Wv-WC for bug-gnu-emacs@gnu.org; Fri, 02 Nov 2012 14:33:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUM3M-0001Wk-T2 for bug-gnu-emacs@gnu.org; Fri, 02 Nov 2012 14:33:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TUM65-0005x6-OF for bug-gnu-emacs@gnu.org; Fri, 02 Nov 2012 14:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Nov 2012 18:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12780 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12780-submit@debbugs.gnu.org id=B12780.135188133622847 (code B ref 12780); Fri, 02 Nov 2012 18:36:01 +0000 Original-Received: (at 12780) by debbugs.gnu.org; 2 Nov 2012 18:35:36 +0000 Original-Received: from localhost ([127.0.0.1]:45976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUM5f-0005wS-R7 for submit@debbugs.gnu.org; Fri, 02 Nov 2012 14:35:36 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:60108) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUM5d-0005wK-P1 for 12780@debbugs.gnu.org; Fri, 02 Nov 2012 14:35:34 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id C8D389F3C for <12780@debbugs.gnu.org>; Fri, 2 Nov 2012 19:32:42 +0100 (CET) Original-Received: (qmail 1256 invoked by uid 89); 2 Nov 2012 18:32:42 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 2 Nov 2012 18:32:42 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 0BAD67FA05E; Fri, 2 Nov 2012 19:32:42 +0100 (CET) In-Reply-To: <20627.60104.535330.184001@gnu.org> X-Mailer: Apple Mail (2.1499) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66353 Archived-At: Hello. 2 nov 2012 kl. 16:46 skrev Glenn Morris : >=20 > Forwarding a reply I received off list (please reply-to-all). >=20 > Justin Wood wrote (on Fri, 2 Nov 2012 at 10:49 -0400): >=20 >> Unfortunately, using "emacs -Q --daemon" still does not work >> correctly with "emacsclient -c -n". >=20 > Can anyone else with a Mac reproduce this? Yes. Basically server.el does not handle the non-display situation of = Nextstep. When emacsclient connects it sends back window system = unsupported, and then emacsclient tries to create a tty frame (which end = up being a GUI frame). A side effect is that emacsclient gives two = "Waiting for Emacs..." messages. But with -n, there is just window system unsupported, no attempt to = create a tty frame. The patch below fixes this, but the code is probably in the wrong place. Jan D. =3D=3D=3D modified file 'lisp/server.el' --- lisp/server.el 2012-10-07 22:31:58 +0000 +++ lisp/server.el 2012-11-02 18:27:36 +0000 @@ -841,7 +841,9 @@ =20 (unless (assq w window-system-initialization-alist) (setq w nil)) - + (if (and (not w) (eq (window-system) 'ns)) + (progn (setq w 'ns) + (setq display nil))) (cond (w ;; Flag frame as client-created, but use a dummy client. ;; This will prevent the frame from being deleted when Jan D.