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: Sat, 24 Aug 2024 11:20:38 +0300 Message-ID: <86seuunxgp.fsf@gnu.org> References: <86bk2gz99x.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32979"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72345-done@debbugs.gnu.org, code@sebasmonia.com To: zxnotdead@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 24 10:21:51 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 1shm1v-0008Ti-2f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Aug 2024 10:21:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shm1L-0008EN-U7; Sat, 24 Aug 2024 04:21:15 -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 1shm1K-0008Dz-Uv for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 04:21:14 -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 1shm1K-0005Me-Kr for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 04:21:14 -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=gOG3qBt1NdjaV7yguWwsCvaVNd6hc1UuQTMCV8eUeRo=; b=gddQ/gxer6mM8mZNNGckqeU4fOozT8VysU3NizNAPIPQP4xfIH7RLDi0YIMOSTM57KCVYxq2DJOTMaAS/h9HJeed9T/UpyberPP9BAmX1s6Dbxo/PVWS+R4UN8ylQt32ApRx0nHpDUiO3JUvzd1NyjvC/9flD1SFWE1AYvCJCAcyENugPL6twDrtUieqa4P2VFGObRFAfCluBy4CbHVxSEcUN90RaVWIBEXJaWCTp2Ef2ddE71BHRRPOM8TuM3gv5LtRu7eoAkxDn0gHBehwBD89k5eKVXkKekf8xlARs1KDAMk88yeL5HzYaILKnu8HuzOahuzbgymozb+7Pprg5Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1shm26-0006in-HQ for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2024 04:22:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Aug 2024 08:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 72345 X-GNU-PR-Package: emacs Mail-Followup-To: 72345@debbugs.gnu.org, eliz@gnu.org, zxnotdead@gmail.com Original-Received: via spool by 72345-done@debbugs.gnu.org id=D72345.172448769825777 (code D ref 72345); Sat, 24 Aug 2024 08:22:02 +0000 Original-Received: (at 72345-done) by debbugs.gnu.org; 24 Aug 2024 08:21:38 +0000 Original-Received: from localhost ([127.0.0.1]:40384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shm1i-0006hf-DT for submit@debbugs.gnu.org; Sat, 24 Aug 2024 04:21:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shm1g-0006hR-Hx for 72345-done@debbugs.gnu.org; Sat, 24 Aug 2024 04:21:37 -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 1shm0o-0005Lq-L7; Sat, 24 Aug 2024 04:20:42 -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=gOG3qBt1NdjaV7yguWwsCvaVNd6hc1UuQTMCV8eUeRo=; b=FhruLEPdgaTw FAAhICFd4Xrd3upe6WiVLWiKCBZH5XbrPN6JCFP5CfH+lc7pVfv1Pc/TIiVN8Gt0wAbc0yF5S/Z32 irnTy3fyW2p8aNyTn9HLMda4qCrX7gsrOOtqTXnLDdO71cP/EOtgp+1X7fcRJ7pR7IDj5BoeHthwE 9SCqjklZ4IKTCmVmgY99UDB7omf53zTxk2274wywPz9QDh1Q23SPzmdCRKqUwMyVzjjiyOwcfHTNp tUrlmhrZKGLrqyvlq24Zgi6Hgs162myShlMxHpYeTJJmdmBehLpy8FRQsBkymyGMVg+atkshAPPio +I+1p7IdgL/hbRXpkavwqw==; In-Reply-To: <86bk2gz99x.fsf@gnu.org> (message from Eli Zaretskii on Mon, 29 Jul 2024 15:12:58 +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:290633 Archived-At: > Cc: 72345@debbugs.gnu.org, code@sebasmonia.com > Date: Mon, 29 Jul 2024 15:12:58 +0300 > From: Eli Zaretskii > > > 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. No further comments within 3 weeks, so I presume this bug was indeed fixed, and I'm therefore closing it.