From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65812: 29.1; Emacs client on Windows can't connect to the daemon on WSL over TCP Date: Fri, 08 Sep 2023 14:50:53 +0300 Message-ID: <834jk4yjc2.fsf@gnu.org> References: <83bkedxh3q.fsf@gnu.org> <83a5twyktm.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39270"; mail-complaints-to="usenet@ciao.gmane.io" To: 65812@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 08 13:52:11 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qea1y-000A14-Fn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Sep 2023 13:52:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qea1p-0005re-VX; Fri, 08 Sep 2023 07:52:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qea1n-0005rO-Qw for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 07:52:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qea1n-0004kO-Ii for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 07:51:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qea1p-0008Gx-Nc for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 07:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 11:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65812 X-GNU-PR-Package: emacs Original-Received: via spool by 65812-submit@debbugs.gnu.org id=B65812.169417387331740 (code B ref 65812); Fri, 08 Sep 2023 11:52:01 +0000 Original-Received: (at 65812) by debbugs.gnu.org; 8 Sep 2023 11:51:13 +0000 Original-Received: from localhost ([127.0.0.1]:42424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qea13-0008Fr-6N for submit@debbugs.gnu.org; Fri, 08 Sep 2023 07:51:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qea11-0008Ff-Dn for 65812@debbugs.gnu.org; Fri, 08 Sep 2023 07:51:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qea0t-0004Yo-4v for 65812@debbugs.gnu.org; Fri, 08 Sep 2023 07:51:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9OqiDG+msysTaBgYGmSTvw0KUEE9Xu16cjaEkEZAPQk=; b=lRW6V1koyDz+ R/ACONsIA6D7VbCEfDqiqC4TqfieKbRUhei6/BY6sGrYpUBeCKda1185Uk4WcMrRKMvH8dx6A/9Om mDMHL47FZfv+vxj1qcKS0v8QfKnBI/qLpBkDrsoP48f/zwQLNLyNiX4rR/GMoiFetdJppEjQGpOIe m8uF9111sT4FUyGPtwIKvLIPaZSENc8RVMmiBO70USRMQykUQub44hSyYaZClzqehUOL9ioAr+3YQ sbLO3opuTuGfMXfDhSLkOR7awpv7EY3ug31LCDkwHvHoQMSvnul9vo8lU91W33omCJw7vwqUZ0W7K QiFXWEAPm+mRsdCWCLDeYA==; In-Reply-To: <83a5twyktm.fsf@gnu.org> (message from Eli Zaretskii on Fri, 08 Sep 2023 14:18:45 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:269760 Archived-At: > Cc: 65812@debbugs.gnu.org > Date: Fri, 08 Sep 2023 14:18:45 +0300 > From: Eli Zaretskii > > > Cc: 65812@debbugs.gnu.org > > Date: Fri, 08 Sep 2023 10:24:25 +0300 > > From: Eli Zaretskii > > > > Please try the patch below and tell if it solves your problem. > > Sorry, there was an error in that patch (this is what I get for > sending patches in a hurry). Please try the one below instead. The OP used an email address that cannot be replied to. Could someone here who uses WSL (or some other setup where emacsclient on Windows talks to the server on Unix) please try this patch with the recipe in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65812#5 and report back? If no one can test this within a week or so, I'm going to install this on the emacs-29 branch regardless. TIA. > diff --git a/lisp/server.el b/lisp/server.el > index 104fc06..1006fee 100644 > --- a/lisp/server.el > +++ b/lisp/server.el > @@ -1262,9 +1262,12 @@ server-process-filter > ;; choice there.) In daemon mode on Windows, we can't > ;; make tty frames, so force the frame type to GUI > ;; there too. > - (when (and (eq system-type 'windows-nt) > - (or (daemonp) > - (eq window-system 'w32))) > + (when (or (and (eq system-type 'windows-nt) > + (or (daemonp) > + (eq window-system 'w32))) > + ;; Client runs on Windows, but the server > + ;; runs on a Posix host. > + (equal tty-name "CONOUT$")) > (push "-window-system" args-left))) > > ;; -position +LINE[:COLUMN]: Set point to the given > > > >