[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: |
Juri Linkov |
Subject: |
bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode' |
Date: |
Mon, 08 Feb 2021 20:12:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> 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.
> 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.
I invite anyone who uses the rectangle mode to try
different use cases to see whether this works well.
Maybe this also helps in cases like described in bug#6362.
- 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, 2021/02/07
- bug#27896: [External] : Re: bug#27896: 25.2; `C-M-%' with `rectangle-mark-mode',
Juri Linkov <=
- 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