[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mar
From: |
Lars Ingebrigtsen |
Subject: |
bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode' |
Date: |
Sun, 07 Feb 2021 21:52:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Juri Linkov <juri@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
- bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Lars Ingebrigtsen, 2021/02/05
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Drew Adams, 2021/02/05
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Juri Linkov, 2021/02/07
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode',
Lars Ingebrigtsen <=
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Juri Linkov, 2021/02/08
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Lars Ingebrigtsen, 2021/02/09
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Juri Linkov, 2021/02/09
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Drew Adams, 2021/02/09
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Juri Linkov, 2021/02/09
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Drew Adams, 2021/02/09
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Juri Linkov, 2021/02/09
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Drew Adams, 2021/02/09
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode', Lars Ingebrigtsen, 2021/02/09