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#72345: 29.4; Emacs daemon on Windows OS Date: Mon, 29 Jul 2024 15:12:58 +0300 Message-ID: <86bk2gz99x.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5868"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72345@debbugs.gnu.org, code@sebasmonia.com To: Constantin Kulikov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 29 14:14:19 2024 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 1sYPGc-0001Ph-PM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jul 2024 14:14:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYPGD-0000q4-P8; Mon, 29 Jul 2024 08:13:53 -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 1sYPGB-0000pc-IE for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2024 08:13:52 -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 1sYPG9-0006rP-PX for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2024 08:13:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=7ENa9ct1XfuZb8un/VoG79tm+XMn3Dszfx7C2vkNPYk=; b=GQ1OtngANOT7UwSn3kGhQdf4FzRMz6eocEWwUtf3u0kBZUaeT/KkW/yaZZMA2M6ztfEIjIJurH+4PSoMHeTiVNeDWQpeC9dNzoAR1tnNZFzXnQmHqfOHiz99yr5Im9tTIR5beaRQ3iAnBRio7oYOBllqkceGIt74H+VEK0PohVNxtfehhNuKyH8mOlJddUd1XpTZLjY48me8vPkravXt8jFxBue8lMTG6BWOnpZO+hv5WfD9fOY5dwNbpu6QRHdQ5mYw5UKG7etCjRiDJyPTSXacHPuDKmGtj6EiAnCJdxVrbEpYwXGQ4rzbDzsomI3FuCGh7jjBwDXD940y5GK8cQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sYPGM-00022o-8b for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2024 08:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jul 2024 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72345 X-GNU-PR-Package: emacs Original-Received: via spool by 72345-submit@debbugs.gnu.org id=B72345.17222552027795 (code B ref 72345); Mon, 29 Jul 2024 12:14:02 +0000 Original-Received: (at 72345) by debbugs.gnu.org; 29 Jul 2024 12:13:22 +0000 Original-Received: from localhost ([127.0.0.1]:45083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYPFh-00021e-T7 for submit@debbugs.gnu.org; Mon, 29 Jul 2024 08:13:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYPFf-00021S-Fk for 72345@debbugs.gnu.org; Mon, 29 Jul 2024 08:13:20 -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 1sYPFN-0006hG-3S; Mon, 29 Jul 2024 08:13:01 -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=7ENa9ct1XfuZb8un/VoG79tm+XMn3Dszfx7C2vkNPYk=; b=GEhHrpiKmDRz /X5xBzfmA0CGdxMSxUwJyUMJNjN+zNgf1UGMISJIGZI6Ahg+O6uVcbK/xKjz6FslZdYiuCNp7lVR+ pvW07RIPwTmZBPd/3YTcsaAWFpjk1vf9MxEBW4KPCizJ/aoi/yYuXrKLBMrKDhxNLFo+85Cb9CGy9 2490EcvHfROA+D27sQTyvdwmUuA8M2s0KQ9qPfeZQUWC9KJwTrSrSx1tghodIeVGDR7npXLkr4PjN 6ZrUNVrmlo0V2NICf3DcXdL5wVP11pqPkhaIB0AZH1YYMRVOggmNNzcWczTktZLoXVVky34DcLtqy n9QPaZDNTNcYX5LSAF7PcQ==; In-Reply-To: (message from Constantin Kulikov on Mon, 29 Jul 2024 12:28:08 +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:289518 Archived-At: > From: Constantin Kulikov > Date: Mon, 29 Jul 2024 12:28:08 +0300 > > I found the root of the problem. The horrors I described in starting post happens only if you specify custom > command line parameters in emacs --daemon command, like: > > ``` > # emacs.exe --daemon -myparam test > ``` > > Which can be used in a config like: > > ``` > (let ((myparamcons (member "-myparam" command-line-args))) > (setq myparam (cadr myparamcons))) > ``` > > If you specify such a command line argument then the server file is not created by default and if you manually > (server-start) from your config then emacs read-* functions are trying to read input from the terminal. But > interestingly that if you press C-x C-c in emacsclient frame -- then emacs request to save modified files are > handled properly in GUI frame. > > So the "solution" is not to specify any custom command line arguments. > I consider it as a bug. I can reproduce this in Emacs 29, but not on the current emacs-30 release branch, which will eventually become Emacs 30.1. Emacs 30 refuses to start in this case: d:\>emacs --daemon -Q -myparam test Starting Emacs daemon. Unknown option `-myparam' d:\>echo %ERRORLEVEL% -1 and after the above, I see no Emacs process running, so it exited with status -1 after reporting the error. Thus, I guess we already fixed this bug.