From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41440: 26.3; 'replace' argument in function 'shell-command-on-region' is assumed to be always t for rectangle selection Date: Sun, 24 May 2020 01:53:33 +0300 Organization: LINKOV.NET Message-ID: <87d06us1oy.fsf@mail.linkov.net> References: <83d06v13h2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="107657"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 41440@debbugs.gnu.org, Warren Lynn To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 24 01:01:03 2020 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 1jcd8Z-000Rws-Gm for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 May 2020 01:01:03 +0200 Original-Received: from localhost ([::1]:43188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcd8Y-0003qN-Hs for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 19:01:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcd4i-0001YY-7C for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 18:57:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcd4h-00056A-UJ for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 18:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcd4h-0008A9-Tv for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 18:57:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2020 22:57:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41440 X-GNU-PR-Package: emacs Original-Received: via spool by 41440-submit@debbugs.gnu.org id=B41440.159027461131330 (code B ref 41440); Sat, 23 May 2020 22:57:03 +0000 Original-Received: (at 41440) by debbugs.gnu.org; 23 May 2020 22:56:51 +0000 Original-Received: from localhost ([127.0.0.1]:36009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcd4V-00089G-7Y for submit@debbugs.gnu.org; Sat, 23 May 2020 18:56:51 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:55721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcd4L-00088c-Ik for 41440@debbugs.gnu.org; Sat, 23 May 2020 18:56:42 -0400 X-Originating-IP: 91.129.97.200 Original-Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200]) (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id BCD1660007; Sat, 23 May 2020 22:56:34 +0000 (UTC) In-Reply-To: <83d06v13h2.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 May 2020 11:04:57 +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" Xref: news.gmane.io gmane.emacs.bugs:180865 Archived-At: >> I am gladly surprised to find out function >> shell-command-on-region >> is supposed to work on rectangle selection also (with 'region-noncontiguous-p' set to t), but then >> disappointed to find out the feature does not work. It has two problems: >> >> 1. As this email title says, argument 'replace' is assumed to be t no matter what. >> 2. Even if I really want to replace the original selection with the shell-command output, it still does not work. >> An error will be thrown in function "cua--insert-rectangle" due to some argument type mismatch. >> >> This feature will be very useful to me (and hopefully others too) and I hope somebody can fix the above. > > Juri, could you please look into this? In addition to the problem > described in the bug report, the 'region-noncontiguous-p' argument is > not mentioned in the doc string and not in the manual. I'd like to > fix that for Emacs 27, please. This is not a bug, it was implemented so in Emacs 25. Or you'd like to fix only documentation for Emacs 27?