unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "scm" <scm.info.search@gmail.com>
Subject: Re: interactive function at GNU Emacs startup
Date: 13 Jul 2006 08:50:30 -0700	[thread overview]
Message-ID: <1152805829.969412.142460@s13g2000cwa.googlegroups.com> (raw)
In-Reply-To: <u1wsq55cz.fsf@gmail.com>


Mathias Dahl wrote:
> Tassilo Horn <heimdall@uni-koblenz.de> writes:
>
> >> In my .emacs I tried the following functions, to no avail:
> >>
> >> (load "~/foo-function.el")
> >
> > To execute `foo-function', simply do
> >
> > (foo-function)
>
> Or maybe:
>
> (call-interactively 'foo-function)
>
> If the function is interactive AND requires an argument, you cannot
> just call it in that way. You will get a wrong-number-of-arguments
> error.

I remembered trying the call-interactively function before and it did
not work for me.

Just tried it again. That's right, when Emacs starts up I get the M-x
prompt instead of the interactive foo-fuction running and waiting for
my input.

Any ideas?

  reply	other threads:[~2006-07-13 15:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13  1:22 interactive function at GNU Emacs startup scm
2006-07-13  5:51 ` Tassilo Horn
2006-07-13  7:30   ` Mathias Dahl
2006-07-13 15:50     ` scm [this message]
2006-07-13 16:08       ` Mathias Dahl
2006-07-13 19:21         ` scm
2006-07-14  7:12           ` Mathias Dahl

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=1152805829.969412.142460@s13g2000cwa.googlegroups.com \
    --to=scm.info.search@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).