From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Nikishkin Newsgroups: gmane.emacs.bugs Subject: bug#57792: 29.0.50; async-shell-command fails with prefix-argument on -master Date: Wed, 14 Sep 2022 22:36:19 +0800 Message-ID: <87bkri2faf.fsf@laptop.lockywolf.net> References: <87pmfy38sg.fsf@laptop.lockywolf.net> <87czby82ne.fsf@gnus.org> <87fsgu2g0f.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="32986"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.6; emacs 29.0.50 Cc: 57792@debbugs.gnu.org, Stefan Kangas To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 14 16:38:50 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 1oYTXN-0008Jn-UL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 16:38:49 +0200 Original-Received: from localhost ([::1]:48248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYTXL-00057K-Qk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Sep 2022 10:38:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYTWe-00054H-Jm for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 10:38:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYTWc-0005t2-TC for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 10:38:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYTWc-00040A-OE for bug-gnu-emacs@gnu.org; Wed, 14 Sep 2022 10:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Nikishkin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Sep 2022 14:38: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.166316625015330 (code B ref 57792); Wed, 14 Sep 2022 14:38:02 +0000 Original-Received: (at 57792) by debbugs.gnu.org; 14 Sep 2022 14:37:30 +0000 Original-Received: from localhost ([127.0.0.1]:55727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYTW6-0003z6-9n for submit@debbugs.gnu.org; Wed, 14 Sep 2022 10:37:30 -0400 Original-Received: from mail-ej1-f43.google.com ([209.85.218.43]:35484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYTW3-0003yl-EQ for 57792@debbugs.gnu.org; Wed, 14 Sep 2022 10:37:28 -0400 Original-Received: by mail-ej1-f43.google.com with SMTP id go34so35232159ejc.2 for <57792@debbugs.gnu.org>; Wed, 14 Sep 2022 07:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date; bh=hPGoyCkQ1RESUd9HJEHoPImtyL4OYef+z4bNm9k8elI=; b=i1y+8/qnEg8QZkoidglSiIKqhZubaPaLm5SRdOywfq9wdztM3O8rHGa/bvyBBupMl7 M2E1usbAJTHiVFMXqGPTu9NJpW9Wcs3FXYkYj0JG0xXSbdI4YEQh4nDT6hvpGZOd8h18 OzNsblG/BXXVMrjP8REROER181d51x6zo5lM4DazdusZHl15g4awrkZ8aa+9iWh00pIE +vqIpbrSpLAruoGF3ajVECMBrXtnOEOF12oUyrRYIhPbPqas/Uz/yfdByTDDBSPrSHDs rB3jk1009gP+ZMNWjTbLgyNoX8N3qgaNUCFzA2RdGV/eNq7e7V8vl58nuCXf9G6PT9Iu kTXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date; bh=hPGoyCkQ1RESUd9HJEHoPImtyL4OYef+z4bNm9k8elI=; b=O3MtDI1oXvnp6AReCr/Gek2vL0E6LyeEx6haoLySjX/bUHrZtiCjE5MKl79Ntz0GNw D7fm9STQ2eNgezzD/ocFYvsR/9GRoEwj0M3i+hXSQynTLOvVBrbBf2m330d095Yzw0bx DpzOOn+qepDsi19PcWeje9oEd351ZKokq8SwuUh2LXIsony05QixVA6/K7N/ACkppSEs hT8ouOXqwDyWMc0P2pJlR4dM0zO2p7Ya8Efd9xhcbcs3kxlSsiXVT0ktV8ghXD6rDETw ZJdxf0rfaj8gxv8zeadfbCRMTh6O2QUbBVUrdkuGlgyjqJISGGH5803/Fj8Vq/1iPeK9 ZL4A== X-Gm-Message-State: ACgBeo2HP7/QhzTh79CoGScavYNT6Wjh1TtjCd+yusoVwaTGJJeWunWS yObtgsIkmLDY4JSGYIT06ouMzZZAUi9hHQ== X-Google-Smtp-Source: AA6agR56EtmeDkCkdGB73N5AOUFCb/BY2k7VDOqctqCUT4q3QtX7EP6wpy/TAYgNXNvEwbrY68Ar3g== X-Received: by 2002:a17:907:318b:b0:740:33f2:9e8 with SMTP id xe11-20020a170907318b00b0074033f209e8mr25780304ejb.138.1663166240947; Wed, 14 Sep 2022 07:37:20 -0700 (PDT) Original-Received: from laptop.lockywolf.net ([240e:36f:d51:210:fc0:6e92:303:8c91]) by smtp.gmail.com with ESMTPSA id g21-20020aa7c855000000b0044e983132c3sm9657057edt.60.2022.09.14.07.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 07:37:20 -0700 (PDT) In-reply-to: <87fsgu2g0f.fsf@laptop.lockywolf.net> 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:242471 Archived-At: Maybe I am confusing it with C-u M-! , but for the async version would do the same would make sense. Vladimir Nikishkin writes: > Lars Ingebrigtsen writes: > >> Stefan Kangas writes: >> >>> I can reproduce this bug on master, 27.1 and 28.2. Here's a test case >>> (not tested): >>> >>> (ert-deftest simple-tests-async-shell-command-57792 () >>> "Test for https://debbugs.gnu.org/57792 ." >>> (with-temp-buffer >>> ;; Pretend we have a prefix argument. >>> (async-shell-command "echo \"test\"" '(4)) >>> (should (equal (buffer-string) "test")))) >>> >>> I'm not sure what behavior we want here, though. Should we insert the >>> command output directly at point in the current buffer, or should we >>> first insert it into "*Async Shell Command*" and copy it over when done? >> >> The prefix isn't documented to do anything (and currently bugs out), so >> perhaps we should just remove the prefix from the interactive spec >> instead? > >> Is the intention that `C-u M-&' insert the output in the current buffer? > > I am quite sure it used to do that in the past. Perhaps, as late as > 27.2. I can try to do a bisect to find when exactly this has changed. > Moreover, it would be analogous to C-u M-: inserting the return value > into the buffer at point. -- Your sincerely, Vladimir Nikishkin (MiEr, lockywolf) (Laptop)