From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gerd.moellmann@t-online.de (Gerd Moellmann) Newsgroups: gmane.emacs.devel Subject: Re: question about frame local variable Date: 30 Oct 2003 10:33:03 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <86k76njcj4.fsf@gerd.free-bsd.org> References: <200310250049.JAA12659@etlken.m17n.org> <200310280803.RAA05883@etlken.m17n.org> <200310300135.KAA09225@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067506597 16133 80.91.224.253 (30 Oct 2003 09:36:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2003 09:36:37 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Oct 30 10:36:34 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 1AF9EI-0005cO-00 for ; Thu, 30 Oct 2003 10:36:34 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AF9EI-0001q9-00 for ; Thu, 30 Oct 2003 10:36:34 +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 1AF9CZ-0006Y9-Hr for emacs-devel@quimby.gnus.org; Thu, 30 Oct 2003 04:34:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AF9CS-0006Y1-Hz for emacs-devel@gnu.org; Thu, 30 Oct 2003 04:34:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AF9Bw-0006BV-LI for emacs-devel@gnu.org; Thu, 30 Oct 2003 04:34:39 -0500 Original-Received: from [194.25.134.20] (helo=mailout08.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AF9BP-0005fV-AI; Thu, 30 Oct 2003 04:33:35 -0500 Original-Received: from fwd11.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1AF9BI-0008LD-0C; Thu, 30 Oct 2003 10:33:28 +0100 Original-Received: from gerd.free-bsd.org (r1pA0OZQgeX03tLDkSTSuhB2gs+L0Q5zKo2HodIaAsf14tdUWN-XUP@[80.130.126.102]) by fwd11.sul.t-online.com with esmtp id 1AF9B3-1At3k80; Thu, 30 Oct 2003 10:33:13 +0100 Original-Received: from gerd.free-bsd.org (localhost [127.0.0.1]) by gerd.free-bsd.org (8.12.9p2/8.12.9) with ESMTP id h9U9X57W000343; Thu, 30 Oct 2003 10:33:05 +0100 (CET) (envelope-from gerd.moellmann@t-online.de) Original-Received: (from gerd@localhost) by gerd.free-bsd.org (8.12.9p2/8.12.9/Submit) id h9U9X3Cl000340; Thu, 30 Oct 2003 10:33:03 +0100 (CET) (envelope-from gerd.moellmann@t-online.de) X-Authentication-Warning: gerd.free-bsd.org: gerd set sender to gerd.moellmann@t-online.de using -f Original-To: Kenichi Handa In-Reply-To: <200310300135.KAA09225@etlken.m17n.org> Original-Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Seen: false X-ID: r1pA0OZQgeX03tLDkSTSuhB2gs+L0Q5zKo2HodIaAsf14tdUWN-XUP 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:17611 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17611 Kenichi Handa writes: > CCed to Gerd. > > In article <200310280803.RAA05883@etlken.m17n.org>, Kenichi Handa writes: > > Ideally, I think selecte-frame should change the value of > > Vscalable_fonts_allowed when that has frame local binding. > > Then, C code can simply refer to this variable to get the > > current value. > > I found that the above is not enough. It seems that the > display engine doesn't issue select-frame; i.e. provided > that there are two frames A and B, there is a case that the > display engine redisplays A while the selected frame is B. > > It means that even if we make such variables frame local > that affect the redisplaying (font-selection, etc), any > frame local bindings are just ignored. > > Gerd, do you remember this matter? Is my analysis correct? I think so; it matches what I remember. Local bindings are not supported for all redisplay variables. AFAIR, that has always been the case and isn't new in 21. Where it is supported, I think redisplay looks at frame parameters. (BTW, calling select-frame in redisplay would almost certainly not be the right thing to do, which probably gets obvious when taking a look at what that function does.)