From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Wrong number of arguments: setq, 1 Date: Fri, 11 Dec 2015 16:19:21 -0500 Message-ID: <87a8pgk7ja.fsf@alphaville.usersys.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7V6O-0004XT-EM for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 16:19:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7V6J-0005k9-E8 for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 16:19:44 -0500 Received: from plane.gmane.org ([80.91.229.3]:42004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7V6J-0005k4-7T for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 16:19:39 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a7V6F-00038f-G7 for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 22:19:35 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Dec 2015 22:19:35 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Dec 2015 22:19:35 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Kaushal Modi writes: > ... > Without these fixes, I get an error like: Wrong number of arguments: setq, 1 > I don't. Version info: Org-mode version 8.3.2 (release_8.3.2-380-g64aee4 @ /home/nick/elisp/org-mode/lisp/) GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.15) of 2015-08-16 on alphaville.usersys.redhat.com > I am not familiar with letrec but for let statements, if I want to set > a let-bound variable X's value to nil, I would do, > > (let (X) ..) > > or > > (let ((X nil)) ..) > > But NOT (let ((X)) ..) (Note the parentheses count). > > > Do the same rules not apply to letrec? They do not: letrec takes a list, each element of which is a list (SYMBOL VALUEFORM) - but afaik, an empty VALUEFORM sets the SYMBOL to nil. let takes a VARLIST, each element of which is a symbol *or* a list (SYMBOL VALUEFORM). See their docstrings. > > Here is my org-version: > > Org-mode version 8.3.2 (release_8.3.2-380-g64aee4 @ > /home/kmodi/usr_local/apps/6/emacs/emacs-25/share/emacs/site-lisp/org/) > > Here is my emacs build info (emacs-25 branch): > > Emacs version: GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ > Version 2.24.23) > of 2015-12-10, built using commit d75849e937af0ecbcdc7bf621aa9bcd43aa75df4. > My org is the same as yours, but my emacs is a few months old: maybe some recent change screwed up something. -- Nick