* interactive function at GNU Emacs startup
@ 2006-07-13 1:22 scm
2006-07-13 5:51 ` Tassilo Horn
0 siblings, 1 reply; 7+ messages in thread
From: scm @ 2006-07-13 1:22 UTC (permalink / raw)
Greetings,
I would like to have a certain interactive function that I use quite
often start up every time I run GNU Emacs. What is the best way of
going about this?
In my .emacs I tried the following functions, to no avail:
(load "~/foo-function.el")
(execute-extended-command "foo-function")
Any ideas?
Thanks in advance to anyone who has the time to spare.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: interactive function at GNU Emacs startup
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
0 siblings, 1 reply; 7+ messages in thread
From: Tassilo Horn @ 2006-07-13 5:51 UTC (permalink / raw)
"scm" <scm.info.search@gmail.com> writes:
Hi,
> In my .emacs I tried the following functions, to no avail:
>
> (load "~/foo-function.el")
To execute `foo-function', simply do
(foo-function)
Bye,
Tassilo
--
A morning without coffee is like something without something else.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: interactive function at GNU Emacs startup
2006-07-13 5:51 ` Tassilo Horn
@ 2006-07-13 7:30 ` Mathias Dahl
2006-07-13 15:50 ` scm
0 siblings, 1 reply; 7+ messages in thread
From: Mathias Dahl @ 2006-07-13 7:30 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: interactive function at GNU Emacs startup
2006-07-13 7:30 ` Mathias Dahl
@ 2006-07-13 15:50 ` scm
2006-07-13 16:08 ` Mathias Dahl
0 siblings, 1 reply; 7+ messages in thread
From: scm @ 2006-07-13 15:50 UTC (permalink / raw)
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?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: interactive function at GNU Emacs startup
2006-07-13 15:50 ` scm
@ 2006-07-13 16:08 ` Mathias Dahl
2006-07-13 19:21 ` scm
0 siblings, 1 reply; 7+ messages in thread
From: Mathias Dahl @ 2006-07-13 16:08 UTC (permalink / raw)
"scm" <scm.info.search@gmail.com> writes:
> 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.
Paste what you tried here, both the source for foo-fuction and the
call to it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: interactive function at GNU Emacs startup
2006-07-13 16:08 ` Mathias Dahl
@ 2006-07-13 19:21 ` scm
2006-07-14 7:12 ` Mathias Dahl
0 siblings, 1 reply; 7+ messages in thread
From: scm @ 2006-07-13 19:21 UTC (permalink / raw)
Mathias Dahl wrote:
> "scm" <scm.info.search@gmail.com> writes:
>
> > 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.
>
> Paste what you tried here, both the source for foo-fuction and the
> call to it.
I'm sorry. I stand corrected. I was still trying to call it my old way.
What you suggested worked! Thank you very much.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: interactive function at GNU Emacs startup
2006-07-13 19:21 ` scm
@ 2006-07-14 7:12 ` Mathias Dahl
0 siblings, 0 replies; 7+ messages in thread
From: Mathias Dahl @ 2006-07-14 7:12 UTC (permalink / raw)
"scm" <scm.info.search@gmail.com> writes:
> I'm sorry. I stand corrected. I was still trying to call it my old
> way.
Hehe :) A classic!
> What you suggested worked! Thank you very much.
You're welcome!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-07-14 7:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-07-13 16:08 ` Mathias Dahl
2006-07-13 19:21 ` scm
2006-07-14 7:12 ` Mathias Dahl
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).