From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Vesa Suontama" Newsgroups: gmane.emacs.bugs Subject: bug#549: emacsclient or emacsclientw not waiting in Windows Date: Tue, 15 Jul 2008 12:49:36 +0300 Message-ID: <5f9de3c40807150249me470a4fod2b32cb11415ff0a@mail.gmail.com> References: <5f9de3c40807142340o7954c128i3130aedcd98de3d0@mail.gmail.com> <487C53BC.4030807@gmail.com> <487C5CB7.3050004@gnu.org> Reply-To: Vesa Suontama , 549@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216127179 20818 80.91.229.12 (15 Jul 2008 13:06:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2008 13:06:19 +0000 (UTC) Cc: 549@emacsbugs.donarmstrong.com To: "Jason Rumney" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 15 15:07:06 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIkEu-0006XS-0V for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 15:06:44 +0200 Original-Received: from localhost ([127.0.0.1]:37209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIkE1-0001VS-OS for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 09:05:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIhRO-0000Kn-V8 for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 06:07:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIhRM-0000Jf-EL for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 06:07:25 -0400 Original-Received: from [199.232.76.173] (port=36366 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIhRM-0000JR-62 for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 06:07:24 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53878) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KIhRL-0007Yc-3D for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 06:07:23 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6FA7G3K026855; Tue, 15 Jul 2008 03:07:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6F9t5E9022779; Tue, 15 Jul 2008 02:55:05 -0700 X-Loop: don@donarmstrong.com Resent-From: "Vesa Suontama" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Tue, 15 Jul 2008 09:55:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 549 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: wontfix Original-Received: via spool by 549-submit@emacsbugs.donarmstrong.com id=B549.121611538221456 (code B ref 549); Tue, 15 Jul 2008 09:55:05 +0000 Original-Received: (at 549) by emacsbugs.donarmstrong.com; 15 Jul 2008 09:49:42 +0000 Original-Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6F9na9R021450 for <549@emacsbugs.donarmstrong.com>; Tue, 15 Jul 2008 02:49:38 -0700 Original-Received: by wr-out-0506.google.com with SMTP id c57so3558740wra.9 for <549@emacsbugs.donarmstrong.com>; Tue, 15 Jul 2008 02:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=1HRiDKNiw6NSiAbBk7XRiPJlCU+hPZFoV8T9zim14e0=; b=HXeNi4p9XcAtd/2gcZcKbiGiF9ftEJZe3CKkd+q5771IjNAHXgURIW9D6DNg62X7PO TNLVD0u8ihczj9MPpySYHhqVJjc9gZbXpngOqBphvtEoUBR1f9zt10iXXCk2bgSoB5j2 uIm2uZO+UcFy60uiG7742QdJoK5xdkwrpDFnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=rnc5hSHf4BtGMJUUIZxDIISWNvyX+YHUlfqcCEaAIoxspR5aHe8Vo9CSPPfw1ukklK wunSCsBtdOEtRd/NTlvYSYOumqGS+SjcavklXeYlckGFoIUZ6cslFN27FlMxmcFUw56o 3yb9ocDR4XOG5EY+iU507xg39L6odI2hPaSPc= Original-Received: by 10.90.116.4 with SMTP id o4mr15918401agc.97.1216115376522; Tue, 15 Jul 2008 02:49:36 -0700 (PDT) Original-Received: by 10.90.80.4 with HTTP; Tue, 15 Jul 2008 02:49:36 -0700 (PDT) In-Reply-To: <487C5CB7.3050004@gnu.org> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 15 Jul 2008 06:07:25 -0400 X-Mailman-Approved-At: Tue, 15 Jul 2008 09:05:25 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18731 Archived-At: Hi, I checked the source code for emacsclient, and it is already full of ifdefs for windows, one more will not do any harm :) There could be a quite easy way to make emacsclientw to behave like emacsclient.exe if it was started from command line, just by attaching into the console of the calling process. If the process was not started by console, then do not create console at all, right? The problem is that I do not have the compilation environment set up. If I run into too big problems with that, I may not have time. Vesa On Tue, Jul 15, 2008 at 11:15 AM, Jason Rumney wrote: > >>> It works like this: have emacsclient.com and emacsclient.exe, where >>> new emacsclient.exe is the old emacsclientw.exe, and emacsclient.com >>> is just a wrapper that calls the emacsclient and waits for it to >>> finish (e.g. by using a named event, which emacsclient.com waits). >>> >>> The other way around could be to use "AttachConsole" etc. from >>> emacsclientw (and rename it to emacsclient), but all this is just >>> guessing >>> as I do not know the real reason for emacsclientw. > > These might be good ideas if Emacs was a Windows program. But since > Emacs is a cross platform program, it is better to keep emacsclient the > same as other platforms, and have emacsclientw, which is built from > identical source code with different compiler switches, to work around > the deficiency in Windows where it insists on making a console visible > when you start a console program from the GUI. > >