[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with save-excursion
From: |
Eli Zaretskii |
Subject: |
Re: problems with save-excursion |
Date: |
Thu, 09 Mar 2006 06:30:15 +0200 |
> 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.