From: Peter Lee <pete.a.lee@gmail.com>
Subject: Re: problems with save-excursion
Date: Wed, 15 Mar 2006 14:26:41 GMT [thread overview]
Message-ID: <upskniy1q.fsf@gmail.com> (raw)
In-Reply-To: 1141857397.880352.44860@u72g2000cwu.googlegroups.com
>>>> filcab writes:
>> I have the following function:
>> (defun copy-line ()
>> (interactive)
>> (save-excursion
>> (beginning-of-line)
>> (set-mark-command)
>> (end-of-line)
>> (copy-region-as-kill)))
>> But it's not working...
you could do:
(defun copy-line ()
(interactive)
(kill-new (thing-at-point 'line)))
next prev parent reply other threads:[~2006-03-15 14:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-08 22:36 problems with save-excursion filcab
2006-03-08 22:57 ` Katsumi Yamaoka
2006-03-09 4:30 ` Eli Zaretskii
2006-03-09 10:39 ` Marc Tfardy
2006-03-09 10:43 ` Marc Tfardy
2006-03-11 17:19 ` Stefan Monnier
2006-03-15 14:26 ` Peter Lee [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-08 23:00 bhenz
2006-03-10 19:21 ` Kevin Rodgers
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=upskniy1q.fsf@gmail.com \
--to=pete.a.lee@gmail.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).