From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: frame-local variables weirdness Date: Fri, 19 Oct 2007 23:30:09 -0400 Message-ID: References: <858x65lh4m.fsf@lola.goethe.zz> <2bfd4e060710171029g30a62313naf31c5363d85d6ca@mail.gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1192851133 14924 80.91.229.12 (20 Oct 2007 03:32:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 03:32:13 +0000 (UTC) Cc: lekktu@gmail.com, stephen@xemacs.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 20 05:32:13 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 1Ij54J-0008Fo-FJ for ged-emacs-devel@m.gmane.org; Sat, 20 Oct 2007 05:32:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ij54B-0000Iz-UP for ged-emacs-devel@m.gmane.org; Fri, 19 Oct 2007 23:31:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ij52S-0007jO-Dt for emacs-devel@gnu.org; Fri, 19 Oct 2007 23:30:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ij52Q-0007iH-VC for emacs-devel@gnu.org; Fri, 19 Oct 2007 23:30:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ij52Q-0007iA-Nr for emacs-devel@gnu.org; Fri, 19 Oct 2007 23:30:10 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ij52Q-0004aK-Ge for emacs-devel@gnu.org; Fri, 19 Oct 2007 23:30:10 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Ij52P-0007WQ-TG; Fri, 19 Oct 2007 23:30:09 -0400 In-reply-to: (message from Stefan Monnier on Fri, 19 Oct 2007 09:56:06 -0400) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:81285 Archived-At: I'm suggesting we introduce a new concept which we could call "specifier" or "localizable quasi variable". We could create them with: (defconst new-interprogram-cut-function (make-specifier 'x-select-text)) Now new-interprogram-cut-function is a normal global variable (actually a constant: we will never `setq' it). Its value is a "specifier". Then we get get the value of this specifier with: (specifier-value new-interprogram-cut-function) What we have now, where the variable itself has different bindings in different contexts, is much cleaner.