[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55234: 28.1; replace-string in rectangle regio
From: |
Michael Heerdegen |
Subject: |
bug#55234: 28.1; replace-string in rectangle regio |
Date: |
Thu, 02 Jun 2022 14:20:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Juri Linkov <juri@linkov.net> writes:
> (mapcar 'car (region-bounds))
Sounds reasonable.
> > BTW, my solution to the original problem: I implemented a command
> > that lets me edit a rectangular region in a separate buffer (similar to
> > `string-edit').
>
> Isn't this a workaround?
A different approach. Why I did this is: first, it's sometimes nice to
have a separate buffer that is like the buffer "narrowed to the
rectangular region". Second, depending on the text structure, in some
cases the end result should be a proper rectangle again, or even a
rectangle of exactly the same dimensions. But when you query replace,
rectangle lines may become different lengths, some may be empty, some
even longer than before etc. My commands asks me what to do in such a
situation.
Michael.
- bug#55234: 28.1; replace-string in rectangle regio, Michael Heerdegen, 2022/06/01
- bug#55234: 28.1; replace-string in rectangle regio, Juri Linkov, 2022/06/01
- bug#55234: 28.1; replace-string in rectangle regio,
Michael Heerdegen <=
- bug#55234: 28.1; replace-string in rectangle regio, Juri Linkov, 2022/06/02
- bug#55234: 28.1; replace-string in rectangle regio, Juri Linkov, 2022/06/03
- bug#55234: 28.1; replace-string in rectangle regio, Juri Linkov, 2022/06/03
- bug#55234: 28.1; replace-string in rectangle regio, Michael Heerdegen, 2022/06/04
- bug#55234: 28.1; replace-string in rectangle regio, Juri Linkov, 2022/06/06
- bug#55234: 28.1; replace-string in rectangle regio, Michael Heerdegen, 2022/06/09
- bug#55234: 28.1; replace-string in rectangle regio, Juri Linkov, 2022/06/09
- bug#55234: 28.1; replace-string in rectangle regio, Juri Linkov, 2022/06/02
- bug#55234: 28.1; replace-string in rectangle regio, Michael Heerdegen, 2022/06/03