Subject: Re: bug#8314: 24.0.50; emacsclient -c does the wrong thing when compiled without X

From: Stefan Monnier <[email-masked]>
Date: Wed, 29 Jun 2011 22:09:29 -0400

>> Whatever we do, we should do it in server.el, not in emacsclient.c.
> Not trivially doable, since emacsclient.c is the one that figures out
> the tty name and type (when needed; find_tty) and passes them to the
> server. emacsclient.c would have to be modified to pass this info in all
> cases

Yup.  Doesn't sound like a big deal.

> (except --eval?)

No need for any exception there.

> and some new tty-flag added to distinguish between "tty requested" and
> "tty to be used as fallback if Emacs compiled without X" (since -tty
> on its own would no longer be enough).

Adding a "tty requested" flag doesn't sound particularly hard either.

        Stefan