From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Line Copy to Another Buffer Date: Wed, 11 Sep 2002 17:23:39 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3D7FD07B.6010906@ihs.com> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1031787369 31031 127.0.0.1 (11 Sep 2002 23:36:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2002 23:36:09 +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 17pH1j-00084F-00 for ; Thu, 12 Sep 2002 01:36:07 +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 17pH1n-0004XO-00; Wed, 11 Sep 2002 19:36:11 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: fu-berlin.de 1031786612 60617504 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: nntp.stanford.edu gnu.emacs.help:104776 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:1331 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1331 Joe Casadonte wrote: > On Tue, 10 Sep 2002, Kai Großjohann wrote: > > >>Hm? It's almost impossible to copy the line to another buffer >>without using the region (or a region-like feature). >> >>(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. -- Kevin Rodgers