From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#812: frame-local-variable documentation Date: Sat, 30 Aug 2008 18:56:55 -0400 Message-ID: References: Reply-To: Glenn Morris , 812@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220137686 876 80.91.229.12 (30 Aug 2008 23:08:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2008 23:08:06 +0000 (UTC) Cc: 812@emacsbugs.donarmstrong.com To: Nikolaj Schumacher Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 31 01:09:00 2008 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.50) id 1KZZYy-0007Do-3Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Aug 2008 01:09:00 +0200 Original-Received: from localhost ([127.0.0.1]:45426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZZXz-0005cb-Do for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Aug 2008 19:07:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZZXZ-0005Dv-AK for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2008 19:07:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZZXY-0005D0-QQ for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2008 19:07:32 -0400 Original-Received: from [199.232.76.173] (port=37057 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZZXY-0005Cv-DL for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2008 19:07:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54240) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KZZXX-0006wy-Rt for bug-gnu-emacs@gnu.org; Sat, 30 Aug 2008 19:07:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7UN7T7X018904; Sat, 30 Aug 2008 16:07:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7UN55kP017574; Sat, 30 Aug 2008 16:05:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 30 Aug 2008 23:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 812 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 812-submit@emacsbugs.donarmstrong.com id=B812.122013711314981 (code B ref 812); Sat, 30 Aug 2008 23:05:05 +0000 Original-Received: (at 812) by emacsbugs.donarmstrong.com; 30 Aug 2008 22:58:33 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7UMwUvK014975 for <812@emacsbugs.donarmstrong.com>; Sat, 30 Aug 2008 15:58:31 -0700 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KZZNI-0000sA-0R; Sat, 30 Aug 2008 18:56:56 -0400 X-Spook: global Kh-11 Bush Wired class struggle IDEA UFO Craig X-Ran: }b'OgjGQ(I@qBUgg|x<.M#-5UIyvuRMDeNf%T)Zuz&Z3H0!@qfIlq^2[s%]!|zcb*/5QoS X-Hue: yellow X-Attribution: GM In-Reply-To: (Nikolaj Schumacher's message of "Thu, 28 Aug 2008 23:23:21 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 30 Aug 2008 19:07:32 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:19920 Archived-At: Nikolaj Schumacher wrote: > As far as I can tell frame-local variables have been (or are about to > be) removed and currently don't work. They haven't been removed and will still be in 23.1, except: "Variables cannot be both buffer-local and frame-local any more." However, something seems broken. This works as it should: emacs -Q (setq foo 'bar) (make-variable-frame-local 'foo) ; [1] (set-frame-parameter nil 'foo t) foo ; -> t [2] (make-frame) foo ; -> bar in new frame, still t in old frame [3] If you add an extra evaluation of `foo' at point [1] (after making it frame local, but before adding a frame parameter), then at point [2] you get 'bar rather than t. After you make a new frame, it starts working (at [3]). > `modify-frame-parameters' still contains this paragraph: > >> The value of frame parameter FOO can also be accessed >> as a frame-local binding for the variable FOO, if you have >> enabled such bindings for that variable with >> `make-variable-frame-local'. > > That should be removed, I think. I mentioned it's obsolete. > `make-variable-frame-local' has this note: > >> This function is obsolete since 22.2; >> use a frame-parameter instead. I tweaked it.