Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - danil

#1
newLISP newS /
July 26, 2004, 01:03:29 AM
Thanks David



Lutz, it seems that correct way to enable newlisp syntax is to put next code in ~/.vimrc (assuming syntax was saved in newlisp.vim)

au BufNewFile,BufRead *.lsp,*.lisp setf newlisp
au BufNewFile,BufRead *.lsp,*.lisp vmap <F5> <F5>
au BufNewFile,BufRead *.lsp,*.lisp imap <F5> <ESC><F5>
au BufNewFile,BufRead *.lsp,*.lisp map <F5> :w! ~/.vim/lisp.src<CR>:!newlisp ~/.vim/lisp.src<CR>

Three other lines map F5 to save current vim buffer (or even visual selection) to certain file and load it into newlisp - very handy for testing, may be someone find it usefull too.



BTW, is it possible to get line numbers where newlisp fails? It is somewhat painfull to see something like "missing parenthesis : ")n" without any other hint.
#2
newLISP in the real world /
June 11, 2004, 07:24:13 AM
Ok (I'm using vim as all-purpose editor too).

So one should go through edit-quit-run cycle (or invoke edit from newlisp?). It seems that I simply need some practice to make less errors and to find them quickly. newlisp is so nicelly engineered that it's possible to memorize almost the whole library and it's the first lisp that don't seem allien to me :)
#3
newLISP in the real world /
June 10, 2004, 11:31:05 PM
Thanks, Lutz

Another question - how do folks develop moderate sized programs in newLisp, what environment are you using, etc? newlisp-tk is very handy when creating small snippets (I'm used to Smalltalk, but it's definitely overkill for scripting), but I found a bit bothering to gather these pieces together (although "save context" helps a lot). What are patterns here?
#4
newLISP in the real world / about file permissions
June 09, 2004, 12:00:41 AM
Hi, all and thanks Lutz for a great software.

I have a slightly funny behaviour of newlisp on FreeBSD - it creates files with execution flags. Is there any intention behind this or may be I'm doing something wrong?





%newlisp
newLISP v8.0.6 Copyright (c) 2004 Lutz Mueller. All rights reserved.

> (write-file "test" "test") (exit)
4%ls -l test
-rwxr-xr-x  1 danil  wheel  4  9 июн 10:50 test