bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#6203: Frame-local variables break let-binding


From: Nathan Weizenbaum
Subject: bug#6203: Frame-local variables break let-binding
Date: Mon, 17 May 2010 13:10:43 -0700

But frame-parameters have to be manually managed with frame-parameter, no? Even ignoring compatibility for user-facing configuration, it seems really annoying to have to call frame-parameter and set-frame-parameter all the time, especially if you're trying to simulate `let'.

Are there at least any plans for a nicer API for working with what used to be frame-local variables?

On Mon, May 17, 2010 at 12:48 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> This all raises the issue, though: what's the accepted replacement for
> frame-local variables,

frame-parameters

> and why are they deprecated in the first place?

Because OT1H they're very little used, and OTOH they're a pain in the
rear to support and maintain because of all kinds of corner cases, and
it'll only get better with the addition of concurrency and/or
lexical scoping.

> My package has rather a few of them, and it's very useful to be able
> to use them like variables.  I want to make them available for user
> customization, let-bind them, and use them without having to go
> through lots of manual frame-parameter rigamarole each time.  I would
> rather not break any user customizations using these variables.
> So what should I do?

Use frame-parameters.  Note that until Emacs-24 is released, that gives
you a fair bit of time to deal with it.


       Stefan


reply via email to

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