From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Wrong number of arguments: setq, 1 Date: Fri, 11 Dec 2015 14:48:39 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7Tgu-0001Qp-M9 for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 14:49:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7Tgt-0001wt-NO for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 14:49:20 -0500 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:35353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7Tgt-0001wp-Is for emacs-orgmode@gnu.org; Fri, 11 Dec 2015 14:49:19 -0500 Received: by qkfb125 with SMTP id b125so54462293qkf.2 for ; Fri, 11 Dec 2015 11:49:19 -0800 (PST) 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-org list Hi, I needed to make these changes locally to make any kind of org export (text, html, latex) work. diff --git a/lisp/ox.el b/lisp/ox.el index 2908fed..40c51cb 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -1779,7 +1779,7 @@ INFO is a plist holding export options." ;; If FILETAGS contains a select tag, every headline or ;; inlinetask is returned. (org-element-map data '(headline inlinetask) #'identity) - (letrec ((selected-trees) + (letrec ((selected-trees nil) (walk-data (lambda (data genealogy) (let ((type (org-element-type data))) @@ -2715,7 +2715,7 @@ DATA is the parse tree to traverse. INFO is the plist holding export info. Also set `:ignore-list' in INFO to a list of objects which should be ignored during export, but not removed from tree." - (letrec ((ignore) + (letrec ((ignore nil) ;; First find trees containing a select tag, if any. (selected (org-export--selected-trees data info)) (walk-data @@ -3760,8 +3760,8 @@ INFO is a plist containing export state. By default, as soon as a new footnote reference is encountered, FUNCTION is called onto its definition. However, if BODY-FIRST is non-nil, this step is delayed until the end of the process." - (letrec ((definitions) - (seen-refs) + (letrec ((definitions nil) + (seen-refs nil) (search-ref (lambda (data delayp) ;; Search footnote references through DATA, filling Without these fixes, I get an error like: Wrong number of arguments: setq, 1 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? 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. ./configure options: --prefix=/home/kmodi/usr_local/apps/6/emacs/emacs-25 'CPPFLAGS=-fgnu89-inline -I/home/kmodi/usr_local/6/include -I/usr/include/freetype2 -I/usr/include' 'CFLAGS=-ggdb3 -O0' 'CXXFLAGS=-ggdb3 -O0' 'LDFLAGS=-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64 -ggdb3' Features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 -- Kaushal Modi