[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46621: Copy line
From: |
Pankaj Jangid |
Subject: |
bug#46621: Copy line |
Date: |
Thu, 23 Jun 2022 13:38:07 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
>> Behaviour could be different, depending upon what programming construct
>> your are in. For example, in C,
>>
>> #include <a.h>
>> #include <b.h>
>> ...
>>
>> if I have to include a new library I’ll go to line-no 2 call
>> duplicate-line and then I want the point at the end.
>
> But why do you want point at the end? You want to edit those duplicated
> lines, presumably.
Yes I want to edit it from the end. Beginning of the statement is mostly
common, I just want to replace "b.h>" with "c.h>".
In some languages (like Java), it is even more required because the class
hierarchy is usually very deep. For example,
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
and now I want to import "Value" or "Required" class from the same
package. So I would like to do,
M-x duplicate-line RET M-<backspace> V a l u e ;
And repeating would be even more easier,
M-x RET M-<backspace> R e q u i r e d ;
If the pointer is at the beginning then it might be slightly
inconvenient.
- bug#46621: Copy line, (continued)
- bug#46621: Copy line, Mattias Engdegård, 2022/06/21
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/22
- bug#46621: Copy line, Juri Linkov, 2022/06/21
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/22
- bug#46621: Copy line, Juri Linkov, 2022/06/22
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/22
- bug#46621: Copy line, Pankaj Jangid, 2022/06/22
- bug#46621: Copy line, Juri Linkov, 2022/06/22
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/22
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/23
- bug#46621: Copy line,
Pankaj Jangid <=
- bug#46621: Copy line, Andreas Schwab, 2022/06/23
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/23
- bug#46621: Copy line, Robert Pluim, 2022/06/23
- bug#46621: Copy line, Pankaj Jangid, 2022/06/23
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/23
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/23
- bug#46621: Copy line, Pankaj Jangid, 2022/06/23
- bug#46621: Copy line, Mattias Engdegård, 2022/06/23
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/06/23
- bug#46621: Copy line, Mattias Engdegård, 2022/06/25