From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: question about frame local variable Date: Sun, 26 Oct 2003 06:46:55 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310250049.JAA12659@etlken.m17n.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1067169388 6156 80.91.224.253 (26 Oct 2003 11:56:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Oct 2003 11:56:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Oct 26 12:56:26 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADjVR-0003Dp-00 for ; Sun, 26 Oct 2003 12:56:25 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADjVR-0002DF-00 for ; Sun, 26 Oct 2003 12:56:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ADjUm-0000BA-Qy for emacs-devel@quimby.gnus.org; Sun, 26 Oct 2003 06:55:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ADjS0-0008En-D9 for emacs-devel@gnu.org; Sun, 26 Oct 2003 06:52:52 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ADjR5-0007mA-9z for emacs-devel@gnu.org; Sun, 26 Oct 2003 06:52:26 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ADjR1-0007hr-V1 for emacs-devel@gnu.org; Sun, 26 Oct 2003 06:51:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1ADjMF-0005OQ-HM; Sun, 26 Oct 2003 06:46:55 -0500 Original-To: Kenichi Handa In-reply-to: <200310250049.JAA12659@etlken.m17n.org> (message from Kenichi Handa on Sat, 25 Oct 2003 09:49:47 +0900 (JST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17435 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17435 It seems that we need the attached patch to make a code like this (allow scalable fonts only for a specific frame) work well. (defun make-frame-allowing-scalable-fonts () (make-variable-frame-local 'scalable-fonts-allowed) (let ((frame (make-frame '((name . "SCALABLE"))))) (modify-frame-parameters frame '((scalable-fonts-allowed . t))) frame)) The patch accesses the value of `scalable-fonts-allowed' not directly by Vscalable_fonts_allowed but via: is there a bug in handling frame-local bindings for variables forwarded to C vars? if so, can we fix that bug?