From: Nick Dokos <nicholas.dokos@hp.com>
To: andrew dasys <adasys@objectivity.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Tables and Latex "Wrong-number-of-arguments" error
Date: Mon, 09 Mar 2009 21:58:49 -0400 [thread overview]
Message-ID: <8399.1236650329@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from andrew dasys <adasys@objectivity.ca> of "Mon\, 09 Mar 2009 19\:23\:35 EDT." <8aca08a00903091623o63eb296cjb9ff20338f6054d5@mail.gmail.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1535 bytes --]
andrew dasys <adasys@objectivity.ca> 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) "\b\b
next prev parent reply other threads:[~2009-03-10 1:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-04 18:48 Tables and Latex "Wrong-number-of-arguments" error andrew dasys
2009-03-05 14:28 ` Carsten Dominik
2009-03-09 20:15 ` andrew dasys
2009-03-09 22:22 ` Nick Dokos
2009-03-09 22:42 ` latex exporting strangeness [was: Re: Tables and Latex "Wrong-number-of-arguments" error] Nick Dokos
2009-03-09 23:38 ` andrew dasys
2009-03-10 2:01 ` Nick Dokos
2009-03-09 23:23 ` Tables and Latex "Wrong-number-of-arguments" error andrew dasys
2009-03-10 1:58 ` Nick Dokos [this message]
2009-03-10 2:12 ` Nick Dokos
2009-03-10 5:36 ` Carsten Dominik
2009-03-10 13:12 ` andrew dasys
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8399.1236650329@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=adasys@objectivity.ca \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.