[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: |
Sun, 07 Feb 2021 20:58:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> > The (normal) region limits the text that replacement search
>> > tries to match, by bounding it. The rectangular region keeps
>> > the ordinary region as the domain of text that search tries
>> > to match, and it filters the matches against that domain to
>> > remove any matches that are not wholly within the limits of
>> > the rectangle.
>>
>> Yup. It's a pretty odd design decision, though --
>> I wonder whether it this happened on purpose or
>> whether that was just the simplest way to implement this.
>
> I'm pretty sure it was done this way just because
> that's much simpler to do.
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.
As a workaround, to imitate rectangular narrowing,
you can copy the rectangular region with C-x r k
to a temporary buffer, query-replace in it, and
paste the result back with C-x r y.
- 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 <=
- 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, 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