From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: keybinding to duplicate the current line. Date: Thu, 21 Jan 2010 09:29:20 -0500 Message-ID: References: <15900710.694901263748625688.JavaMail.www@wwinf4614> <87ljftjimh.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264084334 18862 80.91.229.12 (21 Jan 2010 14:32:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2010 14:32:14 +0000 (UTC) Cc: alinsoar@voila.fr, Teemu Likonen , "Emacs Dev \[emacs-devel\]" , Miles Bader To: Ken Hori Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 21 15:32:06 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 1NXy4r-0006xV-1F for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2010 15:32:05 +0100 Original-Received: from localhost ([127.0.0.1]:35262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXy4s-0007Pk-3O for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2010 09:32:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXy2S-0005Pm-H7 for emacs-devel@gnu.org; Thu, 21 Jan 2010 09:29:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXy2N-0005Ig-N0 for emacs-devel@gnu.org; Thu, 21 Jan 2010 09:29:35 -0500 Original-Received: from [199.232.76.173] (port=35381 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXy2N-0005IJ-Ay for emacs-devel@gnu.org; Thu, 21 Jan 2010 09:29:31 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:43236) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXy2L-0006s2-HY; Thu, 21 Jan 2010 09:29:29 -0500 Original-Received: from ceviche.home (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o0LETOhL011962; Thu, 21 Jan 2010 09:29:26 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id B009170053; Thu, 21 Jan 2010 09:29:20 -0500 (EST) In-Reply-To: (Ken Hori's message of "Wed, 20 Jan 2010 20:00:59 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3452=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:120275 Archived-At: > I don't mean to be picky here, but i think my assertion was and is > less shaky than yours in that it consumes the opinions of alin.s, > A. Soare, Daniel Colascione and myself. > "C-a C-k C-k C-y C-y" involves 5 key strokes; and it can be dangerous > and easy to get lost for the beginners too as it involves 2 killings > and 2 yankings. > My point is that, since there are at least 4 people in this thread who > want, or have already defined their version of, 'comment-and-dup' that > there probably are a lot of existing users that would find it > useful. So I think we should at least add such a function to simple.el > (or the like) for them to use. Emacs is highly configurable. You can very easily make that line-duplicating command yourself, even without knowing any Elisp (using a keyboard macro). So clearly, the most important change would not be to add such a command to Emacs, but to give it a key-binding, and there lies the rub. It's quite likely that any keybinding we could come up with would not be significantly easier to type (and remember) than Miles's. Stefan