From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode' Date: Tue, 9 Feb 2021 18:38:34 +0000 Message-ID: References: <8b30a5cc-24db-4bca-94bd-50c79e65b43a@default> <87pn1eiv4m.fsf@gnus.org> <87eehrwyd8.fsf@mail.linkov.net> <87im73y51q.fsf@gnus.org> <87r1lqlbzj.fsf@mail.linkov.net> <871rdpll0w.fsf@gnus.org> <87a6sd1txh.fsf@mail.linkov.net> <87zh0d5dpu.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1854"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "27896@debbugs.gnu.org" <27896@debbugs.gnu.org>, Lars Ingebrigtsen To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 19:52:12 2021 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 1l9Y7Q-0000P5-1S for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 19:52:12 +0100 Original-Received: from localhost ([::1]:55106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Y7P-0002pw-01 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 13:52:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Xug-0007gS-Qj for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 13:39:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9Xug-0002Wx-17 for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 13:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9Xuf-0008AF-VH for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 13:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2021 18:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27896 X-GNU-PR-Package: emacs Original-Received: via spool by 27896-submit@debbugs.gnu.org id=B27896.161289593031359 (code B ref 27896); Tue, 09 Feb 2021 18:39:01 +0000 Original-Received: (at 27896) by debbugs.gnu.org; 9 Feb 2021 18:38:50 +0000 Original-Received: from localhost ([127.0.0.1]:54607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9XuU-00089j-3L for submit@debbugs.gnu.org; Tue, 09 Feb 2021 13:38:50 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:56100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9XuP-00089R-Ml for 27896@debbugs.gnu.org; Tue, 09 Feb 2021 13:38:49 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 119ITSJJ193750; Tue, 9 Feb 2021 18:38:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=IAS12kgpBU+f2uOiSZW0rjcmtXnyCDdJnK1DO72JC1Y=; b=hNC3laik9ExYRFCGwrNlDtzosgfOttYts2e06q/GNYJgUWnOURfJtmvPcKsPVg8by9dY UMNuY8DQe84PLeCKnGthW5daTJpN0UEAp1QE3npFRmM7JJi3vrVqdO03tMaOO8KA2N6L Ht/41gx3o1Odf+IZrGkklKs+yck9ecXsy1XrIaHT7tMnRgr92kePdJhq3YJAea1Yv88Y RYKYhDBtvwIGP3B3PrQQ8vRL7Oiq138ZZY0oCswio++nwdvaMU0LKd9kDEbkOTl5QDI6 PLU/cftr5BCq9ZVI8NmHMv+4WNKe06TulpI50NnoYltzc/04QUPdESQS+JOa7G2sA7O/ bg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 36hk2kgkr4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Feb 2021 18:38:37 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 119IPupL028511; Tue, 9 Feb 2021 18:38:37 GMT Original-Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2109.outbound.protection.outlook.com [104.47.58.109]) by aserp3030.oracle.com with ESMTP id 36j4pp3d0s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Feb 2021 18:38:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V200LhAQh5LCeOCn/Cv9NaCAWH+6H9F0SRcLDG4DvRSbreDSCo0dCNMADTWqMMJO1DM6nbNOLjYt7esDEWnlh6cHzbjiTHuqBORRpnt7X4ARuUrE/DKvCNcFMYSQn+f6KnD4PiZZ8aea7i7ZUgKdRUTYRFCJLsJK6NkBTSiCbiWT1dmQdQR4MjSXIxZCgQ07Ta7bOzkl9LY0ZrrB8jSjP9fCtt2QBHUiubDGBMAwbdFfGueKUzzT3FqF5aaeG1Y5eShcczSqniJSYPHgoMeg907FKOmFei2C9VbvCnuwdi6PWt9gDt12sqsmKe9gBohDcBzAZ3uy5qBdTP1mekz7AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IAS12kgpBU+f2uOiSZW0rjcmtXnyCDdJnK1DO72JC1Y=; b=MWI9QTP/aGfpG5Jv8whuI+vcn0Ui/q0E0lp0EjvZXVhCmtfWFSBAdoOODiueRIqcOGD5GlGRrDXEr7eNAGwKeNadYHB5I4Bm4bfACmCAzv+ALNob7mbOV7QcS52F+8dLu2GeKnYAJTnblo37toEIw+lV3kimzpYsQhXGna9q0YUy4jscIqLyFolYcF40iQ+zEy9MP004GRz85Az6gFwEEE0NZj6rKOAsU0HAwymzBT1GPobZT2Clc5PZe1zwMvuuCkc3WutusZblSL1XogqjDBHAEvD3MhcV6EwhNxJiI5uU5RFbxN8Fhyy/1ip28MorBL/4pdUDVxj2D9rczKItYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IAS12kgpBU+f2uOiSZW0rjcmtXnyCDdJnK1DO72JC1Y=; b=DThEoO4DNOm0to7QPaZetPRCPxrgkvBgoxLlPUsi0IhJSsKydYndyvgRabOq79stukwzQJxDmCKmOj3Hn1DsSW2ukwEWv1kG69X+KTMteQ0X6P/oPj79KiDRXKzmHnzfgVvqhZBpihGbztugkCfEIvcOAQzq7/NXY2UWwPpF/d8= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2432.namprd10.prod.outlook.com (2603:10b6:805:46::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.26; Tue, 9 Feb 2021 18:38:34 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2%7]) with mapi id 15.20.3825.030; Tue, 9 Feb 2021 18:38:34 +0000 Thread-Topic: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode' Thread-Index: AQHW/w+RiRnZmyWwXU+zvdZIgrqi1apQJcNA In-Reply-To: <87zh0d5dpu.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US authentication-results: linkov.net; dkim=none (message not signed) header.d=none;linkov.net; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8ab3ccb3-c0bd-4c95-c1b6-08d8cd29e865 x-ms-traffictypediagnostic: SN6PR10MB2432: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: B9XvwBb55S2AZll/MJbbbgIYXbK5sso7pvE4gKXI4buUrTHgpjjCH0aPbDFELVCJ6x44dmcxMZbUrL/+P+MtjhOu4uWO+m+wPTdyZkeTM6zGk6wTJ+D2zVIoefv9plDBUFH1tYR/XXhFvVKB/7bLeZOLGVTcBqVGW4yA6CrFvsu//um7525bH1w6nEI+uHj2F0/7YcXIJ3ZhjkhyiIEsy9cs4qdsTPnPqX/g/n3eWC+scPk1yfq9UoNxPPBznlFh28uJNpcXsl+cu5vI+3HkvX8zJXsXa7oje1xwGe7SPJLaYLWYKMaL0W75J79UCti3QqcMf8kSG+dd3kfwVnPYinwzNv6YpXJMG1TgXrBJ8qgdPCTwGOn0GKxsCLAFMVBWygET9kxBrP7fCkzGDzkaW0LYtaWqR6/7JaQlonMMITj+0HkrPW9Xjs+a8Db9nrVY3qbuj4HZzUjnMvK6Q3cBmOoHlit2AapaUz5cWLuxR+x2Az92Wm/OtAI6+G2oJjjiPDkW0lBUKH9nB5YTimysZxU8ZLov+6RNouOzSv1I+1X3U0FRc+NrF83xvCftIszK x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(136003)(366004)(396003)(376002)(346002)(55016002)(71200400001)(5660300002)(6506007)(86362001)(83380400001)(8936002)(186003)(26005)(7696005)(2906002)(316002)(54906003)(478600001)(9686003)(4326008)(52536014)(44832011)(33656002)(8676002)(66946007)(66476007)(66556008)(64756008)(66446008)(76116006)(6916009)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: m7qgYqQJrCFahZK1Cel+7Bef3o2trheEe4Mwq+QlENvC/HHz5y1jsylVKOeKyIBqVjtZxPuBmjSLACnA5gEnFpmjBq8upGElUFpG1QHispk/tqY0uhrlr/EUaOICVHlx6pxkRebZJNfigQaa5n3Z+DZ7iW12e2TYImCwwjsXUMKQS8+w5yJvP91UUOMuHYn1hlGylsx4uv1InkrVWrLiGtoNg4H6RpKx6aj7vud33fhb7yt8sGzZfWqkSzU166tUsMxx/kYhbRxPGGcqxZc9FP/lZQh9jabbQNbS1V5iG3CUOS+eTSo3KRmCfvVu7WZm6OJUieJy+6Rh86CQz8MqN6EGnMfRn7p+V8KlfV8kXTQgO3wntc+GF5ne7v1+B8hvFFeCsbkeFoywPAZkQT3LJsztpKMLfPujUfMDQOpkrQH4SbXleYZrpwYIGzTaT4ZRc0WW5GDztSNWyOh4wT+Fv1F1oqvkj5gF1r9OjdC7WgCE2ktzPscohcB6RtnQPuYBI6s+35P8XhGJRJmhXaAaBqtGtLX2oDoHALSc6oOAguPLHOtL55ssSm1h+KmsjepNRwcHssU2g/fBHhv53SYd689XBuUSGfd7EM0KAFmzminPGBNmAdx3CnJ42oUyvdEY59xOxLz59JgS9cmrNTawY8M3ltF0U0U8IkmafNCPj4LsZJoJx+xSJa/0ffjRuBA93fQbz+RYvDwNhKHcvh5YuHLGNhlZhQclaXIhWVIaj7GMNUVhU7E43Td0pZvl G8NxyMxkmX4nZjx1hCkPONsq9o9WSyN5cnR0YNwnmOFDHEGSBNhOOJrX56sXKb+VEJs/gmaReMuHLKsKblXc5NKL4wGo0cS77f x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ab3ccb3-c0bd-4c95-c1b6-08d8cd29e865 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2021 18:38:34.8494 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: S2r3J7picPtiKqC/j1pRuGPF32G6a/oq+wan8zNFQw9bZEXZoISsUTJzlvAbS+d+suPef1FIozlhNCMLz6y5Ow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2432 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9890 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 phishscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102090088 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9890 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102090088 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:199717 Archived-At: > > I've long had in mind doing this myself, > > and started to do so more than once, but I > > haven't gotten around to accomplishing it. > > > > If someone does it (in a general way, with > > no assumptions of rectangularity) then > > great. If not, that will be for some > > indefinite future. >=20 > In the most general case, a noncontiguous region > is just a set of subregions (or as you call this - > 'zones') that for the commands that operate on it > should look as just one contiguous string. Well, no. It depends on the command, of course. But _most_ commands will want to treat a set of zones as just that. They'll perform operations on one or more of the zones - either separately or in combination in some way. Operations on zones need not even treat _any_ (let alone all) of the zones as a string. > How to implement this, I have no idea. My approach is to do, for each zone, what I currently do for the active region as a whole, which is what vanilla Emacs does for the buffer as a whole. IOW, instead of always using `point-min' and `point-max' for _matching_, use the limits of each zone. IOW, just limit matching to the search space.