From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Re: copy-line Date: Wed, 25 Jul 2012 20:47:22 +0200 Message-ID: References: <1341515294.71719.YahooMailNeo@web163106.mail.bf1.yahoo.com> <1343146015.53752.YahooMailNeo@web163101.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1343242072 10836 80.91.229.3 (25 Jul 2012 18:47:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 18:47:52 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Enda Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 25 20:47:52 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Su6ch-00007W-Tp for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jul 2012 20:47:52 +0200 Original-Received: from localhost ([::1]:36216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su6ch-0000W1-4z for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jul 2012 14:47:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su6cb-0000Vn-UC for help-gnu-emacs@gnu.org; Wed, 25 Jul 2012 14:47:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Su6ca-0002kL-KJ for help-gnu-emacs@gnu.org; Wed, 25 Jul 2012 14:47:45 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:33631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su6ca-0002kF-FX for help-gnu-emacs@gnu.org; Wed, 25 Jul 2012 14:47:44 -0400 Original-Received: by yenr5 with SMTP id r5so1322883yen.0 for ; Wed, 25 Jul 2012 11:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=lvE5+m9S6Ayc4/9x5LXULtvARPkj/nx+R6kvm0pHawY=; b=HQqjAK7aCdQiBItAN3Rs+4OuFlHash5sRglTQZjJRxds22WFZAF5irZI5sUYH8x1V1 u4eWIqmmEKr/TymCZ3Ko3G/BmpS9on7jCWNYmwJDzU6zzAciavqlMN5/8ODRrq2umFHA +wwqBywkVXJwr7YM0Aiw5jVnuQEVu015IxKpiaAD3Dpu29V96ErAXDEnphh5EIu3noMm XzT6IP8rAhb6TMBq0WzhmPAnn6Td7Nnnhd7lvLJuohXU8KtrqLTuOhQVvDw6AWv83gM5 Xi+HuIHCkGISvyoqqQQgi0b18Yi55i86rnrZmlNjFWf57H/91xi3vOhkfEYNh1VX4t0a t43Q== Original-Received: by 10.66.87.136 with SMTP id ay8mr14657590pab.25.1343242062907; Wed, 25 Jul 2012 11:47:42 -0700 (PDT) Original-Received: by 10.68.6.130 with HTTP; Wed, 25 Jul 2012 11:47:22 -0700 (PDT) In-Reply-To: <1343146015.53752.YahooMailNeo@web163101.mail.bf1.yahoo.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86040 Archived-At: On 24 July 2012 18:06, Enda wrote: > Usedn't there be a copy-line in Emacs (which would copy the line). In Vi, > copying a line is yy, what is the shortest way of copying a line in Emacs > (without writing a lisp function in .emacs)? Should there be a default > keystroke for copying a line? > You may want to look at http://www.northbound-train.com/emacs/whole-line-or-region.el Copies or kills with one keystroke, the default one :) I found this via http://emacswiki.org/emacs/CopyingWholeLines where you can find other suggestions. I prefer the whole-line-or-region apprach. HTH, Guido -- Good government never depends upon laws, but upon the personal qualities of those who govern. The machinery of government is always subordinate to the will of those who administer that machinery. The most important element of government, therefore, is the method of choosing leaders. -- Frank Herbert, "Children of Dune" http://vanhoecke.org ... and go2 places!