[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unwind-protect for lexical binding
From: |
Stefan Monnier |
Subject: |
Re: unwind-protect for lexical binding |
Date: |
Tue, 11 Mar 2014 13:21:39 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> I propose a patch for Emacs 24.3 that implements a new byte code for
> unwind-protect which is more friendly for lexical scope.
> 100 lex-unwind-protect <address> ------o
> 103 {protection body} |
> ... ................. |
> 176 byte-return |
> 177 {protected-form} <------------------o
> ... ..................
> 217 byte-unbind 1
> ... ..................
Have you looked at the trunk version of bytecode.c ?
I added some byte-codes for the same problem a few months ago (to make
the byte-compiler use them, set byte-compile--use-old-handlers to nil).
Stefan