Re: Strange formatting-related behaviour...

Hannu Koivisto <[email protected]> Tue, 20 Aug 2002 21:54:52 +0300
Newsgroups gmane.lisp.ilisp.general
Message-ID <[email protected]>
Eric Moncrieff <[email protected]> writes:

> (setq foo '(
> ( 1 2 4 )
> ( 4 5 6 )
> ))
>
> and evaluate the sexp with C-z e, I get an error:
>
> *** - EVAL: 4 is not a function name
>
> However, if I fix up the formatting (NB, no different
> characters:
>
> (setq foo '(( 1 2 4 )
>             ( 4 5 6 )))
>
> it works fine.
...
> I think somehow the code for grabbing sexps must be
> broken, because it also can't figure out when there are
> unbalanced parens in the unformatted code.
>
> Is there a switch I can throw, or other workaround/fix?

This is not specific to ILISP and it is documented behaviour (see
the node Left Margin Paren in the Emacs manual).  The workaround is
to indent your code properly.

-- 
Hannu
Please don't send copies of list mail


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390