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 21:01:52 +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> <87sg65122m.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="39248"; 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 22:03:17 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 1l9aAG-000A6E-RS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 22:03:16 +0100 Original-Received: from localhost ([::1]:52818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9aAF-0002B0-Oj for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 16:03:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9aA2-00029t-LR for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 16:03:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9aA2-0007wk-9S for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 16:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9aA2-000141-4Y for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 16:03:02 -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 21:03:02 +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.16129045234027 (code B ref 27896); Tue, 09 Feb 2021 21:03:02 +0000 Original-Received: (at 27896) by debbugs.gnu.org; 9 Feb 2021 21:02:03 +0000 Original-Received: from localhost ([127.0.0.1]:54828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9a95-00012t-DF for submit@debbugs.gnu.org; Tue, 09 Feb 2021 16:02:03 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:56956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9a93-00012O-4X for 27896@debbugs.gnu.org; Tue, 09 Feb 2021 16:02:02 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 119Ksx0M087694; Tue, 9 Feb 2021 21:01:55 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=SPk9j2aD/KfkBbinVafiwt7bmTzXHiWb2fPth4B+UPg=; b=T8yXAIev37f9UXBbr0GoIeWRemiUjxPxGneXy7peaPICmcMCvoG2zkyEIpyX7oS1gqJP vgTM1rOCGS/6MgpbfEwLK8yrIX2ZhgNOPyehxMy81DOTXHoGJ87xERZ/B64HYoc2n6pO /OEaLIwp2RjRpRvWa3PQuDzvje8qAnVmF9D1D2bEBDeESevX5qNfTR/WTHxPf3G1Z7Ay g0YXmveeYu+2eA+mFQGvPHhuAtR+oIdCmxPE3xH8F/F6Swpb4CjM5irpOnkCBdU4yf4i yeQEO7ax5S6BhbFH5DwFi7sNWHxTWU+MItfMZ8c+WE265n6Ljff6jXb2Bb1BhnrFokPI lQ== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 36hjhqs237-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Feb 2021 21:01:54 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 119KudD3141158; Tue, 9 Feb 2021 21:01:54 GMT Original-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2173.outbound.protection.outlook.com [104.47.56.173]) by userp3020.oracle.com with ESMTP id 36j4vrwbv6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Feb 2021 21:01:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LYBYCmJubV99M0C49gKg6sWJPQSSuCZVHMTeos7tJ8t86sHKtWW9FtYkDL34x8j70vNAqFHOJ22/VVqVrrF7cP5KyGPZwuRAMOMqgG/hPwM+QVCtgA2F+7bmm6D88gj039LFLu/Ie0ji5Ksd3Cx9s8eYya3EJjRO2L2XctvHZ22xUgBEJ8YwwWGsjHXF/ehQVSZeVPA/u+2GAAC8MPNNqvQeSfvWFEX47zwGrTQCncddC/zW66yw49DDFyIjWMerrLMJKMq8n7Gg0aUUvdRK+8M+wGqGpRDh5a5EjD1T+VpRaNCehe8VsEoOfJt5UDYU3nMsC2RgxhAB9PPBbJ9TOQ== 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=SPk9j2aD/KfkBbinVafiwt7bmTzXHiWb2fPth4B+UPg=; b=TYRG8f7HjHpGI+Ps10OaDQ4bEntIc5DVcUkrQKzoXntwzIsc3Wlom7RMFT3mjgyubXyPTl63+OaP+THxLlfx1X+vUk6xgNHyiMlQ3p8QkwGp4JGUPSqPYgqmo94fIciOjZTdtUVls5t6XPs9NuDA3s9r756L8gfBKWptV9goOr+NrZolqnItNDW7V5uKag1QO9QfqETX726LzfkHYqa6G1ZopLHFg7tsTa1W8xDSCL/ItXRp2Ibk/gWeVhSDDX1cRgmo4nCwTKWl7+7SGuqLaNbiKUjDeEIRraoRMl2xCiRN64UyIwL0K941UadfbsR06J+RlABvtrDT4ukERMgIIA== 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=SPk9j2aD/KfkBbinVafiwt7bmTzXHiWb2fPth4B+UPg=; b=FXhkhMNgCt8gHH16LY5Pkn5xzi98lgNU5yB1+jRb15DMCm4la3Mvs4pJWy/ecVIlKnebVwu2vfc8Ytdb+Zy1ob7FQo+vx3r9lsJgbcGePGeCb43kV91mr8H5Tzq4ew5olI3eiSwoiAH3P85rU491FkRjWcoJiVmi5Ftu91nYhcw= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4652.namprd10.prod.outlook.com (2603:10b6:806:110::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.30; Tue, 9 Feb 2021 21:01:52 +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 21:01:52 +0000 Thread-Topic: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode' Thread-Index: AQHW/xlf8yrGIuNbI0Ggr8Ny6iQnzqpQTTeg In-Reply-To: <87sg65122m.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: 32a21a37-9092-4868-4723-08d8cd3decfb x-ms-traffictypediagnostic: SA2PR10MB4652: 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: 0R/IZH1S+Et9l+FcHfYsuQbeOFpSqO2fyuGIf7lRRtie+msls6Ygv7PMspNPzffYPkyy9VH+H7d4gr/myU3L3kVbfDY2n88tpXUTXSDDmWyWUM09fN/8tWOFbbeO12g8ZVcPnuEnrR/V0f7gedEacMSlVxo86r8NLfLIIr27A5Nm0lP2x9e8dqPROHbwZLcvi19ywm79q9DAPAIPYVjINvqYEhEJFlERNrhKyKz8UvVUKBBOm92T6A+2OTSxCGTuGUSDEadXWfiVI0NUzqNnqFlW0qQSszbf2fBFKsS6chqM5Lbxagv3yq/lqOou2D+EH0pqDFKaqnXC4TFqHo86dBWJxgq/sqZjrJRqh4VR21aTDtEVxUZN3MfltENfrHGMKPkEXdALij0Pccivtx4iK6WYrDRL53G+D8s27VskcO95XPfzkc/UxKCsCcjMczqVDDzlZXoQVQlDyAJX5F+n3kncG4N9rvIjZFHfiG3gaTO4kUnWm+rkNlwllsMLc8ImRuSmcyZfiMvi/xkplNTSrNY5YpqAYXiFzPaAmRotDS1z/VKhFShsZJGBopXwinGctYEXBDX3nz+lUaodk4EMqR1I1HPKVNCknZRJK5B+HswmvkzTSXuNTej82IIN5gWUqvwqGC3NBZar/pTW31WPlA== 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:(396003)(366004)(39860400002)(136003)(346002)(376002)(64756008)(6506007)(71200400001)(66446008)(66476007)(66556008)(76116006)(186003)(26005)(66946007)(52536014)(44832011)(54906003)(33656002)(8676002)(55016002)(316002)(5660300002)(8936002)(83380400001)(9686003)(2906002)(7696005)(6916009)(966005)(4326008)(86362001)(478600001)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: EH8CUzRMDTu3IIE2aBfXY2q5jynQMbEn7H42VXRlY6PhHJTjqJ3nyIC0MlmV7WbOrFIUrISksUx5mP/B3E5LCHBKa5+Lt1Hs5BKCS6bRXKRatuvQpT0cz5MIki7vTG+L2Kvfpf7U4f/TaAChRDcyhbBmek1pRQ79iKRk/y8PAhz8nxXyXbiMggTPYVgDcOaT+NRDAJXrhCGrOYz5fgPSEPB9isM/W60k5Bb5BrRmS415ZOrCam6xNTUbrrxOVJ0xCzdbZjGsePH7kyGuF+6DZ1R0NY7ua3aOvzOkaV4MXInO89tchDc5PAF+VCIx1Xk0H6JkbVb4o5ScOPXZLyej/to2h9HsYOljWf2uxafIU0SwaVYZhkbSnt0HwIseVMT9JqyJP0eRDucItROHA580QCmoUB4vTfrruCn3Va1jvVq3DCwpG2rG01FKAVf4JhIY+WbsyfTs/5Z6bbDo6bu3FXGar6mly2A39C8hf7ftlWJkFN3nSLDsRS3k8IoSK1frGvC7eh+YJQf08A/GsooOuCHaEVKoOaHFBBlheCa4yTko+YWk49IDzSgEbnTssw1agucaUI8o0wNMRETJC/33Ixqxue5JffbUdCOdZSo5vZ09uPCuLysNyJLS610zaBAwscXdVkjXGFkwxNXJdAj5oL3wjUFkSXHIzXi29IV5u/liZnLEb6ScY8EDpGrrf5N3MPSTG6zz+yEaUmM6NBvN59NGVegUJkc5PigAej30eoiFG+wO/WMjFCVDrJ4y DUW3XzP4/a2oId8YX8c+/QM/PAiqe2R9I/lKgP8mQj9i4StkbQiWWNP7ripLUB9SFYoR3WHOIaAGiJb9+niLcgZCbgjRp+i09M 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: 32a21a37-9092-4868-4723-08d8cd3decfb X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2021 21:01:52.4419 (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: feiZrPFT9j7A4bE51kiTcJc2T7L8WGBAX7jT/1QXSsm7r5YE2RjYyMGqkKS3KovUNuuPkBWoisqSHgGxSJXCKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4652 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9890 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 mlxlogscore=847 mlxscore=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102090107 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9890 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 impostorscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1015 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102090107 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:199734 Archived-At: > > 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. >=20 > Is this similar to how multiple major modes work? > i.e. > https://urldefense.com/v3/__https://www.emacswiki.org/emacs/MultipleMod > es__;!!GqivPVa7Brio!L1gKnae4wuMn0F1d58axUCx08NTPDOSKxu5AJGwkvZB2eQ04tfi > 0Xcu6DJtQGsq_$ Maybe, I don't know. I've never looked into `mmm-mode' or MuMaMo or any other such. I have a vague recollection/impression that they may rely on text or overlay properties in some way. There's also Alan Mackenzie's proposal a couple of years back for "islands" as a way of handling multiple major modes. As to "how", I said nothing really about the actual how, beyond saying that the general idea is to handle zone limits analogously to how we currently handle buffer limits. I didn't say "analogously", but perhaps I should have. My own approach (started but not finished, and I'd pretty much need to start over if I resumed) did, yes, amount to more than an analogy. In isearch+.el I do what I described, in order to treat the active region the same way vanilla Isearch treats the whole buffer: bind variables at search start to the region limits, and then replace `point-(min|max)' with those variable values when non-nil. My thoughts and initial attempts to handle zones (~noncontiguous region) were to do the same thing: limit search to the limits of each zone. (I currently use a filter to limit search that way, but filtering is after the fact. What's needed is to limit search _matching_.)