From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kgold@watson.ibm.com (kgold) Newsgroups: gmane.emacs.help Subject: Re: Line Copy to Another Buffer Date: 11 Sep 2002 21:08:27 GMT Organization: IBM T.J. Watson Research Center Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031780208 10914 127.0.0.1 (11 Sep 2002 21:36:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2002 21:36:48 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17pFAF-0002pu-00 for ; Wed, 11 Sep 2002 23:36:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pFAH-0008KX-00; Wed, 11 Sep 2002 17:36:49 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!news.chips.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!kgold Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: alpha.watson.ibm.com Original-X-Trace: news.btv.ibm.com 1031778507 26010 9.2.16.245 (11 Sep 2002 21:08:27 GMT) Original-X-Complaints-To: news@btv.ibm.com Original-NNTP-Posting-Date: 11 Sep 2002 21:08:27 GMT X-Newsreader: xrn 9.01 Originator: kgold@watson.ibm.com Original-Xref: nntp.stanford.edu gnu.emacs.help:104770 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1325 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1325 I use keyboard macros for this type of thing, since no elisp programming knowledge is needed. I have call-last-kbd-macro on F2 since I use it so much. For example, if the two buffers are in the frame, the keyboard macro might be: beginning-of-line set-mark-command end-of-line copy-region-as-kill other-window yank other-window If you use it often, you can name and save the macro. googleartist@yahoo.com (Artist) writes: > I want to copy selective lines from one buffer to another buffer. > So I browse one buffer and whenever I come across interesting line, > I just want to hit some command and copy to another buffer. I have > seen the solution involving region, but that would be too much. -- -- Ken Goldman kgold@watson.ibm.com 914-784-7646