GNU bug report logs - #27896
25.2; `C-M-%' with `rectangle-mark-mode'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Tue, 1 Aug 2017 04:18:02 UTC

Severity: minor

Found in version 25.2

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: "27896 <at> debbugs.gnu.org" <27896 <at> debbugs.gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Subject: bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode'
Date: Sun, 07 Feb 2021 21:52:01 +0100
Juri Linkov <juri <at> linkov.net> writes:

> Indeed.  A proper implementation would require
> too much changes in core code.  Just imagine
> how to properly replace multi-line regexps in the
> rectangular region using current search functions.

Yes, that sounds tough...

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
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.)

Would that work?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.