From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#20070: 24.3; have commands such as downcase-region act on a rectangle region Date: Thu, 12 Mar 2015 21:23:58 +0200 Organization: LINKOV.NET Message-ID: <87bnjyf29d.fsf@mail.linkov.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426188635 9133 80.91.229.3 (12 Mar 2015 19:30:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2015 19:30:35 +0000 (UTC) Cc: =?UTF-8?Q?P=C3=A5l_?= =?UTF-8?Q?Gr=C3=B8n=C3=A5s?= Drange , 20070@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 12 20:30:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YW8oD-0007lY-2y for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Mar 2015 20:30:17 +0100 Original-Received: from localhost ([::1]:33620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW8oC-00037e-AE for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Mar 2015 15:30:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW8o7-00035P-Q1 for bug-gnu-emacs@gnu.org; Thu, 12 Mar 2015 15:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YW8o4-0005Or-02 for bug-gnu-emacs@gnu.org; Thu, 12 Mar 2015 15:30:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW8o3-0005Ob-TG for bug-gnu-emacs@gnu.org; Thu, 12 Mar 2015 15:30:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YW8o3-0001mt-FI for bug-gnu-emacs@gnu.org; Thu, 12 Mar 2015 15:30:07 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Mar 2015 19:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20070 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20070-submit@debbugs.gnu.org id=B20070.14261885436679 (code B ref 20070); Thu, 12 Mar 2015 19:30:05 +0000 Original-Received: (at 20070) by debbugs.gnu.org; 12 Mar 2015 19:29:03 +0000 Original-Received: from localhost ([127.0.0.1]:44259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YW8n0-0001jS-LA for submit@debbugs.gnu.org; Thu, 12 Mar 2015 15:29:03 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.222.226]:54067 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YW8mv-0001im-CT for 20070@debbugs.gnu.org; Thu, 12 Mar 2015 15:29:00 -0400 Original-Received: from localhost.linkov.net (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id D01B039524D769; Thu, 12 Mar 2015 12:28:55 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 11 Mar 2015 16:28:03 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100418 Archived-At: > While this is not the same bug as bug#19829, it's fundamentally the same > issue, and they should be fixed in the same way. Currently, `downcase-region' is defined with the interactive spec 'r' that calls the function with point and mark as 2 args. For backward-compatibility reasons this can't be changed. So maybe a new interactive spec e.g. 'R' should call the function with 2 lists where the first list will contain a list of beginnings of all intervals in the rectangular region, and the second list of endings of intervals? Then a command using it will need to add another outermost loop to pop interval boundaries from both list arguments `begs' and `ends' to process intervals using the same logic like it processes a single region now.