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: Wed, 17 Oct 2007 14:05:13 -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 1192644367 8160 80.91.229.12 (17 Oct 2007 18:06:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2007 18:06:07 +0000 (UTC) Cc: lekktu@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 17 20:06:06 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 1IiDGs-00037U-Om for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2007 20:05:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiDGl-00054r-LI for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2007 14:05:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiDGi-00054W-Qh for emacs-devel@gnu.org; Wed, 17 Oct 2007 14:05:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiDGh-000543-G5 for emacs-devel@gnu.org; Wed, 17 Oct 2007 14:05:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiDGh-000540-6k for emacs-devel@gnu.org; Wed, 17 Oct 2007 14:05:19 -0400 Original-Received: from tomts10.bellnexxia.net ([209.226.175.54] helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiDGd-0006yw-5T; Wed, 17 Oct 2007 14:05:15 -0400 Original-Received: from pastel.home ([74.12.207.168]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071017180514.KLPU1733.tomts10-srv.bellnexxia.net@pastel.home>; Wed, 17 Oct 2007 14:05:14 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id AF30188BA; Wed, 17 Oct 2007 14:05:13 -0400 (EDT) In-Reply-To: <2bfd4e060710171029g30a62313naf31c5363d85d6ca@mail.gmail.com> (Stephen J. Turnbull's message of "Wed\, 17 Oct 2007 10\:29\:15 -0700") 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:81079 Archived-At: > FWIW, let me remind you that XEmacs has specifiers, which allow rather > flexible mix and match of buffer-local, window-local, and frame-local > properties. > The point is that specifiers have a separate API, no unmarked magic. Yes, I don't know much about specifiers, but indeed, I'd much rather have something different than just "variables". E.g. one of the benefits of "frame-local" variables over using `frame-parameter' is that the user-code doesn't have to know that the data is local to frames. So if we later decide to make it terminal-local or keyboard-local, or window-local the same code will work fine. So using a new function (get-local-data SYMBOL) we could take care of such problems. I suspect that is indeed what XEmacs's "specifiers" are for. Stefan