[Top][All Lists]

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

Re: unwind-protect not cleaning up?

From: Óscar Fuentes
Subject: Re: unwind-protect not cleaning up?
Date: Sat, 30 Jun 2012 04:07:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Jambunathan K <address@hidden> writes:

> The snippet below is taken from (info "(elisp) Cleanups") with minor
> modifications.  Put it in a scratch buffer and C-x C-e it.  Once it is
> done, I am able to C-x b to YOU CANNOT KILL ME.
> (let ((buffer (get-buffer-create "YOU CANNOT KILL ME")))
>   (with-current-buffer buffer
>     (unwind-protect
>       (/ 1 0)
>       (kill-buffer buffer))))
> Comments...

Here the debugger pops up with

Debugger entered--Lisp error: (arith-error)
  /(1 0)
  (unwind-protect (/ 1 0) (kill-buffer buffer))

and then if I press `c' (for continuing) it goes away and there is no
trace left of the buffer previously created.

This looks correct to me. Do you see the debugger? Does the same thing
with emacs -Q ?

GNU Emacs (x86_64-unknown-linux-gnu, X toolkit) of 2012-03-11

reply via email to

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