From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Hori Newsgroups: gmane.emacs.devel Subject: Re: keybinding to duplicate the current line. Date: Sun, 17 Jan 2010 06:28:18 -0800 Message-ID: References: <27198868.post@talk.nabble.com> <7b501d5c1001170619y1f7a8c1au2b221f73a7791084@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636e0b5a34ea3e4047d5d0cba X-Trace: ger.gmane.org 1263738519 26209 80.91.229.12 (17 Jan 2010 14:28:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Jan 2010 14:28:39 +0000 (UTC) Cc: "alin.s" , Emacs-devel@gnu.org To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 17 15:28:31 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWW7D-00011S-7j for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2010 15:28:31 +0100 Original-Received: from localhost ([127.0.0.1]:35941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWW7D-0003WA-NK for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2010 09:28:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWW77-0003Vx-Q8 for emacs-devel@gnu.org; Sun, 17 Jan 2010 09:28:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWW72-0003Tx-8m for Emacs-devel@gnu.org; Sun, 17 Jan 2010 09:28:24 -0500 Original-Received: from [199.232.76.173] (port=45968 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWW72-0003Tm-2v for Emacs-devel@gnu.org; Sun, 17 Jan 2010 09:28:20 -0500 Original-Received: from mail-px0-f192.google.com ([209.85.216.192]:44829) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWW71-00065n-Kd for Emacs-devel@gnu.org; Sun, 17 Jan 2010 09:28:19 -0500 Original-Received: by pxi30 with SMTP id 30so1446879pxi.14 for ; Sun, 17 Jan 2010 06:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Rwp6yvQ2SSvsmiV8xZRcYSqLVnk3y/Uck3OBnhyYqE8=; b=VB/S4M0IHuZX8gDS5FQiO9yAM2lB/JciMCpJvTUVZk8K29931HMc94imE+du6+jtkJ BdwUZdcRkaruN2QBQw0W6Er2XLQ99KENVww9Q3bUuCjbADokhVh05B9gC+1MgkM948TU HrnltwmgQfd4w+e3/wqzHPmerYq5i+Odp8HZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DocLXbdjjbfzOP7ybqas8LRg8piNzMdGBTlVq458GQl2ZmRBnm6aNcPsKr/GejTHlF ABqgNbjYvyiSRElsNnN3xvr91S2AmgjVqwMB/V8eaDszIsmUMBXd2ke8FKo7jXltHx2x Ww1ARa81Nt8in7AyFvREYTroj96TkYHH9jzK4= Original-Received: by 10.114.99.12 with SMTP id w12mr404769wab.72.1263738498750; Sun, 17 Jan 2010 06:28:18 -0800 (PST) In-Reply-To: <7b501d5c1001170619y1f7a8c1au2b221f73a7791084@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120143 Archived-At: --001636e0b5a34ea3e4047d5d0cba Content-Type: text/plain; charset=ISO-8859-1 i frequently use a local command to duplicate the marked string and comment out the first instance (or the second depending on the cursor point). Pretty useful stuff. On Sun, Jan 17, 2010 at 6:19 AM, Deniz Dogan wrote: > 2010/1/17 alin.s : > > > > For me it would be very convenient to have a key-binding to duplicate the > > current line. > > > > In order to duplicate it I have to press > > > > C-a C-SPACE C-e C-f M-w C-g C-y > > > > It's too much for an usual function. C-x C-a would be good? > > > > More than that, if I press C-u C-x C-a, I wish to duplicate the current > > line, and to comment the old line. > > > > Do you consider that such a function would be useful for many of you? > > Otherwise, I have to wtite it myseld in my own .emacs... > > > > I have such a function bound to M-k but I never find the use for it. > > -- > Deniz Dogan > > > --001636e0b5a34ea3e4047d5d0cba Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable i frequently use a local command to duplicate the marked string and
comm= ent out the first instance (or the second depending on the cursor point).Pretty useful stuff.

On Sun, Jan 17, 2= 010 at 6:19 AM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
2010/1/17 alin.s = <alinsoar@voila.fr>:
>
> For me it would be very convenient to have a key-binding to duplicate = the
> current line.
>
> In order to duplicate it I have to press
>
> C-a C-SPACE C-e C-f M-w C-g C-y
>
> It's too much for an usual function. C-x C-a would be good?
>
> More than that, if I press C-u C-x C-a, I wish to duplicate the curren= t
> line, and to comment the old line.
>
> Do you consider that such a function would be useful for many of you?<= br> > Otherwise, I have to wtite it myseld in my own .emacs...
>

I have such a function bound to M-k but I never find the use for it.<= br>
--
Deniz Dogan



--001636e0b5a34ea3e4047d5d0cba--