unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: problems with save-excursion
Date: Thu, 09 Mar 2006 06:30:15 +0200	[thread overview]
Message-ID: <uirqos0iw.fsf@gnu.org> (raw)
In-Reply-To: <1141857397.880352.44860@u72g2000cwu.googlegroups.com> (filcab@gmail.com)

> From: filcab@gmail.com
> Date: 8 Mar 2006 14:36:37 -0800
> 
> 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...
> It says:
> save-excursion: Wrong number of arguments: #[(arg) ... (some trash)

It complains about the use of copy-region-as-kill" that function needs
to receive two arguments.  See its doc string for the details.

  parent reply	other threads:[~2006-03-09  4:30 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 [this message]
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
  -- 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=uirqos0iw.fsf@gnu.org \
    --to=eliz@gnu.org \
    /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).