all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Glenn Morris <rgm@gnu.org>
Cc: 12780@debbugs.gnu.org, Justin Wood <justin.k.wood@gmail.com>
Subject: bug#12780: Starting emacs as a daemon, and requesting a client with -n
Date: Fri, 2 Nov 2012 19:32:47 +0100	[thread overview]
Message-ID: <45486FF7-AE2C-4AA7-8058-D087883E94C0@swipnet.se> (raw)
In-Reply-To: <20627.60104.535330.184001@gnu.org>

Hello.

2 nov 2012 kl. 16:46 skrev Glenn Morris <rgm@gnu.org>:

> 
> Forwarding a reply I received off list (please reply-to-all).
> 
> Justin Wood wrote (on Fri, 2 Nov 2012 at 10:49 -0400):
> 
>> Unfortunately, using "emacs -Q --daemon" still does not work
>> correctly with "emacsclient -c -n".
> 
> 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.

=== 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 @@
 
     (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.






  reply	other threads:[~2012-11-02 18:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-01 21:10 bug#12780: Starting emacs as a daemon, and requesting a client with -n Justin Wood
2012-11-02  6:54 ` Glenn Morris
     [not found]   ` <CAFsaqD_6WtVEx80QEukFJ333DKNzt3v7xYP1Eq4AY80+QvBOmg@mail.gmail.com>
2012-11-02 15:46     ` Glenn Morris
2012-11-02 18:32       ` Jan Djärv [this message]
2012-11-08 18:54         ` Glenn Morris
2012-11-08 19:26           ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45486FF7-AE2C-4AA7-8058-D087883E94C0@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=12780@debbugs.gnu.org \
    --cc=justin.k.wood@gmail.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.