[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: interactive function at GNU Emacs startup
From: |
scm |
Subject: |
Re: interactive function at GNU Emacs startup |
Date: |
13 Jul 2006 08:50:30 -0700 |
User-agent: |
G2/0.2 |
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?