From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: frame-local variables weirdness Date: Sat, 20 Oct 2007 09:15:12 -0400 Message-ID: References: <858x65lh4m.fsf@lola.goethe.zz> <2bfd4e060710171029g30a62313naf31c5363d85d6ca@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192886148 27462 80.91.229.12 (20 Oct 2007 13:15:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 13:15:48 +0000 (UTC) Cc: lekktu@gmail.com, stephen@xemacs.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 20 15:15:43 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 1IjEAt-0002sY-LH for ged-emacs-devel@m.gmane.org; Sat, 20 Oct 2007 15:15:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjEAm-00077P-3X for ged-emacs-devel@m.gmane.org; Sat, 20 Oct 2007 09:15:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjEAh-00076p-UL for emacs-devel@gnu.org; Sat, 20 Oct 2007 09:15:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjEAf-00076d-IO for emacs-devel@gnu.org; Sat, 20 Oct 2007 09:15:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjEAf-00076a-CM for emacs-devel@gnu.org; Sat, 20 Oct 2007 09:15:17 -0400 Original-Received: from tomts5-srv.bellnexxia.net ([209.226.175.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjEAb-0006pK-5m; Sat, 20 Oct 2007 09:15:13 -0400 Original-Received: from pastel.home ([74.12.207.168]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071020131512.NGRN17217.tomts5-srv.bellnexxia.net@pastel.home>; Sat, 20 Oct 2007 09:15:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 51C9E7FBA; Sat, 20 Oct 2007 09:15:12 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Fri\, 19 Oct 2007 23\:30\:09 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:81296 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. Could you expand on what you think makes it cleaner? The above also gives it different bindings in different contexts: the only difference is that it's not a variable any more, so you can't let-bind it. Stefan