I'm trying to set an exit hook for my sbcl environment. I want it to
run sb-ext:save-lisp-and-die with a default file every time it closes, but
I can't get the syntax to set it up right, or find any examples or docs
that I understand as explaining how to do this. What am I missing? My
initial attempt was
(setf sb-ext:*exit-hooks* '(#'(lambda () (sb-ext:save-lisp-and-die
"/My/home/last.core"))))
--
Dustin Kick
http://homepage.mac.com/mac_vieuxnez
I should have used
(setf sb-ext:*ext-hooks* (list (lambda () (sb-ext:save-lisp-and-die
"/My/home/some.core"))))
Dustin Kick<············@mac.com> wrote:
>
>
>
>I'm trying to set an exit hook for my sbcl environment. I want it to
>run sb-ext:save-lisp-and-die with a default file every time it closes, but
>I can't get the syntax to set it up right, or find any examples or docs
>that I understand as explaining how to do this. What am I missing? My
>initial attempt was
>(setf sb-ext:*exit-hooks* '(#'(lambda () (sb-ext:save-lisp-and-die
>"/My/home/last.core"))))
>--
>
>Dustin Kick
>http://homepage.mac.com/mac_vieuxnez
>
--
Dustin Kick
http://homepage.mac.com/mac_vieuxnez
Dustin Kick<············@mac.com> writes:
> I'm trying to set an exit hook for my sbcl environment. I want it to
> run sb-ext:save-lisp-and-die with a default file every time it closes, but
> I can't get the syntax to set it up right, or find any examples or docs
> that I understand as explaining how to do this. What am I missing? My
> initial attempt was
> (setf sb-ext:*exit-hooks* '(#'(lambda () (sb-ext:save-lisp-and-die
> "/My/home/last.core"))))
What is #' ?
What is (abc def) ?
What is (function def) ?
What is (lambda () (sb-ext:save-lisp-and-die "/My/home/last.core"))
--
__Pascal Bourguignon__
·························@anevia.com
http://www.anevia.com
Ah, yes, you're very helpful.
···@anevia.com (Pascal J. Bourguignon) wrote:
>
>
>Dustin Kick<············@mac.com> writes:
>
>> I'm trying to set an exit hook for my sbcl environment. I want it to
>> run sb-ext:save-lisp-and-die with a default file every time it closes, but
>> I can't get the syntax to set it up right, or find any examples or docs
>> that I understand as explaining how to do this. What am I missing? My
>> initial attempt was
>> (setf sb-ext:*exit-hooks* '(#'(lambda () (sb-ext:save-lisp-and-die
>> "/My/home/last.core"))))
>
>What is #' ?
>What is (abc def) ?
>What is (function def) ?
>What is (lambda () (sb-ext:save-lisp-and-die "/My/home/last.core"))
>
>--
>__Pascal Bourguignon__
>·························@anevia.com
>http://www.anevia.com
--
Dustin Kick
http://homepage.mac.com/mac_vieuxnez
Dustin Kick<············@mac.com> writes:
> I'm trying to set an exit hook for my sbcl environment. I want it to
> run sb-ext:save-lisp-and-die with a default file every time it closes, but
> I can't get the syntax to set it up right, or find any examples or docs
> that I understand as explaining how to do this. What am I missing? My
> initial attempt was
> (setf sb-ext:*exit-hooks* '(#'(lambda () (sb-ext:save-lisp-and-die
> "/My/home/last.core"))))
What is #' ?
What is (abc def) ?
What is (function def) ?
What does (function car) evaluate to ?
What is (lambda () (sb-ext:save-lisp-and-die "/My/home/last.core")) ?
What is (function (lambda () (sb-ext:save-lisp-and-die "/My/home/last.core")))
What is ' ?
What is (quote abc) ?
What does (quote abc) evaluate to ?
What does (quote (abc def)) evaluate to ?
What does (quote (function def)) evaluate to ?
What does (quote (function (lambda () (sb-ext:save-lisp-and-die "/My/home/last.core")))) evaluate to ?
--
__Pascal Bourguignon__
·························@anevia.com
http://www.anevia.com