From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Joe Casadonte" Newsgroups: gmane.emacs.help Subject: Re: Line Copy to Another Buffer Date: 11 Sep 2002 22:04:03 -0400 Organization: Llama Fresh Farms, Neare Paraguay Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <3D7FD07B.6010906@ihs.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031796974 17588 127.0.0.1 (12 Sep 2002 02:16:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2002 02:16:14 +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 17pJWf-0004ZR-00 for ; Thu, 12 Sep 2002 04:16:13 +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 17pJWo-0002CY-00; Wed, 11 Sep 2002 22:16:22 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!sn-xit-05!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 30 Original-Xref: nntp.stanford.edu gnu.emacs.help:104781 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:1336 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1336 On Wed, 11 Sep 2002, Kevin Rodgers wrote: >>>(defun art-copy-line () >>> (interactive) >>> (append-to-buffer "COPY-BUFFER" (line-beginning-position) >>> (line-end-position))) >>> >> Through a save-excursion around that and you're set. > > Why is that necessary? The line-*-positions don't affect point, and > append-to-buffer doesn't select the COPY-BUFFER buffer. Mea culpa. You're right, of course. -- Regards, joe Joe Casadonte jcasadonte@northbound-train.com ------------------------------------------------------------------------------ Llama Fresh Farms => http://www.northbound-train.com Gay Media Resource List => http://www.northbound-train.com/gaymedia.html Perl for Win32 => http://www.northbound-train.com/perlwin32.html Emacs Stuff => http://www.northbound-train.com/emacs.html Music CD Trading => http://www.northbound-train.com/cdr.html ------------------------------------------------------------------------------ Live Free, that's the message! ------------------------------------------------------------------------------