From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#50209: 27.2; eshell-command not working async Date: Fri, 27 Aug 2021 05:46:41 +0000 Message-ID: <871r6fph7d.fsf@posteo.net> References: <874kbcpna4.fsf@posteo.net> <87sfywz3dp.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20248"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50209@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 27 07:53:18 2021 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 1mJUnl-00053Y-SS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 07:53:18 +0200 Original-Received: from localhost ([::1]:42790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJUnk-0007VO-DA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 01:53:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJUnW-0007Q9-JM for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 01:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJUnW-0000lQ-9V for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 01:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJUnV-0003Fe-Qz for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 01:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Aug 2021 05:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50209 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50209-submit@debbugs.gnu.org id=B50209.163004357312482 (code B ref 50209); Fri, 27 Aug 2021 05:53:01 +0000 Original-Received: (at 50209) by debbugs.gnu.org; 27 Aug 2021 05:52:53 +0000 Original-Received: from localhost ([127.0.0.1]:51074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJUnM-0003FF-N4 for submit@debbugs.gnu.org; Fri, 27 Aug 2021 01:52:52 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:53767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJUnJ-0003Ey-O4 for 50209@debbugs.gnu.org; Fri, 27 Aug 2021 01:52:51 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 56A53240026 for <50209@debbugs.gnu.org>; Fri, 27 Aug 2021 07:52:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1630043563; bh=w3Hr//AHoo5/gO1gLWrYcaRAMluDo/peWpyUuAY6ipw=; h=From:To:Cc:Subject:Date:Autocrypt:From; b=URU+QnWnAkXFNz6douKk5c/5J3zEUMzCmjp0eYf3J12fZhqx7IADYmMCwqyprfxpz ReTDCgjccUPOU+Qyym9sgmR0vzhG7/vUOuip2FP3VjQzGSXe5XUzrifKiwSVgEbTvb 6YPD8oUDU4raJPaxqgCwlwyrY7HBR77Cy253Dzmm9+1fZCPI45KkX35SyqjogcBIAH k/qe5IOU5pKBgACF0gibgdN0X7sI8n6PmW0TZY5EU+U4YpqrwMQFoNvD78SZ0wjSbp Ku+qxknYbEtl6b5VRY/5CzWu1eM/QxRCgCzNXMDFgnbQzmYYmOqSUG4ghEYuQprNep qdJwLmOceQfLQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GwplY6HQwz6tm6; Fri, 27 Aug 2021 07:52:41 +0200 (CEST) In-reply-to: <87sfywz3dp.fsf@gnus.org> Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata= mQGNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA AbQSdGhpZXZvbEBwb3N0ZW8ubmV0iQHUBBMBCgA+FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAl8y lcICGwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQDsVtFB0W75MB3QwAlTsVzFmr +S/tMKwwwOibjhNPi/OZiUC2AYfaqfVAiIHDT3RbzDe03sAJoomJkJnYVjGzQZwibCMO2+ITkMPV 2wvrd4CbgS1KCVbrltwcuK/nxPCBaHytOCZUIInnhJo5PE/h03K 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" Xref: news.gmane.io gmane.emacs.bugs:212793 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Lars Ingebrigtsen writes: > Thierry Volpiatto writes: > >> When running a command in eshell ending with "&" the command should not >> block emacs, it should run asynchronously. > > Do you have a recipe to reproduce? I tried > > emacs -Q > M-x eshell RET > sleep 10 & > > and it ran that asynchronously.=20=20 Yes, that's work, now do: M-x eshell-command sleep 10 & Debugger entered--Lisp error: (error "Format specifier doesn=E2=80=99t matc= h argument type") format-message("Unmatched delimiter: %c" #) apply(format-message ("Unmatched delimiter: %c" #)) error("Unmatched delimiter: %c" #) eshell-eval-command((let ((eshell-current-handles '[nil (t . 1) (t . 1)])= eshell-current-subjob-p) (let ((eshell-this-command-hook '(ignore))) (cond= ition-case err (eshell-do-eval '(prog1 '... '...) nil) ((debug error) (mapc= #'funcall eshell-this-command-hook) (eshell-errorn (error-message-string e= rr)) (eshell-close-handles 1)))))) eshell-command() funcall-interactively(eshell-command) call-interactively(eshell-command record nil) command-execute(eshell-command record) execute-extended-command(nil "eshell-command" "eshell-comm") funcall-interactively(execute-extended-command nil "eshell-command" "eshe= ll-comm") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) Sleep is later executed, if you wait 10s you have the result, but the error prevent running properly the command programatically. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmEofaYTHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk7sAC/wPdNts3UcvmOuT3dtctZCIPhbssine ZOd8Bu43icC2R46NrigIqsqqSxNmJylKbT6nX2Ip5SJNKZ+Ji9J4dvtXcLZsyGqu 5QMVPGQxUrNLnvQfdMFbi+wsyhCCRMxtMNh9X2XZ+94D1oeDv/iYL/7rNIU+Wn2B HeV3tiSwd2Xm3hR4rYOei3kE0hOu3oK2/0Tb9R07yRaHyDEPPT4aY9HGDFD+Akby 0HAIfk9BjKUdQlA+wjx1ulGNVz8kk7Bp+SvtOtOrZlvcHXAdtWTDhH09Dp1K7P9O FZ4jPW+MsGLgmw8nWGkb4X38t+lIIQ20mb1/BkybtmyMPvUu0/Fm/FK4M3ATaI02 1KDlT96lqK9aedmWW21CBchpuhovTNno/6/HyrwLrpQqI/zEq3xDCdfKrAOPTjWc OeEo8vIFciB/1jGHo9qRnfhnO9t6+fNQRGjrR9qtveb36o25bOHjkqRuYLTydP+C UA7nocgI53vIO3UhIFBL2E2CctfLCrCgyuQ= =WoZf -----END PGP SIGNATURE----- --=-=-=--