From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bhenz@Lexmark.com Newsgroups: gmane.emacs.help Subject: Re: problems with save-excursion Date: Wed, 8 Mar 2006 18:00:18 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1602315302==" X-Trace: sea.gmane.org 1142017242 14240 80.91.229.2 (10 Mar 2006 19:00:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2006 19:00:42 +0000 (UTC) Cc: help-gnu-emacs-bounces+bhenz=lexmark.com@gnu.org, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 20:00:41 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHmqq-0007Ca-TO for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2006 20:00:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHmqq-0000SA-Uy for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Mar 2006 14:00:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FH7dt-0004zM-4t for help-gnu-emacs@gnu.org; Wed, 08 Mar 2006 18:00:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FH7dr-0004xF-Nt for help-gnu-emacs@gnu.org; Wed, 08 Mar 2006 18:00:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FH7dn-0004eA-1l; Wed, 08 Mar 2006 18:00:23 -0500 Original-Received: from [192.146.101.72] (helo=sw3.lexmark.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FH7gi-0000Re-Tp; Wed, 08 Mar 2006 18:03:25 -0500 Original-To: filcab@gmail.com X-Mailer: Lotus Notes Release 5.0.12 February 13, 2003 X-MIMETrack: Serialize by Router on smtp5b/Lex/Lexmark(Release 6.5.4FP1 | June 19, 2005) at 03/08/2006 18:00:20, Serialize complete at 03/08/2006 18:00:20 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33695 Archived-At: This is a multipart message in MIME format. --===============1602315302== Content-Type: multipart/alternative; boundary="=_alternative 007EAE4F8525712B_=" This is a multipart message in MIME format. --=_alternative 007EAE4F8525712B_= Content-Type: text/plain; charset="us-ascii" I believe it's actually complaining about your usage of (interactive) without ARGS. Bob filcab@gmail.com Sent by: help-gnu-emacs-bounces+bhenz=lexmark.com@gnu.org 03/08/2006 05:36 PM To: help-gnu-emacs@gnu.org cc: Subject: problems with save-excursion 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) Any clues? _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --=_alternative 007EAE4F8525712B_= Content-Type: text/html; charset="us-ascii"
I believe it's actually complaining about your usage of (interactive) without ARGS.

Bob



filcab@gmail.com
Sent by: help-gnu-emacs-bounces+bhenz=lexmark.com@gnu.org

03/08/2006 05:36 PM

       
        To:        help-gnu-emacs@gnu.org
        cc:        
        Subject:        problems with save-excursion



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)


Any clues?

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs


--=_alternative 007EAE4F8525712B_=-- --===============1602315302== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1602315302==--