Hi Lutz,
I realy have strange problems with newlisp ;-)
It seems that since release 8.5.6 when the /usr/share/newlisp/init.lsp
exists and also the $HOME/.init.lsp newlisp wont run and gives this error ->
"call stack overflow in function last : sys-info"
Get back on it when i found it..
- Norman -
call stack overflow in function last : sys-info
call stack overflow in function last : sys-info
-- (define? (Cornflakes))
Oke workaround...
lets make it ->
(constant (global '$HOME) (or (env "HOME") (env "USERPROFILE") (env "DOCUMENT_ROOT")))
(if (and $HOME (not (file? (append $HOME "/.init.lsp")))) (load (append $HOME "/.init.lsp")))
;; does only make sence when the init.lsp stays in /usr/share/newlisp
but then again this works too, adding a comment in init.lsp ->
;; remove these lines from the .init.lsp file when placed in $HOME
BUT !!!
now my system generates a Segmentation Fault when calling (edit edit)
and exiting from the editor (joe or vim)
> (edit defun)
symbol is protected in function define-macro : (defun _func-name _arguments)
> (edit edit)
...in vim
...:q!
Segmentation fault
lets make it ->
(constant (global '$HOME) (or (env "HOME") (env "USERPROFILE") (env "DOCUMENT_ROOT")))
(if (and $HOME (not (file? (append $HOME "/.init.lsp")))) (load (append $HOME "/.init.lsp")))
;; does only make sence when the init.lsp stays in /usr/share/newlisp
but then again this works too, adding a comment in init.lsp ->
;; remove these lines from the .init.lsp file when placed in $HOME
BUT !!!
now my system generates a Segmentation Fault when calling (edit edit)
and exiting from the editor (joe or vim)
> (edit defun)
symbol is protected in function define-macro : (defun _func-name _arguments)
> (edit edit)
...in vim
...:q!
Segmentation fault
-- (define? (Cornflakes))
Don't do:
(edit edit)
You will overwrite the 'edit' function while it is executing, the edit macro will overwrite itself! that will certainly crash the system ;)
To the first part of your question: if you have the same /usr/share/newlisp/init.lsp as your .init.lsp in your $HOME directory, then it will load itself recursevely until the stack overflows. So don't make them the same.
Lutz
(edit edit)
You will overwrite the 'edit' function while it is executing, the edit macro will overwrite itself! that will certainly crash the system ;)
To the first part of your question: if you have the same /usr/share/newlisp/init.lsp as your .init.lsp in your $HOME directory, then it will load itself recursevely until the stack overflows. So don't make them the same.
Lutz