From unknown Sat Aug 09 13:14:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#72345 <72345@debbugs.gnu.org> To: bug#72345 <72345@debbugs.gnu.org> Subject: Status: 29.4; Emacs daemon on Windows OS Reply-To: bug#72345 <72345@debbugs.gnu.org> Date: Sat, 09 Aug 2025 20:14:22 +0000 retitle 72345 29.4; Emacs daemon on Windows OS reassign 72345 emacs submitter 72345 Constantin Kulikov severity 72345 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 28 18:09:14 2024 Received: (at submit) by debbugs.gnu.org; 28 Jul 2024 22:09:14 +0000 Received: from localhost ([127.0.0.1]:44430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYC4o-0005Vm-4C for submit@debbugs.gnu.org; Sun, 28 Jul 2024 18:09:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:55680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYC4l-0005Ve-Gv for submit@debbugs.gnu.org; Sun, 28 Jul 2024 18:09:12 -0400 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 1sYC4Z-0001Xr-AP for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 18:08:59 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sYC4X-00078a-IT for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 18:08:59 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a7aa4ca9d72so386329066b.0 for ; Sun, 28 Jul 2024 15:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722204535; x=1722809335; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=b0StA1yyWkiyznTVmNDsO5B/7gt+aISTbbNARjCPjc8=; b=PbP0RXX+zbEZ6AZdZymzjOZF3Qt1OdMkggGZSpFBR5csPKovS3jpAZHYFTRhzqSZ0e dFjXOe/F+urQeh748HjrHOnT1HulRvfTZwmQZ/DMevhNP0tTII13eme/QQ1ro2fcMp6w f0z0Rr2ytQ3zdaXmCY6n/tTlBACH0C0SXi0vsc9GbBNY/2jCQAaVDYFAyyuU61xa9gfg R1Q/5eN0CNSy/NHvM/f0zuWqMhF9Nz1dOu6wqdSlS6L/a8G7XIZ+LqOXAvzdxqfyGolZ uxks8Z58ZQx68aN+IVGGYv1noyQtrdcLXaXkKfdqHtYrt/Db9j60sCvGiBBBK0GiLbCG D0oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722204535; x=1722809335; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=b0StA1yyWkiyznTVmNDsO5B/7gt+aISTbbNARjCPjc8=; b=AQy5keJEd33ul8ipiB/dTrz2KOxFCWydW3ZBouKqLYw8cCs8FpGe8UhTqrRD5tQviK bFsXvbOI+PEfEQkffF3I1sSjqPAn2tyjjXETMMAmm5OiMb+9GBRfqChPSUWBa2WpTiR0 hdVRySDbLvKOCThCHkaa1EGhkfwG66e3I9aLY6SzjRHkNjfsEgXb2hP/QZ1hM21AXTiM phzkj3cTak40yXX7o4JgAVzUHDO/Ahmn+rqd/tN9esNKcvzoiM2kl7It0moAfUiJeIV7 EW+PoKlfYM/9BDQ+Sf9cHxSTFMottEiYomX7kVeFdN97oXKS0jmiKl2wO0ny+ZKbXKGL w2Jw== X-Gm-Message-State: AOJu0YzWJKIRnQsSldq0pEV9m4XB7VvHfPFHGQLOZTdYSMlvtXvh6S4a R91kZ0nfQ4T9g6QieI1bb9yA1Zzz97hj3E+rzVIW1sbFQXSEt3ipI0cd8cz0v8zer/wrbs8hrJA HWQHl8NQhlYMX1+t3duM02qgCTbpba8kk X-Google-Smtp-Source: AGHT+IFOCri6MKaM/Wmob/xkcJy48USY55fSjYxXxSlkTa4QudK+8Lz0Lin1XJGdcyPj+8Em5XmmR7QlZk7tPa5MOEM= X-Received: by 2002:a17:907:728c:b0:a7a:a892:8e0b with SMTP id a640c23a62f3a-a7d40015a95mr383681266b.19.1722204534957; Sun, 28 Jul 2024 15:08:54 -0700 (PDT) MIME-Version: 1.0 From: Constantin Kulikov Date: Mon, 29 Jul 2024 01:08:44 +0300 Message-ID: Subject: 29.4; Emacs daemon on Windows OS To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000896a95061e55fdb7" Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=zxnotdead@gmail.com; helo=mail-ej1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000896a95061e55fdb7 Content-Type: text/plain; charset="UTF-8" Trying to use emacs daemon on Windows: In powershell, cd where emacs is unziped and run it: ``` # .\bin\emacs.exe -q --load D:\path-to-my-init\init.el --daemon ``` I use emacs.exe but it does not matter if I use runemacs.exe here and in all other commands mentioned in this bugreport, the only difference is that the emacs process is detached from the terminal. The first problem was the "server socket" file. It was not created. Then I tried without loading my init.el: ``` # .\bin\emacs.exe -q --daemon ``` The server file was created in C:\Users\User\AppData\Roaming\.emacs.d\server That's ok, but I need it to be in another location. Internet suggests to set EMACS_SERVER_FILE environment variable, so I set it in powershell before running emacs: ``` # $env:EMACS_SERVER_FILE = "D:\emacs\.emacs.d\server\server" ``` Seems like it's ignored by emacs. Maybe it's outdated. Then I tried loading my init.el again, the server file was not created. I tried starting with --debug, etc. No errors. Then I added `(server-start)` and other server-* settings to init.el, restarted emacs and got the server file in the desired location. Now it is time for emacsclient (emacsclientw makes no difference here): ``` # .\bin\emacsclient.exe -server-file "$(Resolve-Path '.\.emacs.d\server\server')" -c ``` The frame was created. Success? I'm pressing M-x to enter a command and... emacs is waiting for input but not in GUI frame but in terminal where the daemon was started! (runemacs.exe --daemon waits input somewhere nowhere) Fail! (And even the input from terminal is not working properly in that case. You can enter string to terminal and it reacts to Enter key press, but seems like input received by emacs is always nil) In GNU Emacs 29.4 (build 2, x86_64-w64-mingw32) of 2024-07-05 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.20348 System Description: Microsoft Windows Server 2022 Datacenter (v10.0.2009.20348.1366) Configured using: 'configure --with-modules --without-dbus --with-native-compilation=aot --without-compress-install --with-sqlite3 --with-tree-sitter CFLAGS=-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB (NATIVE_COMP present but libgccjit not available) --000000000000896a95061e55fdb7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Trying to use emacs daemon on Windows:

In powershel= l, cd where emacs is unziped and run it:

```
# .\bin\emacs.exe -q --load D:\path-to-my-init\init.el --daemon
```

I use emacs.exe but it does not matter if I use runemacs.exe= here and in
all other commands mentioned in this bugreport, the only di= fference is
that the emacs process is detached from the terminal.
The first problem was the "server socket" file. It was not creat= ed. Then I
tried without loading my init.el:

```
# .\bin\emacs.exe -q --daemon
```

The server f= ile was created in
C:\Users\User\AppData\Roamin= g\.emacs.d\server

That's ok, but I need it to be in anoth= er location. Internet suggests to
set EMACS_SERVER_FILE environment vari= able, so I set it in powershell
before running emacs:

```
# $env:EMACS_SERVER_FILE =3D "D:\emacs\.emacs.d\s= erver\server"

```

Seems like it's ignored by emac= s. Maybe it's outdated.

Then I tried loading my init.el again, t= he server file was not created.
I tried starting with --debug, etc. No = errors. Then I added
`(server-start)` and other server-* settings to ini= t.el, restarted emacs
and got the server file in the desired location.Now it is time for emacsclient (emacsclientw makes no difference here):
```
# .\bin\emacsclient.exe -server-file = "$(Resolve-Path '.\.emacs.d\server\server')" -c ```

The frame was created. Success? I'm pressing M-x to enter = a command
and... emacs is waiting for input but not in GUI frame but in = terminal
where the=C2=A0daemon was started! (runemacs.exe --daemon waits= input somewhere nowhere)
Fail!
(And even the input from terminal is = not working properly in=C2=A0that case. You can enter
string to terminal= and it reacts to Enter key press, but seems like
input received by emac= s is always nil)


In GNU Emacs 29.4 (build 2, x86_64-w64-mingw32)= of 2024-07-05 built on
=C2=A0AVALON
Windowing system distributor = 9;Microsoft Corp.', version 10.0.20348
System Description: Microsoft= Windows Server 2022 Datacenter (v10.0.2009.20348.1366)

Configured u= sing:
=C2=A0'configure --with-modules --without-dbus --with-native-c= ompilation=3Daot
=C2=A0--without-compress-install --with-sqlite3 --with-= tree-sitter
=C2=A0CFLAGS=3D-O2'

Configured features:
ACL G= IF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIF= Y W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_B= ARS TREE_SITTER WEBP XPM ZLIB

(NATIVE_COMP present but libgccjit not= available)
--000000000000896a95061e55fdb7-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 28 20:21:27 2024 Received: (at submit) by debbugs.gnu.org; 29 Jul 2024 00:21:27 +0000 Received: from localhost ([127.0.0.1]:44611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYE8k-0000SZ-RT for submit@debbugs.gnu.org; Sun, 28 Jul 2024 20:21:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:56186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYE8i-0000SQ-49 for submit@debbugs.gnu.org; Sun, 28 Jul 2024 20:21:25 -0400 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 1sYE8V-0006Vx-MB for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 20:21:11 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sYE8U-0004E6-7T for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2024 20:21:11 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5a1337cfbb5so5278922a12.3 for ; Sun, 28 Jul 2024 17:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722212467; x=1722817267; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=3IJeM1KdWNKWjeOEua9Pmc289l4K8hmkqq5nV5p+s8I=; b=Y3UpHFWzFGMe1lXYKzBsIUZ6KrClbi+XmwTosYBV4SIKpyhT66aZZsDS4TqwIwmZsN OEM5zPjcAUCmwhrZkRjaKe/WL8+sx7Fl44v/eOCeKsennfcZh/R4wo8UO5TzJV1yA712 gV+K/MmuQHIbHGr9YJcNcig23jAXtnYftNFWVdxrFEBWUE7Pp7EqrqQmN4P6rSlfTVX9 Z3I1OFzFJbkScSZx/NagsdaAIx44w2BICCfDbRyCVPZlRWwDXzB5uj9dfAIb7HAqMxPt 1XmPiqxBoEldGDvHDk9x6mQywA2RB6NHhFSgi5NbKoBhVCv5Pq77a4Cer6W/nlmLumOq Umsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722212467; x=1722817267; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3IJeM1KdWNKWjeOEua9Pmc289l4K8hmkqq5nV5p+s8I=; b=WwX7jlFWvNi8A+yNNemF2jPqNnBVz5jIaAugcGYu79NCWgl+8Uf6DF7tD/zO8AS2hG QHH8dJw9lsEpPFM518gZQD0276+L43k9qbxoKhpTw82yhJxiEYqkCwXlniDdpxoNzR8D bgclPLXHBKNzObARwy0/QjrLU7qNBmQilP4sM0hxSFPBaB3LLjaMji43Hm9izd8RHv4v zT2k1vx0dciZW20uY8kjE1VS3777ce+X1vIGf6RktiIGPHqJrbuVrTyAH5iEfMotHnfY J3yq4ZqOgVu+iCGF5rmz3GrM11G4wRQqY/IuRqB9P/STDh2ap5zkzGOXejzRA5HXgukA nnIQ== X-Gm-Message-State: AOJu0YzEe5exX7D2FMpzgQCkRz31uobe9lq68C+Mu+JQ1ZuAuX2eR9GZ zbWsZPW5OBmdaDSaGuW60i0Cb8Ny3MiFr9xCHN3dgrEXycgGau+CqmXO8DwrVojuIA3/qnZsK8d GMgUe9V7Epum8QpK3q7lRHppJg/XZQz4D X-Google-Smtp-Source: AGHT+IHfheAeo4OPR8kUqmg/TPw2aUcykAEXetidRBsZo5WxbffbrKxGA0CFI+wZfXZwVfhJp23TEIBYP+0hBTJfNqU= X-Received: by 2002:a17:906:dc8b:b0:a7a:9447:3e8b with SMTP id a640c23a62f3a-a7d4005774fmr476308466b.25.1722212467327; Sun, 28 Jul 2024 17:21:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Constantin Kulikov Date: Mon, 29 Jul 2024 03:20:57 +0300 Message-ID: Subject: Re: 29.4; Emacs daemon on Windows OS To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="00000000000057ca3c061e57d6be" Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=zxnotdead@gmail.com; helo=mail-ed1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --00000000000057ca3c061e57d6be Content-Type: text/plain; charset="UTF-8" *> input from terminal is not working properly* Well this is not true. It works with standard read-* methods, and fail if used with for example ivy-mode. On Mon, 29 Jul 2024 at 01:08, Constantin Kulikov wrote: > (And even the input from terminal is not working properly in that case. > You can enter > string to terminal and it reacts to Enter key press, but seems like > input received by emacs is always nil) > --00000000000057ca3c061e57d6be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> input from terminal is not workin= g properly
Well this is not true. It works with standard read= -* methods, and fail if used with for example ivy-mode.

On Mon, 29 Jul 2024 = at 01:08, Constantin Kulikov <zxn= otdead@gmail.com> wrote:
(And even the input from terminal is = not working properly in=C2=A0that case. You can enter
string to terminal= and it reacts to Enter key press, but seems like
input received by emac= s is always nil)
--00000000000057ca3c061e57d6be-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 29 02:29:54 2024 Received: (at 72345) by debbugs.gnu.org; 29 Jul 2024 06:29:55 +0000 Received: from localhost ([127.0.0.1]:44773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYJtJ-0001b3-TQ for submit@debbugs.gnu.org; Mon, 29 Jul 2024 02:29:54 -0400 Received: from fout4-smtp.messagingengine.com ([103.168.172.147]:50925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYHIp-0005XF-Ps for 72345@debbugs.gnu.org; Sun, 28 Jul 2024 23:44:05 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.nyi.internal (Postfix) with ESMTP id 1C1E913807FB; Sun, 28 Jul 2024 23:43:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 28 Jul 2024 23:43:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sebasmonia.com; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1722224626; x=1722311026; bh=NFPhxsFNHSOzvFLqsUBGdepvYgu124Iz osxbFI55JF8=; b=VhZOmhOrJP3TtrQvZPFAyAw3w2NL/tCiLWv4zi/INzKd4Twh ud6XRS8aeru/iG7t88lvEp6p2ulCJTvRHyesB1WrL8BmcP18uKWKhrM8vZoUlaqH LY0TCbTnYwVjlHjKFP/iyZBiAYOTSYn42qva3YmZiiBxb0UXDDkKWqZ4B6iQg7Xj uHYqnSMoly1/6ZRkQolY9JC/M0vINS2/Y8OjUVUwsChcQJo1vbTWHFdUVXW8BzFP BBS+mOJVUfs/pmVGC+zYEpv6R3Eo28SrD5pwxQOZ7m9ggH7843z+SpwA919DaE07 +AOqiYF3QTCZ3LjhTVS8mG0ma6RX0/WoG+IpDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1722224626; x= 1722311026; bh=NFPhxsFNHSOzvFLqsUBGdepvYgu124IzosxbFI55JF8=; b=Y IMIZjWeVn1X64ELWlXcfpWvlytwehM8YzH8qDS70xFO/VRl705zu0nX1GR97ALU8 0pbGKZ+wyOMhB2V0mK3+K5E72V4xxngtzWo0KO8LlfBS/lF7A3P1t9w7RALT4arV WzeakRm2k/cpDYPIbJbZQ1DTRMMIT/KEY2xPRBEv2odlmoGmyXI2QeEEZ2mWf5CR M2ET8ndpkA7MoHKVEHLMVqiiuNy3vRY2++o325jJZ6Ux0tPi2+igebNO9O7pVtPR aWbd12QlN4MAcnXZmz90g8R4Gy421D+1EVNhg7Y6Cj4oVBLRO2FqhRO3cbVSz1qY KiOeJJU9kXDe8kcPnx5WQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjedugdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefujghffffkfgggtgfgsehtqh ertddtreejnecuhfhrohhmpefuvggsrghsthhijohnucfoohhnvogruceotghouggvsehs vggsrghsmhhonhhirgdrtghomheqnecuggftrfgrthhtvghrnhephfdtfeejvefgieekfe ethfekteeghfejtedtudduudfgudeffeekhedtffdtvefgnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomheptghouggvsehsvggsrghsmhhonhhirg drtghomhdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: iab7c46da:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 28 Jul 2024 23:43:45 -0400 (EDT) From: =?utf-8?Q?Sebasti=C3=A1n_Mon=C3=ADa?= To: Constantin Kulikov Subject: Re: bug#72345: 29.4; Emacs daemon on Windows OS In-Reply-To: (Constantin Kulikov's message of "Mon, 29 Jul 2024 01:08:44 +0300") References: Date: Sun, 28 Jul 2024 23:43:44 -0400 Message-ID: <87a5i0hngv.fsf@sebasmonia.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72345 X-Mailman-Approved-At: Mon, 29 Jul 2024 02:29:49 -0400 Cc: 72345@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Constantin, It has been a long time since I setup the daemon in Windows. I don't use it anymore. Some things to try: > In powershell, cd where emacs is unziped and run it: > > ``` > # .\bin\emacs.exe -q --load D:\path-to-my-init\init.el --daemon > ``` Can you try this in good old cmd, just in case. > Internet suggests to set EMACS_SERVER_FILE environment variable, so > I set it in powershell before running emacs: One suggestion I make to every Windows user, is to setup a HOME environment variable. A lot of open source software respects its value, and you can chose something shorter like `C:\home`, much shorter then %USERPROFILE%. And then all Emacs config and server file etc would be somewhere under this directory. Hope this helps, Sebasti=C3=A1n From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 29 05:28:39 2024 Received: (at submit) by debbugs.gnu.org; 29 Jul 2024 09:28:39 +0000 Received: from localhost ([127.0.0.1]:44868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYMgJ-00065w-54 for submit@debbugs.gnu.org; Mon, 29 Jul 2024 05:28:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:47134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYMgF-00065g-G4 for submit@debbugs.gnu.org; Mon, 29 Jul 2024 05:28:38 -0400 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 1sYMg2-00041m-IB for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2024 05:28:22 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sYMg0-0001T5-Qd for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2024 05:28:22 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a7a843bef98so330532866b.2 for ; Mon, 29 Jul 2024 02:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722245299; x=1722850099; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=veEHVyxhXdKAPxycWOVJ1FNwnz9I6szm9wn1xVHXYf8=; b=P36dMETi6+1NkghvkVSaw6dGgAgzS7gGIudkt1E9SMUSVjAwoPIsDHHTWwjBSu90Pp wu0910iYS0Tbl84tLWwFUa0E4DsE5Vfce/gJaXs1lalbXrgMbCnuhZMNR8oKfz6OjDbI YNEV18zl/+9qjhIcDnSzThrbJ+6IYKARqk1JIIT7o9tdIKFt5PWiBpqlh1s4DuNW+NoN fgWuHETkYNvDfEVftaZ9obWuOK3W1Mq6rV/bYzuvhkRkcCsUJzxc8QdOLcrxVrjhU+De hZC+8L6QDvXqFOK+VhU3QaD7TKziLgp4YP8NzBmt7ypwz1/QCdEc4toXGQu7l++JE5Wa 38cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722245299; x=1722850099; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=veEHVyxhXdKAPxycWOVJ1FNwnz9I6szm9wn1xVHXYf8=; b=kL8RwM5HYnp/fE4BnpPzm37CiotYppTnmiCavZiQSUPwYlD1HhjxEIMYtsxicFWard +ix1KWaJVkqJle66bSp0n6asDd71sP0e6NGHlg7XXsUeb22AXt3rsWpSyDqegodNlJ6N +d115xX/X10IlpXuPx8lZ6V9QzHfoGWiUdmEfUC4LiRMkeNW9m6WBJ5O7wZP/BQfNw36 iHWTZKSurFqYa5pWgpY/EiUtJgbS3a//TiNBPva9MPHjpo6Z1wRZsEVjNh6loevUp14R 0b+CdCQPEu09FTypz3P8EmJfqCnPSiTefCUrFr/1af8eYZ2dXlBwqX9xnlHTYM0oWG36 03Tw== X-Gm-Message-State: AOJu0YyFco01IzI9c0xG1BMoD4hlDQElzbONTfw7Se6aOJAjXhiLmHcz ioeR4hK4Vc4TBZmVayOYmRihGz9sXCnd0LYeBR7Qd/BR6/jBfd3v4tyTZ747/ti/o5wbMzoJTJR J0nSldjjU7NGqO2NzJh+K4LIFmaoTyu2N X-Google-Smtp-Source: AGHT+IGx9RfHZvrjlWXG+0H3sdSPB5rHTYr1qy3A23TgRB0chqsxFe1jdfu8HO0Khafom1GVqImO0U3M8sXQ3WPjrlQ= X-Received: by 2002:a17:906:dc95:b0:a7a:ae85:f245 with SMTP id a640c23a62f3a-a7d400e1eddmr507353366b.38.1722245298438; Mon, 29 Jul 2024 02:28:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Constantin Kulikov Date: Mon, 29 Jul 2024 12:28:08 +0300 Message-ID: Subject: Re: 29.4; Emacs daemon on Windows OS To: bug-gnu-emacs@gnu.org, code@sebasmonia.com Content-Type: multipart/alternative; boundary="0000000000003aca4c061e5f7b38" Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=zxnotdead@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --0000000000003aca4c061e5f7b38 Content-Type: text/plain; charset="UTF-8" *> It works with standard read-* methods, and fail if used with for example ivy-mode.* This is not true either. I can switch buffer with C-x b, but can not get help for a function with C-h f . *> Can you try this in good old cmd* cmd makes no difference *> One suggestion I make to every Windows user, is to setup a HOMEenvironment variable.* Good suggestion. As for emacs, one can also specify --init-directory in the command line. 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. On Mon, 29 Jul 2024 at 03:20, Constantin Kulikov wrote: > *> input from terminal is not working properly* > Well this is not true. It works with standard read-* methods, and fail if > used with for example ivy-mode. > > On Mon, 29 Jul 2024 at 01:08, Constantin Kulikov > wrote: > >> (And even the input from terminal is not working properly in that case. >> You can enter >> string to terminal and it reacts to Enter key press, but seems like >> input received by emacs is always nil) >> > --0000000000003aca4c061e5f7b38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> It works with standard read-* met= hods, and fail if used with for example ivy-mode.

This is not true either. I can switch buffer with C-x b= , but can not get help for a function with C-h f .

> Can you try this in good old cmd
cmd makes no difference

> One su= ggestion I make to every Windows user, is to setup a HOME
environment va= riable.


Good suggestion. As for emacs, one= can also specify --init-directory in the command line.

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 &q= uot;-myparam" command-line-args)))
=C2=A0 =C2=A0 (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-star= t) from your config then emacs read-* functions are trying to read input fr= om 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"=C2=A0is no= t to specify any custom command line arguments.
I consider it as = a bug.


On Mon, 29 Jul 2024 at 03:20, Constantin Kulikov <<= a href=3D"mailto:zxnotdead@gmail.com">zxnotdead@gmail.com> wrote:
<= div dir=3D"ltr">> input from terminal is not working properly
Well this is not true. It works with standard read-* methods, and fa= il if used with for example ivy-mode.

<= div dir=3D"ltr" class=3D"gmail_attr">On Mon, 29 Jul 2024 at 01:08, Constant= in Kulikov <zxn= otdead@gmail.com> wrote:
(And even the input from terminal is = not working properly in=C2=A0that case. You can enter
string to terminal= and it reacts to Enter key press, but seems like
input received by emac= s is always nil)
--0000000000003aca4c061e5f7b38-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 29 06:53:09 2024 Received: (at submit) by debbugs.gnu.org; 29 Jul 2024 10:53:09 +0000 Received: from localhost ([127.0.0.1]:44960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYO05-0008QP-85 for submit@debbugs.gnu.org; Mon, 29 Jul 2024 06:53:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:54008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYO02-0008QG-9r for submit@debbugs.gnu.org; Mon, 29 Jul 2024 06:53:07 -0400 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 1sYNzp-0003VO-Cl for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2024 06:52:53 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sYNzn-0007Tp-OM for bug-gnu-emacs@gnu.org; Mon, 29 Jul 2024 06:52:53 -0400 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5a2a90243c9so4298480a12.0 for ; Mon, 29 Jul 2024 03:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722250369; x=1722855169; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=8UYRTIxQsT3X/XbbrAocGL2aOq4k1JJpBP7L3h5nJLw=; b=dXhyo1m7LHcKu88h9TSwYEYsd1Tb/8ZuNRjxN32ft3MuSO3gWY8zoyQ/lP6+jp3fDl fSuKccWGt+ODt9G2FF1hUV8jG8ERjuG9nWAsj/fy0BQm8rpiGOo6OzNsv6G15ad1dEf3 q3A3ey5han+JY6rbSXMdOLWrjpM2LW2zI2bHladN/Do6MDPulsmX+rFan/ww+s+A18DM 6SBO5XRetN53XfVgoQ1/7XYdgw86T/OrYJrinvCOZhGIL9g8AKN2PebCTXz2ofx0uj4W Otx3/29kwOpJQ+DjiqFO8Mu+10YtWUroiJcy0m2xHqwrvpsLDQ2YItGIWXFXqtJZ/P1b HRQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722250369; x=1722855169; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8UYRTIxQsT3X/XbbrAocGL2aOq4k1JJpBP7L3h5nJLw=; b=usFLW7aU2rXjnlyKnTVC2m7Z2D3f2jdacEcNct13RT9790X5+mbDCi/+p8BKPp3Y2d FcsVdcuY+4GCy18YLZAr7kx3tHUM1fQzKfqUvQTAkAsh59ngMFsir0qgdhsU7EGZsZLR nTXXOx5DvnzO7hMHpt4Clv2+4oAqZLOsBtvL9q+Oqr5cL/jPtqacpngoYW8HLpnDOz/U PwYJ4CY2nreKdaUm/TZFfW+LfVxA63MEoPBfkaVssIX++WcSer+TK57TtCfTRO17yDZJ C9hXRFzsGKR0YGLOUAkPFSVSJ5wf6sLwCT5tq1PbTU9AaK9OFSIw+dr2UNda0Bxm7c04 mVlA== X-Gm-Message-State: AOJu0YwPTkFRy3pmj7viSF9/r4DYN4T1QFeLwSaWUpikJmisYJoAIGsP uTrjFqzikjHfFAcwP5eqzBnBUoXrgIri+t1wiKtEL548y74DNP3BUhPp3FjRGFnrxqEaK7rPaCZ D3YrBE2apRS9BGoxF5MEZZoGGb7LXCeZs X-Google-Smtp-Source: AGHT+IF0xh/fR/Aux25mgdzGFV9drKjAGs2G/Ii5Hz4/GfutbmJcurTNDT2e6fZFcL/Pj54vMN8bhK25r0K2oSPRuSc= X-Received: by 2002:a05:6402:5113:b0:57c:c3aa:6c68 with SMTP id 4fb4d7f45d1cf-5b020ba5bb5mr6570958a12.20.1722250369306; Mon, 29 Jul 2024 03:52:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Constantin Kulikov Date: Mon, 29 Jul 2024 13:52:39 +0300 Message-ID: Subject: Re: 29.4; Emacs daemon on Windows OS To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000007a161e061e60a904" Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=zxnotdead@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --0000000000007a161e061e60a904 Content-Type: text/plain; charset="UTF-8" *> So the "solution" is not to specify any custom command line arguments.* The actual solution is to remove all custom arguments from the `command-line-args-left' while config is loading. Then "THE BUG" is that the emacs daemon silently stays in half-working more like a hanging state in case if `command-line-args-left' is not nil after config is loaded. On Mon, 29 Jul 2024 at 12:28, Constantin Kulikov wrote: > So the "solution" is not to specify any custom command line arguments. > I consider it as a bug. > > > On Mon, 29 Jul 2024 at 03:20, Constantin Kulikov > wrote: > >> *> input from terminal is not working properly* >> Well this is not true. It works with standard read-* methods, and fail if >> used with for example ivy-mode. >> >> On Mon, 29 Jul 2024 at 01:08, Constantin Kulikov >> wrote: >> >>> (And even the input from terminal is not working properly in that case. >>> You can enter >>> string to terminal and it reacts to Enter key press, but seems like >>> input received by emacs is always nil) >>> >> --0000000000007a161e061e60a904 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> So the "solution"=C2=A0= is not to specify any custom command line arguments.

=
The actual solution is to remove all custom arguments from the `= command-line-args-left' while config is loading.

Then "THE BUG" is that the emacs daemon silently stays in half= -working more like a hanging state in=C2=A0case if `command-line-args-left&= #39; is not nil after config is loaded.

On Mon, 29 Jul 2024 at 12:28, Consta= ntin Kulikov <zxnotdead@gmail.com= > wrote:
=
So the "solution"=C2=A0is not t= o specify any custom command line arguments.
I consider it as= a bug.


On Mon, 29 Jul 2024 at 03:20, Constantin Kulikov <= zxnotdead@gmail.co= m> wrote:
> input from terminal is not worki= ng properly
Well this is not true. It works with standard rea= d-* methods, and fail if used with for example ivy-mode.

On Mon, 29 Jul 2024= at 01:08, Constantin Kulikov <zxnotdead@gmail.com> wrote:
(And even the inpu= t from terminal is not working properly in=C2=A0that case. You can enterstring to terminal and it reacts to Enter key press, but seems like
inp= ut received by emacs is always nil)
--0000000000007a161e061e60a904-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 29 08:13:22 2024 Received: (at 72345) by debbugs.gnu.org; 29 Jul 2024 12:13:22 +0000 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 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 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==; Date: Mon, 29 Jul 2024 15:12:58 +0300 Message-Id: <86bk2gz99x.fsf@gnu.org> From: Eli Zaretskii To: Constantin Kulikov In-Reply-To: (message from Constantin Kulikov on Mon, 29 Jul 2024 12:28:08 +0300) Subject: Re: bug#72345: 29.4; Emacs daemon on Windows OS References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72345 Cc: 72345@debbugs.gnu.org, code@sebasmonia.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 24 04:21:38 2024 Received: (at 72345-done) by debbugs.gnu.org; 24 Aug 2024 08:21:38 +0000 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 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 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==; Date: Sat, 24 Aug 2024 11:20:38 +0300 Message-Id: <86seuunxgp.fsf@gnu.org> From: Eli Zaretskii To: zxnotdead@gmail.com In-Reply-To: <86bk2gz99x.fsf@gnu.org> (message from Eli Zaretskii on Mon, 29 Jul 2024 15:12:58 +0300) Subject: Re: bug#72345: 29.4; Emacs daemon on Windows OS References: <86bk2gz99x.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72345-done Cc: 72345-done@debbugs.gnu.org, code@sebasmonia.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Sat Aug 09 13:14:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 21 Sep 2024 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator