From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Tables and Latex "Wrong-number-of-arguments" error Date: Mon, 09 Mar 2009 21:58:49 -0400 Message-ID: <8399.1236650329@gamaville.dokosmarshall.org> References: <8aca08a00903041048g7318ec54v904b984a50daf4c7@mail.gmail.com> <30B609E1-98D5-4A78-9A20-FCB803263DC7@uva.nl> <8aca08a00903091315r12623c88r3c50f2ef6c7aa8bf@mail.gmail.com> <11073.1236637352@alphaville.usa.hp.com> <8aca08a00903091623o63eb296cjb9ff20338f6054d5@mail.gmail.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgrFv-0000TR-U5 for emacs-orgmode@gnu.org; Mon, 09 Mar 2009 21:59:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgrFt-0000R1-Ge for emacs-orgmode@gnu.org; Mon, 09 Mar 2009 21:59:42 -0400 Received: from [199.232.76.173] (port=33893 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgrFt-0000Qj-AH for emacs-orgmode@gnu.org; Mon, 09 Mar 2009 21:59:41 -0400 Received: from qmta09.emeryville.ca.mail.comcast.net ([76.96.30.96]:40576) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LgrFs-00021B-NE for emacs-orgmode@gnu.org; Mon, 09 Mar 2009 21:59:41 -0400 In-Reply-To: Message from andrew dasys of "Mon\, 09 Mar 2009 19\:23\:35 EDT." <8aca08a00903091623o63eb296cjb9ff20338f6054d5@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: andrew dasys Cc: emacs-orgmode@gnu.org andrew dasys wrote: > Nick, > thank you for looking at this. > > I am running Emacs 21.4.1 Nothing bleeding edge here. > > The help for split-string looks reasonable  (compiled Lisp comes from "subr" ....) (complete output attached) > ... > split-string is a compiled Lisp function in `subr'. > (split-string STRING &optional SEPARATORS) > > Splits STRING into substrings where there are matches for SEPARATORS. > Each match for SEPARATORS is a splitting point. > The substrings between the splitting points are made into a list > which is returned. > If SEPARATORS is absent, it defaults to "[ \f\t\n\r\v]+". > > If there is match for SEPARATORS at the beginning of STRING, we do not > include a null substring for that. Likewise, if there is a match > at the end of STRING, we don't include a null substring for that. > > Modifies the match data; use `save-match-data' if necessary. I think that explains it: split-string takes one mandatory and two optional arguments (separator regexp and an omit-nulls boolean) in emacs-22/23; but only *one* optional argument in emacs-21 (the separator arg). The org latex-exporting code calls it with two optional arguments and that makes the emacs-21 implementation of split-string blow up. I just did an experiment: in my emacs-23, I called split-string with one mandatory and *three* more arguments: (split-string "foo bar baz" "\n" t t) and I got Debugger entered--Lisp error: (wrong-number-of-arguments #[(string &optional separators omit-nulls) "ƒ