unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Nathan Weizenbaum <nex342@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 6203@debbugs.gnu.org
Subject: bug#6203: Frame-local variables break let-binding
Date: Mon, 17 May 2010 10:12:47 -0700	[thread overview]
Message-ID: <AANLkTik0FRwNZK_vAPUoUUJ64dxq8RRTmqhoygUC2cU9@mail.gmail.com> (raw)
In-Reply-To: <jwv4oi6y7gf.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]

Sorry, the "%d" thing was a bug. It looks like the let-binding error was
introduced after my last checkout, though, so I guess that's deal with.

This all raises the issue, though: what's the accepted replacement for
frame-local variables, and why are they deprecated in the first place? 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?

On Mon, May 17, 2010 at 6:45 AM, Stefan Monnier <monnier@iro.umontreal.ca>wrote:

> > I've run into a bug with GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+
> > Version 2.16.1, checked out from the repo a week or so ago). Let-binding
> > frame-local variables doesn't work: although the let-bound value is
> correct
> > within the `let', it doesn't get reset after the `let'. To reproduce,
> just
> > run http://gist.github.com/403208.
>
> I definitely cannot reproduce the behavior you show on that page:
> The code stops at "(message "Before: %d" foo)" because foo has
> value nil at that point which is incompatible with the %d format.
> If I get rid of this bug, then I bump into the next error which is that
> `let' raises "Frame-local vars cannot be let-bound".
>
> Note that frame-local variables have been deprecated since Emacs-22.2,
> and I definitely intend to remove support for them (tho for Emacs-24.1,
> the plan is currently only to remove support for let-binding them).
>
>
>        Stefan
>

[-- Attachment #2: Type: text/html, Size: 2157 bytes --]

  reply	other threads:[~2010-05-17 17:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-16 22:18 bug#6203: Frame-local variables break let-binding Nathan Weizenbaum
2010-05-17 13:45 ` Stefan Monnier
2010-05-17 17:12   ` Nathan Weizenbaum [this message]
2010-05-17 19:48     ` Stefan Monnier
2010-05-17 20:10       ` Nathan Weizenbaum
2010-05-18 15:29         ` Stefan Monnier
2010-05-18 21:32           ` Nathan Weizenbaum
2010-05-18 22:42           ` Juri Linkov
2010-05-19  2:08             ` Stefan Monnier
     [not found]       ` <m3iq41trka.fsf@fleche.redhat.com>
     [not found]         ` <jwvhbjlkx0g.fsf-monnier+emacs@gnu.org>
2010-07-27 14:49           ` Tom Tromey

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTik0FRwNZK_vAPUoUUJ64dxq8RRTmqhoygUC2cU9@mail.gmail.com \
    --to=nex342@gmail.com \
    --cc=6203@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).