From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: wrong number of arguments when launched interactively... Date: Sun, 25 Nov 2018 15:06:58 +0100 Message-ID: <87lg5hqmil.fsf@gmx.net> References: <27A15626-627A-4164-BE6B-FDD08C9247BA@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543154735 18981 195.159.176.226 (25 Nov 2018 14:05:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2018 14:05:35 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 15:05:31 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 1gQv2R-0004p4-Bk for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 15:05:31 +0100 Original-Received: from localhost ([::1]:60043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQv4X-0001Tr-82 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 09:07:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQv3y-0001Tk-Fy for help-gnu-emacs@gnu.org; Sun, 25 Nov 2018 09:07:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQv3t-0004bu-Im for help-gnu-emacs@gnu.org; Sun, 25 Nov 2018 09:07:06 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:56707) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQv3t-0004bB-9u for help-gnu-emacs@gnu.org; Sun, 25 Nov 2018 09:07:01 -0500 Original-Received: from rosalinde ([178.6.221.215]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MbsV8-1g9wAv1jEs-00JH64; Sun, 25 Nov 2018 15:06:59 +0100 In-Reply-To: <27A15626-627A-4164-BE6B-FDD08C9247BA@gmail.com> (Jean-Christophe Helary's message of "Sun, 25 Nov 2018 22:35:33 +0900") X-Provags-ID: V03:K1:3incg8OZ3VOEy5/9ZoQiyi9tHHbxNP90iK2GvV8UFqanx9W8Fyz QWpIOeVajcjrjslIr/NqW9oj9P9zV9BgICvER1kR5cDfFK49yBxp4D7gaCWl/BZEfD1vQF5 7xefRlpzTOcHuewbm3EasMzIDAIkh8rQw+nutO4RkrgpBt5ekjJpkZuFfYBQd1MzHtXIgrq IrtG7Ib3TPqQ9zeSCFrag== X-UI-Out-Filterresults: notjunk:1;V03:K0:6W3u5ZMj8fE=:FVQHFP664Q1V4GgU+qDowo k2R9/l5ifBLbKOcG3DeHfnz8vQ+OWtFa4bLkK4xpVlZmSuwDgKGXuTrJzZFjGMKHADfghQ4dx t/8FrEkdabC6Y5KgbHT+2YmwYIi3PIg0ZQ5PawO3S4ugE+nBh1smfu0RwAOTZRucTPdbccx3j yiqZ7YARkwEOhuANzuifQhFmPlLfm81XjDrF7/SZVOYG9H2yfQCDSe6bFF4w/5sPJHnV9mJxu FV+McuHg+5q+1ZhKlN0Q5EXpzq5xYZUldVw3eL+8d6/71YwotdxxbyWnCpmn7/6CtRDPrFR82 tgEMtEk7Xv/6JDuJB2flRI6Qn0AakacWku49M9pCoMwHNJJj2VMKV7TjZLc+KoohXoJmgTr/U iNbgUNJURZPMpz4G3DfnWRzRHN4PuvKxk6pq2YC57+4nsI7Ap5MD920U2yQdQ7B6KOZqNYbX5 +PPD0Y6YmoFtHVVJ9ZGKjQIRY7FSv77dEBzO8fTFUY8i0c4QvnIoqHeemriiyAXqqnxyUCPMG sd8b9+J+2cchCgsooFUCxiz+8OU/in1uMeDCH3oEci7IQCzak/Djdp+Wlz2lhx4UwM9fuPee8 tw/xauBa4+R/+J/rvOfqs8oco77pge2GG4f4l3lmNL9aJbzO7ztLQwKgpnyknmKQBcWYDl4l0 LI0Jc0B79mopO9iaJXw5+6qsTy9+DJwc1B/IJj+x4qT0M9CoG1zubv9FAtLpFUxXZq1DN7918 lGwLG3nNeqL0eLXHe7DNW8C3RbRaenvEgI3GabXuCu89LiHT6IoAlutSafSAZgaUhVHrXqGL X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 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:118751 Archived-At: On Sun, 25 Nov 2018 22:35:33 +0900 Jean-Christophe Helary wrote: > (beginner warning) > > I'm trying to automate the creation of html templates to avoid link mistakes and I wrote this code today: > > (defun dailyIndex (myDate) [...] > (write-region (dailyIndex) nil "~/Desktop/index.html")) > > When run interactively, I always get a "wrong number of arguments" > error. When I evaluate the internal expressions one by one, I never > get this. I have no idea what is going on... 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)? Steve Berman