[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrong number of arguments when launched interactively...

From: Jean-Christophe Helary
Subject: Re: wrong number of arguments when launched interactively...
Date: Sun, 25 Nov 2018 23:36:37 +0900

> On Nov 25, 2018, at 23:06, Stephen Berman <> wrote:
> You've defined a function, dailyIndex, that takes one obligatory
> argument, myDate, but the last line of the function definition calls the
> function without argument, that's the error.  Did you mean to make that
> line part of the function definition (and hence make it recursive)?

Wow, thank you Stephen.

1) there is a problem with the parens, the defun stops at the last format
2) I was expecting (wrongly) that the (write-region (dailyIndex) nil 
"~/Desktop/index.html") expression would use the default value I had set. So 
instead I'm calling (write-region todayTemplate nil "~/Desktop/index.html") and 
that seems to work.

Thank you again. I spent a whole day putting all this together. That was quite 
an education. I'm glad there are sites like stackoverflow and the like because 
only with the elisp reference I was totally lost.

For ex, the description of (interactive) is absolutely not clear at all when 
you want a default value for code characters that do not include one, 
similarly, I was not at all considering (write-region) to get the result on a 

But I'm glad I'm finishing the day with something that works.

Jean-Christophe Helary
----------------------------------------------- @brandelune

reply via email to

[Prev in Thread] Current Thread [Next in Thread]