From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6203: Frame-local variables break let-binding Date: Mon, 17 May 2010 15:48:07 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274126283 24442 80.91.229.12 (17 May 2010 19:58:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 19:58:03 +0000 (UTC) Cc: 6203@debbugs.gnu.org To: Nathan Weizenbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 17 21:58:01 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OE6Rr-0004x9-F9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 May 2010 21:57:59 +0200 Original-Received: from localhost ([127.0.0.1]:60600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE6Rq-0003K6-Om for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 May 2010 15:57:58 -0400 Original-Received: from [140.186.70.92] (port=33706 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE6Qt-0002qu-Q0 for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 15:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE6Qo-0005pM-Gs for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 15:56:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33346) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE6Qo-0005pI-Dk for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 15:56:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OE6JC-0006l1-Nm; Mon, 17 May 2010 15:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 May 2010 19:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6203 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6203-submit@debbugs.gnu.org id=B6203.127412569525949 (code B ref 6203); Mon, 17 May 2010 19:49:02 +0000 Original-Received: (at 6203) by debbugs.gnu.org; 17 May 2010 19:48:15 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE6IQ-0006kS-6S for submit@debbugs.gnu.org; Mon, 17 May 2010 15:48:14 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE6IO-0006kN-DJ for 6203@debbugs.gnu.org; Mon, 17 May 2010 15:48:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAIo68UtMCpz0/2dsb2JhbACde3K9e4UQBIwv X-IronPort-AV: E=Sophos;i="4.53,249,1272859200"; d="scan'208";a="64402366" Original-Received: from 76-10-156-244.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.244]) by ironport2-out.pppoe.ca with ESMTP; 17 May 2010 15:48:07 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 556DF8064; Mon, 17 May 2010 15:48:07 -0400 (EDT) In-Reply-To: (Nathan Weizenbaum's message of "Mon, 17 May 2010 10:12:47 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 17 May 2010 15:49:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37001 Archived-At: > 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