Henrik Frisk | 30 Apr 10:44

Re: sortm arguments


> > `let' bindings can have only one value-form: cond, ((= 1 arg) (quote
> > (-textfield subject -limit 0))), ((= 2 arg) (quote (-textfield from
> > -limit 0)))
> 
> I just typed in the code so typos were expected :-). Learning Emacs Lisp
> involves using C-h f (as in `C-h f let RET' which *might* have exposed a
> little light), and the Emacs Lisp manual `C-h i g (elisp) RET' which
> with its examples would have finished the job.
> 
Excellent! This is like when I 10 years ago realized I could get
documentation on C functions on the command line! Metainformation is
more important than information...

> I missed a couple of parens (shown with the non-functional characters []
> for emphasis below).
> 
I realized it had something to do with enclosing the arguments to 'let'
but I still don't understand why it's not enough with *one*
parenthesis. I guess I should RTFM... :-)

>      (let [(mh-sortm-args (cond ((= 1 1)
>                                 '(-textfield subject -limit 0))
>                                ((= 2 2)
>                                 '(-textfield from -limit 0))))]
>        (mh-sort-folder 4))

Anyway, thanks a lot for the help.

/Henrik

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

Gmane