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: Mon, 16 Mar 2015 22:55:36 +0200 Organization: LINKOV.NET Message-ID: <87sid4r7av.fsf@mail.linkov.net> References: <87bnjyf29d.fsf@mail.linkov.net> <87h9tmov9h.fsf@mail.linkov.net> <83h9tm0z8s.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426539928 32479 80.91.229.3 (16 Mar 2015 21:05:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 21:05:28 +0000 (UTC) Cc: paal.drange@gmail.com, 20070@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 22:05:13 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 1YXcCH-0003LZ-Is for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 22:05:13 +0100 Original-Received: from localhost ([::1]:51691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXcCG-0004ph-Lj for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 17:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXcCB-0004n7-DI for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 17:05:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXcC7-00069D-9I for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 17:05:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXcC7-000684-5H for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 17:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YXcC6-0002V0-6W for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 17:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Mar 2015 21:05:02 +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.14265398649543 (code B ref 20070); Mon, 16 Mar 2015 21:05:02 +0000 Original-Received: (at 20070) by debbugs.gnu.org; 16 Mar 2015 21:04:24 +0000 Original-Received: from localhost ([127.0.0.1]:48990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXcBT-0002Tl-1M for submit@debbugs.gnu.org; Mon, 16 Mar 2015 17:04:24 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:53581 helo=homiemail-a12.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXcBQ-0002Tc-Mv for 20070@debbugs.gnu.org; Mon, 16 Mar 2015 17:04:21 -0400 Original-Received: from homiemail-a12.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a12.g.dreamhost.com (Postfix) with ESMTP id E05221030063; Mon, 16 Mar 2015 14:04:19 -0700 (PDT) Original-Received: from localhost.linkov.net (85.253.154.98.cable.starman.ee [85.253.154.98]) (Authenticated sender: jurta@jurta.org) by homiemail-a12.g.dreamhost.com (Postfix) with ESMTPA id AEA0D1030062; Mon, 16 Mar 2015 14:04:18 -0700 (PDT) In-Reply-To: <83h9tm0z8s.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 15 Mar 2015 22:41:55 +0200") 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:100568 Archived-At: > What are BEG1, END1, BEG2, END2, etc. values here? They should have the same type as the return values of region-beginning/region-end and the interactive space "r" which are of the marker type. So the patch in bug#19829 should be improved by another patch (both will be installed after finishing designing this feature): diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el index 044939f..a314d33 100644 --- a/lisp/emulation/cua-rect.el +++ b/lisp/emulation/cua-rect.el @@ -676,9 +676,9 @@ (defun cua--extract-rectangle-positions () (lambda (s e l r _v) (goto-char s) (move-to-column l) - (setq s (point)) + (setq s (point-marker)) (move-to-column r) - (setq e (point)) + (setq e (point-marker)) (setq rect (cons (cons s e) rect))))) (nreverse rect))) diff --git a/lisp/rect.el b/lisp/rect.el index 271f720..7a2c5a3 100644 --- a/lisp/rect.el +++ b/lisp/rect.el @@ -265,7 +265,8 @@ (defun extract-rectangle-positions (start end) (apply-on-rectangle (lambda (startcol endcol) (move-to-column startcol) - (push (cons (prog1 (point) (move-to-column endcol)) (point)) + (push (cons (prog1 (point-marker) (move-to-column endcol)) + (point-marker)) positions)) start end) (nreverse positions)))