all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bhenz@Lexmark.com
Cc: help-gnu-emacs-bounces+bhenz=lexmark.com@gnu.org, help-gnu-emacs@gnu.org
Subject: Re: problems with save-excursion
Date: Wed, 8 Mar 2006 18:00:18 -0500	[thread overview]
Message-ID: <OF7FCAE057.74CC2AE8-ON8525712B.007E497C-8525712B.007EAE52@lexmark.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 758 bytes --]

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



[-- Attachment #1.2: Type: text/html, Size: 1574 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

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

             reply	other threads:[~2006-03-08 23:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-08 23:00 bhenz [this message]
2006-03-10 19:21 ` problems with save-excursion Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2006-03-08 22:36 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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF7FCAE057.74CC2AE8-ON8525712B.007E497C-8525712B.007EAE52@lexmark.com \
    --to=bhenz@lexmark.com \
    --cc=help-gnu-emacs-bounces+bhenz=lexmark.com@gnu.org \
    --cc=help-gnu-emacs@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.