From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#8783: 24.0.50; emacsclientw.exe behaviour in win32 not the same as in linux Date: Mon, 06 Jun 2011 09:48:50 +0800 Message-ID: <87oc2bn30d.fsf@gnu.org> References: <4DE71323.60409@dickson.st> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307325030 4524 80.91.229.12 (6 Jun 2011 01:50:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2011 01:50:30 +0000 (UTC) Cc: 8783@debbugs.gnu.org, Jason Lewis To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 06 03:50:24 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QTOxR-0000VO-CT for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Jun 2011 03:50:21 +0200 Original-Received: from localhost ([::1]:47658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTOxQ-0007p7-FT for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2011 21:50:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTOxB-0007nA-P4 for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 21:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTOxA-0005Vg-Mh for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 21:50:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTOxA-0005VY-Kp for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 21:50:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QTOx9-0005tO-Iq; Sun, 05 Jun 2011 21:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2011 01:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8783 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8783-submit@debbugs.gnu.org id=B8783.130732494722582 (code B ref 8783); Mon, 06 Jun 2011 01:50:03 +0000 Original-Received: (at 8783) by debbugs.gnu.org; 6 Jun 2011 01:49:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTOwE-0005sA-T8 for submit@debbugs.gnu.org; Sun, 05 Jun 2011 21:49:07 -0400 Original-Received: from mail-px0-f170.google.com ([209.85.212.170]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTOwC-0005rh-J1 for 8783@debbugs.gnu.org; Sun, 05 Jun 2011 21:49:05 -0400 Original-Received: by pxi19 with SMTP id 19so2558850pxi.29 for <8783@debbugs.gnu.org>; Sun, 05 Jun 2011 18:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=QPJHMPdXI3GETHhVZL48P00maNVwnOMSHwiEVSeCYsg=; b=SyqWwheTfb6xLwbnflNihB7GcrqvX7duBXcjH0L88p3e3o3JxjIlZWCcc4Bxw6cBJy epC08c3c1UoIynarm5Ce10pCK/dbtwEYpUJTlXyjvEO/XyBRSfNgZWCabaqjdIF2gDtW JpGOrcCjPNPRdMPoCtVI+pUh4RZY3SMX+o0O4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=he2ZUR6HrS9C6W825WKmxBwE5svTx5X9WUBXLiaPZAhMi3WFby4ykVV0lv/XsEVOvl TpCrZqPhCbc547pzntWVSuugPN2WsFqg7lLqwsB7mt9PgwNYvydN3S8Q94sgQ6xGmi6D A1WPuPpE4mvj63bP0n2fm3+3aM8f4lzzRqK7I= Original-Received: by 10.68.69.102 with SMTP id d6mr1800714pbu.138.1307324938578; Sun, 05 Jun 2011 18:48:58 -0700 (PDT) Original-Received: from home.jasonrumney.net ([180.75.58.111]) by mx.google.com with ESMTPS id k4sm3308700pbl.11.2011.06.05.18.48.55 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Jun 2011 18:48:57 -0700 (PDT) Original-Received: by home.jasonrumney.net (Postfix, from userid 1000) id 364C9A1E; Mon, 6 Jun 2011 09:48:51 +0800 (MYT) In-Reply-To: (Eli Zaretskii's message of "Thu, 02 Jun 2011 05:26:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 05 Jun 2011 21:50:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:46986 Archived-At: Eli Zaretskii writes: > AFACT, the -c option is not really supported in the Windows build, > because it generally needs the --display argument which Windows > doesn't support. That seems like something that should be fixed. The -c option is short for --create-frame. This is something that Emacs on Windows can do, regardless of whether it supports the --display argument, multi-tty or daemon mode. As far as I can tell, the problem is in emacsclient.c, where it sets tty = 1 if --create-frame is given without a --display argument or DISPLAY environment variable. Windows then fails to create the new frame because it can't create tty frames. Either the code in emacsclient should be changed not to send tty = 1 on Windows, or the code in server.el should be changed to ignore the tty option on Windows.