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: Tue, 18 May 2010 14:32:43 -0700	[thread overview]
Message-ID: <AANLkTilI7rlfCZ2onuBnE6dNJ7GNoLL0_JCvwkcymS1V@mail.gmail.com> (raw)
In-Reply-To: <jwviq6lut8u.fsf-monnier+emacs@gnu.org>

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

letf and setf are okay as work-arounds, I suppose.

The package I use these for is
http://github.com/nex3/perspective-el/blob/master/perspective.el. Each frame
keeps track of a separate set of workspaces, as well as various other useful
variables (the current workspace, previous workspace, etc.).

On Tue, May 18, 2010 at 8:29 AM, Stefan Monnier <monnier@iro.umontreal.ca>wrote:

> > But frame-parameters have to be manually managed with frame-parameter,
> no?
>
> Sounds obvious, doesn't it?
>
> > 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'.
>
> No, it really doesn't seem particularly annoying:
>
>   (require 'cl)
>   (letf (((frame-parameter <foo>) 'newvalue)) <blabla>)
>
> the same holds for symbol properties, process properties, window
> parameters, terminal parameters, ...
>
> > Are there at least any plans for a nicer API for working with what used
> to
> > be frame-local variables?
>
> BTW, since frame-parameters have been very rarely used and you seem to
> use them "extensively", I'm curious: what do you use them for
> (i.e. what kind of data do you keep there, and why do you need to
> let-(re)bind it)?
>
>
>        Stefan
>

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

  reply	other threads:[~2010-05-18 21:32 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
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 [this message]
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=AANLkTilI7rlfCZ2onuBnE6dNJ7GNoLL0_JCvwkcymS1V@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).