From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.bugs Subject: bug#46621: Copy line Date: Thu, 23 Jun 2022 13:38:07 +0530 Message-ID: <87a6a3ree0.fsf@codeisgreat.org> References: <87tuq99ova.fsf@mail.linkov.net> <07496A25-CD5D-46E6-8F1C-7BD29143F3C8@acm.org> <87o7yoyj38.fsf@gnus.org> <449B2624-107D-4083-AE74-989F39C93936@acm.org> <871qvkvft6.fsf@gnus.org> <181B4CC3-B934-45AE-A7E8-9AF2B70C302E@acm.org> <87bkum1eyc.fsf@gnus.org> <861qvikk4l.fsf@mail.linkov.net> <87zgi5uyr1.fsf@gnus.org> <86o7yl9oc4.fsf@mail.linkov.net> <878rppuo9j.fsf@gnus.org> <87wnd8r4v2.fsf@codeisgreat.org> <87y1xnzuog.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="482"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 46621@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 23 10:09:35 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o4HuB-000ASF-Am for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 10:09:35 +0200 Original-Received: from localhost ([::1]:41626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4HuA-0007FZ-1z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 04:09:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4Hte-0007ED-LQ for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2022 04:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4Hte-0000tO-7o for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2022 04:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4Htd-0006YC-VD for bug-gnu-emacs@gnu.org; Thu, 23 Jun 2022 04:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jun 2022 08:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46621 X-GNU-PR-Package: emacs Original-Received: via spool by 46621-submit@debbugs.gnu.org id=B46621.165597169725124 (code B ref 46621); Thu, 23 Jun 2022 08:09:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 23 Jun 2022 08:08:17 +0000 Original-Received: from localhost ([127.0.0.1]:37207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Hsv-0006X9-JC for submit@debbugs.gnu.org; Thu, 23 Jun 2022 04:08:17 -0400 Original-Received: from mail-pg1-f171.google.com ([209.85.215.171]:36675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4Hst-0006Wu-Uz for 46621@debbugs.gnu.org; Thu, 23 Jun 2022 04:08:16 -0400 Original-Received: by mail-pg1-f171.google.com with SMTP id s185so12694025pgs.3 for <46621@debbugs.gnu.org>; Thu, 23 Jun 2022 01:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=EqgWt4YB4M0KzUGVoOF5G5z3LdpNMoKsEc/EYRY58ic=; b=SYFaHrQ32g9uW/UuxYgqPWS3Bgm5R7HIbKOVNmGAv0W1wGDyLrxhzwWZ+XVo/EhTH+ OUfLVtiMeV2rhkC5pamG0dRddGM1v7rwn2ovZsiPGlMifJpx7UQmRfzihkVmFU/Pb3Xd C7Wu+yfdqT5eLXa033Jjj/m+6tyYNbmDTaRQUPoGiaGOH9t9tPS/MabKOmGYHiQzOKHw 1nXODKH/IqP3S2YT46Rk8A+GvMoLTtAnpX3Rw+Q64Gs0UyaBhiLZi6Ao8BCyiYAAJWOQ NZngBiLnbtjEdAJTms1rn7cSq9RuOlXbsji7XMtim+Uhqr0q80FHatz9RWsT9t2qNd8X I+Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=EqgWt4YB4M0KzUGVoOF5G5z3LdpNMoKsEc/EYRY58ic=; b=nXNSkQZjLJsnPL6QsE4N+uKEk/6T13k011XNaa7L1OHm0ZjQqEMEj4pEFX0mXAGYyS NVlNGOcfsifL22PTygeFShTfmPa2bJRUXeBGko5aTG3u1DfC57sV+fS4KgLY53TONQlR ci0WRrP8XPpK1ToJ6qFB1Oa3O0QIJViJGSTjkGiQk+3Ny2ADI8tuiEhcE19A+D4MER11 1m+wj1C210LN8CztByshIB63ADLX1FtxFBDyuD/Ls0gNboipzZ2bPdqd2UnVM9ffXqTT mecZWPzerMN+IhCEfXYxsSHO3uEdIA6IcnKX4JMAVIu8D2jDDPxCZI8gwpnJvjC5VBl3 L36A== X-Gm-Message-State: AJIora9t8Cv4Po1HLPdvZcAb3/44T+bT7cSjufpVL5Efw4dyVj3bqCNC /q/K0pf1ivyUkZd04m77TscXlsG/TNxhDw== X-Google-Smtp-Source: AGRyM1ty6wgtrSYO9baxWoNq7Zq4vVGDRadaCmPzLTnGOHoDRcLc3ndi14cHfSThB9rE6c9y/xNVlQ== X-Received: by 2002:a63:3e0e:0:b0:40c:9d29:9a6c with SMTP id l14-20020a633e0e000000b0040c9d299a6cmr6613081pga.396.1655971689981; Thu, 23 Jun 2022 01:08:09 -0700 (PDT) Original-Received: from anant ([49.36.238.183]) by smtp.gmail.com with ESMTPSA id a19-20020aa795b3000000b00525550222edsm969683pfk.214.2022.06.23.01.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 01:08:09 -0700 (PDT) In-Reply-To: <87y1xnzuog.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 23 Jun 2022 09:49:03 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235077 Archived-At: Lars Ingebrigtsen writes: >> Behaviour could be different, depending upon what programming construct >> your are in. For example, in C, >> >> #include >> #include >> ... >> >> if I have to include a new library I=E2=80=99ll 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- V a l u e ; And repeating would be even more easier, M-x RET M- R e q u i r e d ; If the pointer is at the beginning then it might be slightly inconvenient.