From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57792: 29.0.50; async-shell-command fails with prefix-argument on -master Date: Wed, 14 Sep 2022 17:10:44 +0200 Message-ID: <87h71a6lfv.fsf@gnus.org> References: <87pmfy38sg.fsf@laptop.lockywolf.net> <87czby82ne.fsf@gnus.org> <87fsgu2g0f.fsf@laptop.lockywolf.net> <87bkri2faf.fsf@laptop.lockywolf.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8090"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57792@debbugs.gnu.org, Stefan Kangas To: Vladimir Nikishkin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 17:12:11 2022 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 1oYU3f-0001vm-Ak for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 17:12:11 +0200 Original-Received: from localhost ([::1]:46598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYU3e-0001za-Cj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 11:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYU3W-0001zR-RQ for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 11:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYU3W-0003am-Jf for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYU3W-0000pQ-Dn for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 11:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Sep 2022 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed moreinfo Original-Received: via spool by 57792-submit@debbugs.gnu.org id=B57792.16631682623095 (code B ref 57792); Wed, 14 Sep 2022 15:12:02 +0000 Original-Received: (at 57792) by debbugs.gnu.org; 14 Sep 2022 15:11:02 +0000 Original-Received: from localhost ([127.0.0.1]:55782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYU2Y-0000nh-38 for submit@debbugs.gnu.org; Wed, 14 Sep 2022 11:11:02 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:50672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYU2P-0000nE-Nj for 57792@debbugs.gnu.org; Wed, 14 Sep 2022 11:11:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4jyNEiaKnaUDgsWkSG3AtyfthqV9GXXfbAYqHSyI/Uo=; b=c7AJHO98QZeNRW7yt55Nlpbvm+ GrdYnF/ZChGqe67zl8nh8QWWCVXU40fMYmcZqHk8BiBVGG1FwtzzhmWTma1heQVL27cOScuVd03vc zd+nkjKpM+A6FDYNlUF40SqSicIylec5SPyODoz9OqfDvUp9kQbAZMYi8MdnvdBya3Qc=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYU2G-0007hq-T7; Wed, 14 Sep 2022 17:10:46 +0200 In-Reply-To: <87bkri2faf.fsf@laptop.lockywolf.net> (Vladimir Nikishkin's message of "Wed, 14 Sep 2022 22:36:19 +0800") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVXCCuhExf7LAHx EQX///+EbqWtAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YJDg8IKWAxEiQAAAG0SURBVDjLjZSNkeMw CIWF3YCQGlhQA0b039s+kOxk93I3p5mMHL4Ajx+nlEL66ZR/AseZOubAB1/mwJUAT+P/Qg2eCZhv g6+7cgswmvSWZpwEiB5AGly3HSIS6A3iqz+kLA/txnekkeQqrXQjlT7SIWvwKUc4EQO0mfYNB3QC VBrc+YvCjrrh4qXVGR5CVK9rRhKY4XIS6jgN4Kr1arqSq9tZ+IhQ8GC2NiKRukSymckF+REcOifA Zd36bCu5IT6MI4AwtNxAfwB7AdnAlwdOixwjOpI5llz0wTXk6upgqNKkTfagVOW4+ghjxJsd4l8A sbLpYNL7A6hCZQ4QTJhvYJWJjzV2atGBDfjLiM4lgg7U+4AhHaHCPtE4LqGqxA9tyBq5K9VWMkfJ DcPZu0AYD9q+PaB8rzBk2ZhPqMywt+re3eXh0n4vdbmfPd8C9fEGxBs6spqyurkBl3psufnaPMDJ yDG6t/XddZAXrp0+gRNrXP8ERU4UXHesN+A6bRljSfjVK4z8wj4F6OaxcA9wqxZOhnWd8gPYxXlh MVnfAS8P3NLnW69QcI8b3Vx/AEU/nb+Cb7VUjESWM2HrAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIy LTA5LTE0VDE1OjA4OjQxKzAwOjAwHtKitAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOS0xNFQx NTowODo0MSswMDowMG+PGggAAAAASUVORK5CYII= X-Now-Playing: Don Cherry's New Researches featuring =?UTF-8?Q?Nan=C3=A1?= Vasconcelos's _Organic Music Theatre Festival de Chateauvallon 1972 (1)_: "Ganesh" 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:242481 Archived-At: Vladimir Nikishkin writes: > Maybe I am confusing it with C-u M-! , but for the async version would > do the same would make sense. The problem is basically the same with M-! asynchronously -- `C-u M-! echo hello &' will also bug out. So inserting things into the current buffer asynchronously has possibly never worked? The issue here is that in the async case, we set up a sentinel to handle the output, and we also erase the output buffer, and we set the mode to shell-mode. I think it should be able to make this work (I think it'd be nice to have), but I think it requires some serious rewriting of this code...