emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unwind-protect not cleaning up?


From: Jambunathan K
Subject: Re: unwind-protect not cleaning up?
Date: Sun, 01 Jul 2012 23:31:13 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (windows-nt)

> [CONTEXT SWITCH]
> I also tried comparing `condition-case' with `unwind-protect'.
>
>      (condition-case err
>        (error "Forced error")
>        ((debug error) ;; ASSIGNMENT TO THE READER: add `quit' to this
>                     ;; list and see the behaviour on C-g with various
>                     ;; values of `debug-on-quit'.  Particularly note
>                     ;; whether or not the handler is called.
>       (message "Released resources")))
>
> With `debug' added to the list and `debug-on-error' set to `t', a
> developer can examine the stacktrace and also trigger the cleanup with a
> `c'.  In other words, the cleanup happens irrespective of the value of
> `debug-on-error'.  (Compare this behaviour with C-g and `debug-on-quit',
> search for ADDITIONAL NOTE above)

This paragraph is not clear even to me (the original author).  Let me
gather myself and articulate what I am trying to accomplish separately.

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]