From: Jean-Christophe Helary <brandelune@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: wrong number of arguments when launched interactively...
Date: Sun, 25 Nov 2018 23:36:37 +0900 [thread overview]
Message-ID: <55FD4369-F3B5-45AD-A065-FF7F1497A3EE@gmail.com> (raw)
In-Reply-To: <87lg5hqmil.fsf@gmx.net>
> On Nov 25, 2018, at 23:06, Stephen Berman <stephen.berman@gmx.net> 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 file...
But I'm glad I'm finishing the day with something that works.
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
prev parent reply other threads:[~2018-11-25 14:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-25 13:35 wrong number of arguments when launched interactively Jean-Christophe Helary
2018-11-25 14:06 ` Stephen Berman
2018-11-25 14:36 ` Jean-Christophe Helary [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55FD4369-F3B5-45AD-A065-FF7F1497A3EE@gmail.com \
--to=brandelune@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.