From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Sergey Mozgovoy <egnartsms@gmail.com>
Cc: Emacs-devel@gnu.org
Subject: Re: unwind-protect for lexical binding
Date: Tue, 11 Mar 2014 13:21:39 -0400 [thread overview]
Message-ID: <jwvbnxcd54d.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <1394509379969-316523.post@n5.nabble.com> (Sergey Mozgovoy's message of "Mon, 10 Mar 2014 20:42:59 -0700 (PDT)")
> 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
next prev parent reply other threads:[~2014-03-11 17:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 3:42 unwind-protect for lexical binding Sergey Mozgovoy
2014-03-11 17:21 ` Stefan Monnier [this message]
2014-03-11 20:09 ` Sergey Mozgovoy
2014-03-12 13:20 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvbnxcd54d.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=Emacs-devel@gnu.org \
--cc=egnartsms@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.