Re: Fwd: Making emacs like function documentation.

2015-08-04 Thread George Orais
This is really cool! even for the documentation can be embedded on the programming language itself.. or am I just a newbie? On Tuesday, August 4, 2015 1:36 PM, Manuel Cano wrote: Hi, Great. I need to learn a lot. Thank you. Manuel 2015-08-03 20:57 GMT+02:00 Rick Hanson : > > Why

Re: Fwd: Making emacs like function documentation.

2015-08-03 Thread Manuel Cano
Hi, Great. I need to learn a lot. Thank you. Manuel 2015-08-03 20:57 GMT+02:00 Rick Hanson : > > > Why not just this? > > > > > > (de thefunc (A B C) > > > "This is the help text" > > > (* A B C)) > > > > Unfortunately Rick's solution form doesn't work. > > It works for me just fine

Re: Fwd: Making emacs like function documentation.

2015-08-03 Thread Alexander Burger
On Mon, Aug 03, 2015 at 02:57:20PM -0400, Rick Hanson wrote: > It works for me just fine actually. Yes. And it keeps it simple! ;) > $ ./pil > : (de hola (Str) > "This is just a test." > (prinl "Hola " Str)) > -> hola > : (hola "Manuel") > Hola Manuel > -> "Manuel" > :

Re: Fwd: Making emacs like function documentation.

2015-08-03 Thread Rick Hanson
> > Why not just this? > > > > (de thefunc (A B C) > > "This is the help text" > > (* A B C)) > > Unfortunately Rick's solution form doesn't work. It works for me just fine actually. $ ./pil : (de hola (Str) "This is just a test." (prinl "Hola " Str)) -> hola : (hola

Re: Fwd: Making emacs like function documentation.

2015-08-02 Thread Manuel Cano
Hi, Ntch. I got everything wrong. Thank you very much for the lesson. I'm going to continue to learn. Thanks again. Manuel 2015-08-03 8:12 GMT+02:00 Alexander Burger : > Hi Manuel, > > > Unfortunately Rick's solution form doesn't work. May be when calling the > > function the first thing is

Re: Fwd: Making emacs like function documentation.

2015-08-02 Thread Alexander Burger
Hi Manuel, > Unfortunately Rick's solution form doesn't work. May be when calling the > function the first thing is a string? > This is what I'm trying: > > > (de *FuncList ()) Are you sure? This sets *FuncList to (NIL), not to NIL > (de defun1 F >(setq *FuncList (cons *FuncList (cons (ca

Re: Fwd: Making emacs like function documentation.

2015-08-02 Thread Manuel Cano
Hi, Unfortunately Rick's solution form doesn't work. May be when calling the function the first thing is a string? This is what I'm trying: (de *FuncList ()) (de defun1 F (setq *FuncList (cons *FuncList (cons (car F) (caddr F (def (car F) (cons (cadr F) (cadddr F))) ) (de defun2 P

Re: Fwd: Making emacs like function documentation.

2015-08-02 Thread Alexander Burger
Hi Rick, > Why not just this? > >(de thefunc (A B C) > > "This is the help text" > > (* A B C) ) Yes, perfect :) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Fwd: Making emacs like function documentation.

2015-08-02 Thread Rick Hanson
Why not just this? (de thefunc (A B C) "This is the help text" (* A B C) ) On Aug 2, 2015 9:54 AM, "Alexander Burger" wrote: > Hi Manuel, > > > I'm trying to create a function to define functions with a documentation > > string like emacs "defun". I'm trying something like this:

Re: Fwd: Making emacs like function documentation.

2015-08-02 Thread Alexander Burger
Hi Manuel, > I'm trying to create a function to define functions with a documentation > string like emacs "defun". I'm trying something like this: > > (de defun P > (def (car P) ... > > So the car of P is de function name, but it doesn't works as expected. You may try this: (de defun P

Fwd: Making emacs like function documentation.

2015-08-02 Thread Manuel Cano
(Sorry for the previous mail, it was incorrectly sent.) Hi, I'm trying to create a function to define functions with a documentation string like emacs "defun". I'm trying something like this: (de defun P (def (car P) ... So the car of P is de function name, but it doesn't works as expected.