From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: wrong number of arguments when launched interactively... Date: Sun, 25 Nov 2018 23:36:37 +0900 Message-ID: <55FD4369-F3B5-45AD-A065-FF7F1497A3EE@gmail.com> References: <27A15626-627A-4164-BE6B-FDD08C9247BA@gmail.com> <87lg5hqmil.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543157541 22313 195.159.176.226 (25 Nov 2018 14:52:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2018 14:52:21 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 15:52:16 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQvlg-0005hx-As for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 15:52:16 +0100 Original-Received: from localhost ([::1]:60111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQvnm-0006Jb-RU for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 09:54:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQvmv-0006FW-3O for help-gnu-emacs@gnu.org; Sun, 25 Nov 2018 09:53:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQvWf-0006AG-A7 for help-gnu-emacs@gnu.org; Sun, 25 Nov 2018 09:36:48 -0500 Original-Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:38772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQvWe-00069X-8P for help-gnu-emacs@gnu.org; Sun, 25 Nov 2018 09:36:45 -0500 Original-Received: by mail-pf1-x42c.google.com with SMTP id q1so5315261pfi.5 for ; Sun, 25 Nov 2018 06:36:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=xrEx1qcUwgU2M4RlC9WtbZMdHatYbSGD64SmHZk733Y=; b=bTGXcErq/PdEsUbAiXbzaU/TgLGiMKkXRydKQvrr5PSYtP2lgLXBFT6wUaKB24KebP +t6tOlvlJjGyVkDjHRBgU8j0Z4QedMNLUGmMk3SdU4q1mW7X7BZlf607ChsOm6AMwXPr eySxmXsRGW8x/Csf7fmdOjA+GiAUl+3x+20OvDricpjVyWiw1csvhIjDBjoS6+E4VwJW dLlnSoq6UbNx4GlH/EqTWrJJonM/myVTIeiQIcKmalc7DFy8s4tjbpN4A0ZSQ1Ap+pkh HWmKErUsGn1po5e6DpN7tBz/iyZ0D5jylVxC/G6oYJ6GzLAxPN6YktMPp1uIfNWtAItP ipnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=xrEx1qcUwgU2M4RlC9WtbZMdHatYbSGD64SmHZk733Y=; b=gAc3BIAQ9Q0LYo63p41zfZsBgdR7BhUmoxRhJp3QX+4EeaOkFcpGq3Hmj9I2cWHD66 p3lFOWeGKZP9COLKUQuIgyk8ZrSYGmzVpQZFzYA2vmreCsEls6w0iY3Ze4Ao3g8GYJYr NFYsSBYeJSBgiNPB0ghnX8NOzk1bRkRV/+eEc/4Rs4FGMB7hNXQTzqFBCuyJnxawEI/O d8TgW0bPUUfXSkoLG8Xj9m8itI+DBZt/uUqWzhpJgFz15LROwnRTQNL56uhFUfmkOIcA 6IXl0wUzkRsSynne8wVOyglY0en1SGyiE1glm3iTkqTUQEAqBEm4uNVce5vujCu1NxDL OJqg== X-Gm-Message-State: AA+aEWY1Shj37r4u761L2g85MPIGuRqgcO3b7NIlYMffhD0TY2+4jYm1 jck92qvbHr75PQS6f6ol7xR0md3h X-Google-Smtp-Source: AJdET5fdiA0mFGuX03E+aEvqOR2/p5RXoh8JP52tVk5rJylUXz1lDRsIk6dH+nVSR4cIHP3Cv1oZLg== X-Received: by 2002:a63:4566:: with SMTP id u38mr21163938pgk.4.1543156602184; Sun, 25 Nov 2018 06:36:42 -0800 (PST) Original-Received: from [192.168.1.11] (pl16832.ag0304.nttpc.ne.jp. [128.53.251.192]) by smtp.gmail.com with ESMTPSA id d3sm83006171pgl.64.2018.11.25.06.36.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Nov 2018 06:36:41 -0800 (PST) In-Reply-To: <87lg5hqmil.fsf@gmx.net> X-Mailer: Apple Mail (2.3445.9.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42c X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118752 Archived-At: > On Nov 25, 2018, at 23:06, Stephen Berman = wrote: >=20 > 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