From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: frame-local variables weirdness Date: Thu, 11 Oct 2007 16:37:34 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1192113474 9202 80.91.229.12 (11 Oct 2007 14:37:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 14:37:54 +0000 (UTC) Cc: Emacs Devel To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 11 16:37:53 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IfzAa-0007lV-86 for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 16:37:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfzAU-0003Oa-6h for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 10:37:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfzAQ-0003NA-Mo for emacs-devel@gnu.org; Thu, 11 Oct 2007 10:37:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfzAO-0003L7-Am for emacs-devel@gnu.org; Thu, 11 Oct 2007 10:37:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfzAN-0003Kn-O4 for emacs-devel@gnu.org; Thu, 11 Oct 2007 10:37:35 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfzAN-0003Oy-G4 for emacs-devel@gnu.org; Thu, 11 Oct 2007 10:37:35 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s7so514750wxc for ; Thu, 11 Oct 2007 07:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7sPkXbm/HYAuhQ5lYu7d4YcFyGbWRXHxTAPirZBWgEQ=; b=HMnfTbvd7T72aAg2UU1oAibcB9Ri4rViXP04qvDMfglUN3olo31v1uRCh6ge8CEuFiqMO0hx1gl/mzv4AbQOE1IlNRZSirP7Dy53nJVaAOP19PcrTCyO3iNbKVad5OI1gYxK6BDz/WdovDiTD7Cb61118bJpC3FssuWjZmMNPwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AfZluqyuUZE+VBbfhxHBZTe0O/Sqb2c+KhUgD88PZQOZY2lJaz8HRiGAksLI5Pc0DUAFJvKN6aQTGuext5bxyFaHAjpm6m/WBeOV1ApaG9wYYe0n2IyQy6i3w6WAGCtBDz2q1JcOEmjzHD7uK4tgaJD7QBDs6tenrn+A13B652g= Original-Received: by 10.90.73.7 with SMTP id v7mr3034923aga.1192113454897; Thu, 11 Oct 2007 07:37:34 -0700 (PDT) Original-Received: by 10.90.103.8 with HTTP; Thu, 11 Oct 2007 07:37:34 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80620 Archived-At: On 10/11/07, Stefan Monnier wrote: > I'd much rather disallow variables that are both buffer-local and frame-local. I think the problem is between frame-local and automatically buffer-local variables, not just buffer-local ones. > What is the use-case? I don't have a use case, and I don't really care one way or the other, but they have been documented to work for a long time. From "Frame-Local Variables": Buffer-local bindings take precedence over frame-local bindings. Thus, consider a variable `foo': if the current buffer has a buffer-local binding for `foo', that binding is active; otherwise, if the selected frame has a frame-local binding for `foo', that binding is active; otherwise, the default binding of `foo' is active. And they do work, if swap_in_symval_forwarding is not called before `make-variable-buffer-local'. How do you propose disallowing them? By fixing the documentation, or are you saying that setting a variable to be both will throw an error? Juanma