From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "scm" Newsgroups: gmane.emacs.help Subject: Re: interactive function at GNU Emacs startup Date: 13 Jul 2006 08:50:30 -0700 Organization: http://groups.google.com Message-ID: <1152805829.969412.142460@s13g2000cwa.googlegroups.com> References: <1152753740.811244.309140@b28g2000cwb.googlegroups.com> <87mzbe3veg.fsf@baldur.nicundtas.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1152808839 6721 80.91.229.2 (13 Jul 2006 16:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2006 16:40:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 13 18:40:38 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 1G14Eu-0002GC-7K for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Jul 2006 18:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G14Et-0007aE-Nm for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Jul 2006 12:40:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s13g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 165.121.128.169 Original-X-Trace: posting.google.com 1152805836 8698 127.0.0.1 (13 Jul 2006 15:50:36 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 13 Jul 2006 15:50:36 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: s13g2000cwa.googlegroups.com; posting-host=165.121.128.169; posting-account=IygD7g0AAACdbwMyRejj4naJMV9QPwUF Original-Xref: shelby.stanford.edu gnu.emacs.help:140320 Original-To: help-gnu-emacs@gnu.org 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:35945 Archived-At: Mathias Dahl wrote: > Tassilo Horn 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?