From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: keybinding to duplicate the current line. Date: Sun, 17 Jan 2010 15:19:59 +0100 Message-ID: <7b501d5c1001170619y1f7a8c1au2b221f73a7791084@mail.gmail.com> References: <27198868.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1263738034 24936 80.91.229.12 (17 Jan 2010 14:20:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Jan 2010 14:20:34 +0000 (UTC) Cc: Emacs-devel@gnu.org To: "alin.s" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 17 15:20:26 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 1NWVzN-0006oj-7W for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2010 15:20:25 +0100 Original-Received: from localhost ([127.0.0.1]:34687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWVzN-0000Cm-Ta for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2010 09:20:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWVzJ-0000Ch-K8 for emacs-devel@gnu.org; Sun, 17 Jan 2010 09:20:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWVzI-0000CV-TJ for Emacs-devel@gnu.org; Sun, 17 Jan 2010 09:20:20 -0500 Original-Received: from [199.232.76.173] (port=42944 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWVzI-0000CS-Oq for Emacs-devel@gnu.org; Sun, 17 Jan 2010 09:20:20 -0500 Original-Received: from ey-out-1920.google.com ([74.125.78.148]:5441) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWVzI-00038D-Fr for Emacs-devel@gnu.org; Sun, 17 Jan 2010 09:20:20 -0500 Original-Received: by ey-out-1920.google.com with SMTP id 26so360520eyw.34 for ; Sun, 17 Jan 2010 06:20:19 -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 :from:date:message-id:subject:to:cc:content-type; bh=IdD8BcJ+bi0Vmu+t+3ziggdV0ikkpaejUgW1dzNOSAg=; b=cZCXIsn0QudsGgZ0P5rxtyU+1EjhSgIVyEOpR5GM/mJqeTdAHyaqL/EIdw5cuwJPWH tk2WqDI9Jdfe1uOmfVTwa2+JyuppyUP/quStCMa5wIfg4bF3X4L1h68Esvs8jvHDStD5 ErvT1Sr9d2mDthxr1OMK26+WbY4e5BtLwxpXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=swZDg4kHi259m4i1MmSwCnlSr5t77qkRASHa44HeSkaz3CO3FS+Tfvqsne6ejF9lxC gctsv2K3zSnD6sTzPTglJnVvRQWFuv5Zxs8Sj1xO9SWAA9VdvULKWDusPrz9RhQkYUEn zG3Yo2IGY8lMiBJhkBH4B9wWVd5jqLzXLZs9g= Original-Received: by 10.213.23.89 with SMTP id q25mr5306609ebb.65.1263738019168; Sun, 17 Jan 2010 06:20:19 -0800 (PST) In-Reply-To: <27198868.post@talk.nabble.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:120141 Archived-At: 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