bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46621: Copy line


From: Robert Pluim
Subject: bug#46621: Copy line
Date: Thu, 23 Jun 2022 11:22:29 +0200

>>>>> On Thu, 23 Jun 2022 10:17:04 +0200, Andreas Schwab <schwab@suse.de> said:

    Andreas> On Jun 23 2022, Pankaj Jangid wrote:
    >> 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.

    Andreas> duplicate-line should keep point at the same column.

duplicate-line-pre-hook and duplicate-line-post-hook anyone? 😛

Seriously, itʼs a primitive operation, so Andreas is right. Anyone who
wants to customize the behaviour can advise it.

Robert
-- 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]