From: "Joe Casadonte" <jcasadonte@northbound-train.com>
Subject: Re: Line Copy to Another Buffer
Date: 11 Sep 2002 13:56:28 -0400 [thread overview]
Message-ID: <u65xc4dgz.fsf@terrapin.northbound-train.com> (raw)
In-Reply-To: vafr8g18tee.fsf@lucy.cs.uni-dortmund.de
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.
I have some crude code that does cut-copy-paste on the current region
or the current line, if there's no region (assumes transient-mark-mode
is on and mark-even-if-inactive is nil). If anyone's interested, let
me know.
--
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!
------------------------------------------------------------------------------
next prev parent reply other threads:[~2002-09-11 17:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-10 18:44 Line Copy to Another Buffer Artist
2002-09-10 20:46 ` Kai Großjohann
2002-09-11 17:56 ` Joe Casadonte [this message]
2002-09-11 23:23 ` Kevin Rodgers
2002-09-12 2:04 ` Joe Casadonte
2002-09-11 21:08 ` kgold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u65xc4dgz.fsf@terrapin.northbound-train.com \
--to=jcasadonte@northbound-train.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).