help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line Copy to Another Buffer


From: Joe Casadonte
Subject: Re: Line Copy to Another Buffer
Date: 11 Sep 2002 22:04:03 -0400
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

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
address@hidden

------------------------------------------------------------------------------
         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!
------------------------------------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]