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: Wed, 20 Jan 2010 20:00:59 -0800 Message-ID: References: <15900710.694901263748625688.JavaMail.www@wwinf4614> <87ljftjimh.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016363b9408366afa047da4c0cd X-Trace: ger.gmane.org 1264046481 9017 80.91.229.12 (21 Jan 2010 04:01:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2010 04:01:21 +0000 (UTC) Cc: alinsoar@voila.fr, Teemu Likonen , "Emacs Dev \[emacs-devel\]" To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 21 05:01:13 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 1NXoEK-0007lY-UF for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2010 05:01:13 +0100 Original-Received: from localhost ([127.0.0.1]:33974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXoEL-00042W-N4 for ged-emacs-devel@m.gmane.org; Wed, 20 Jan 2010 23:01:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXoEH-00042H-2f for emacs-devel@gnu.org; Wed, 20 Jan 2010 23:01:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXoEB-000425-Kt for emacs-devel@gnu.org; Wed, 20 Jan 2010 23:01:07 -0500 Original-Received: from [199.232.76.173] (port=50695 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXoEB-000422-EY for emacs-devel@gnu.org; Wed, 20 Jan 2010 23:01:03 -0500 Original-Received: from mail-pz0-f188.google.com ([209.85.222.188]:40250) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXoE8-0006fK-Nz; Wed, 20 Jan 2010 23:01:01 -0500 Original-Received: by pzk26 with SMTP id 26so837616pzk.26 for ; Wed, 20 Jan 2010 20:00:59 -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=Fuqfa0p/u4XAEPK6bN/VLSbJgtO5TbffYBAAP3gPiL4=; b=YRuP+GEba0+Mx5aTfICugTL4eJCnAc0a5o4b08uw4htf2XcdN8tNYw25P13cJJZnGU aoZ7CUBAVht9Yk1Lo/jFqIwBmXD2VlO+SosFWr1wis0XCMXZhsbAXc+1Jg5XhowkHyIu 0PiwJDS2xosrJ7U3Dgu9xKWPaXYm/vIsWmNyg= 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=gIi2rugHHnaFe+G7h8+ltDkHE4qbBzhxglOh58dyJp9a7ohKjvEEVxc0obwYKyM5+u IYbGQZCI8TNbfzzuxJihMBn0uctHKcwG98SqunwPpM87MLEAfKqL30cluXHgmNgGmCX5 Sa2KVFWQw0OSyM6EFAuQbrnjfgQIX1U7qjPC0= Original-Received: by 10.115.84.9 with SMTP id m9mr613185wal.193.1264046459742; Wed, 20 Jan 2010 20:00:59 -0800 (PST) In-Reply-To: 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:120270 Archived-At: --0016363b9408366afa047da4c0cd Content-Type: text/plain; charset=ISO-8859-1 Miles, > I actually do this particular operation quite a bit, but I > think there's no need for a dedicated key sequence to for it -- > the common idioms are easy and fast to use and a lot more > flexible than a dedicated command. 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. On Wed, Jan 20, 2010 at 7:34 PM, Miles Bader wrote: > Ken Hori writes: > > Even in this thread, there seem to be more than several users > > wanting this as a default function, which most likely means there > > are many users who feel the same way. > > That's a pretty shaky assertion... > > I actually do this particular operation quite a bit, but I think there's > no need for a dedicated key sequence to for it -- the common idioms are > easy and fast to use and a lot more flexible than a dedicated command. > > [I use "C-a C-k C-k C-y C-y", which is extremely easy (and quick) to > type because all the keys are C- chords, and because two of the keys are > just repeated.] > > -Miles > > -- > Liberty, n. One of imagination's most precious possessions. > --0016363b9408366afa047da4c0cd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Miles,

> I actually do this particular operation quite a bit, but= I
> think there's no need for a dedicated key sequence to for it= --
> the common idioms are easy and fast to use and a lot more
> flexible than a dedicated command.

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 mys= elf.

"C-a C-k C-k C-y C-y" involves 5 key strokes; and it can be d= angerous and easy
to get lost for the beginners too as it involves 2 kil= lings and 2 yankings.

My point is that, since there are at least 4 p= eople 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 th= ink we should at least
add such a function to simple.el (or the like) fo= r them to use.


On Wed, Jan 20, 2010 at 7:34 PM, Miles B= ader <miles@gnu.org> wrote:
Ken Hori <fplemma= @gmail.com> writes:
> Even in this thread, there seem to be more than several users
> wanting this as a default function, which most likely means there
> are many users who feel the same way.

That's a pretty shaky assertion...

I actually do this particular operation quite a bit, but I think there'= s
no need for a dedicated key sequence to for it -- the common idioms are
easy and fast to use and a lot more flexible than a dedicated command.

[I use "C-a C-k C-k C-y C-y", which is extremely easy (and quick)= to
type because all the keys are C- chords, and because two of the keys are just repeated.]

-Miles

--
Liberty, n. One of imagination's most precious possessions.

--0016363b9408366afa047da4c0cd--