From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode' Date: Tue, 09 Feb 2021 09:09:51 +0100 Message-ID: <871rdpll0w.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12421"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "27896@debbugs.gnu.org" <27896@debbugs.gnu.org> To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 10:08:23 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 1l9P0Q-00038X-UF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 10:08:22 +0100 Original-Received: from localhost ([::1]:34036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9P0P-0002Yo-Ur for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 04:08:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9O6w-0001BX-Pf for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 03:11:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9O6w-0004F3-I0 for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 03:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9O6w-000119-Ab for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2021 03:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2021 08:11: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.16128582123845 (code B ref 27896); Tue, 09 Feb 2021 08:11:02 +0000 Original-Received: (at 27896) by debbugs.gnu.org; 9 Feb 2021 08:10:12 +0000 Original-Received: from localhost ([127.0.0.1]:52499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9O67-0000zv-Rb for submit@debbugs.gnu.org; Tue, 09 Feb 2021 03:10:12 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:55956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9O66-0000zd-78 for 27896@debbugs.gnu.org; Tue, 09 Feb 2021 03:10:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z3liTIBTIUOUC698dWmwG3YwWjOnj61hQs+llL/oIHw=; b=XbTO4BBGrlb/CYEcu5OLbmGFJm WYLi2DkpY1SgmLEYDUwih6nCojEJjGfRivckGs09CouSxeH9zyZUTPXPnFoaRL8rJo13hKWfz79Gy QZwLSjGTx8JPKs0JjF7ix5976nzafhTU8efMr8JhaJXFngYwTUBxi8e2s8dQWRxDyJh0=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9O5o-0000IF-St; Tue, 09 Feb 2021 09:10:03 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAM1BMVEX+/v7M4OuczuLr 7vC0t525aUnpXyhce5NEns33SxhXp9HWOxanNxvimDXXrEhJn2j///8PZfWcAAAAAWJLR0QQlbIN LAAAAAd0SU1FB+UCCQgIDTXum3YAAAC+SURBVEjH7ZPdDoMwCEallEp/aN//bYV6sS1LVrzZVU9I TPQ7AbQex2az+Q2EEAD98UiUTubgzAfKhhrF1UTztVqdhYtrntRqyq3NHo6pgkgy1GiFeZnHKNPI VQ1ihvVEchvaoqqxnAli72ZE0R41j6WA0fJqaNWcXAJNow/JRGO5wwFdDTJhEJHjQ9hMRLMF5dNz OsC2sM27uPL3i5pC8Z4+hKiUsl74pSA8+B02mz/x7FAiaiF+3fy4vj1QLntgB3hy/AkSAAAAJXRF WHRkYXRlOmNyZWF0ZQAyMDIxLTAyLTA5VDA4OjA4OjEyKzAwOjAwoJqIMwAAACV0RVh0ZGF0ZTpt b2RpZnkAMjAyMS0wMi0wOVQwODowODoxMiswMDowMNHHMI8AAAAASUVORK5CYII= X-Now-Playing: Kid Creole & The Coconuts's _I'm A Wonderful Thing (baby)_: "I'm A Wonderful Thing, Baby Don't Take My Coconuts" In-Reply-To: <87r1lqlbzj.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 08 Feb 2021 20:12:48 +0200") 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:199664 Archived-At: Juri Linkov writes: >> But we could somewhat easily change `C-M-%' to be slightly less >> surprising, and document its limitations. That is, we say that no >> multi-line matches are impossible in rectangle mode, and we implement it > > The current limitation is inability to use some greedy > regexps in rectangle mode. This is not much worse than > limiting query-replace to non-multi-line matches only. Aren't multi-line replacements already disallowed in rectangle mode by the filtering function? >> by just narrowing to each successive line part, and executing the >> query-replace-regexp once per line. (With some magic to handle `!' etc, >> I guess.) > > Actually not narrowing in the sense of narrow-to-region, > but temporarily setting the LIMIT arg of 'replace-search' > to the end of the region of the current line. Yup. But I guess it's not that easy to get this to work sensibly -- it'd only highlight matches in one line at a time, which would be odd. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no