From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: adding namespaces to emacs-lisp (better elisp?) Date: Fri, 26 Jul 2013 23:33:23 +0100 Message-ID: <87d2q50x58.fsf@ferrier.me.uk> References: <874nbh2z3y.fsf@ferrier.me.uk> <871u6l2ral.fsf@ferrier.me.uk> <87siz116zo.fsf@ferrier.me.uk> <87mwp90zgi.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374878014 13783 80.91.229.3 (26 Jul 2013 22:33:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Jul 2013 22:33:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 27 00:33:35 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V2qZr-0007tZ-9m for ged-emacs-devel@m.gmane.org; Sat, 27 Jul 2013 00:33:35 +0200 Original-Received: from localhost ([::1]:39032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2qZq-000309-De for ged-emacs-devel@m.gmane.org; Fri, 26 Jul 2013 18:33:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2qZl-0002zv-1P for emacs-devel@gnu.org; Fri, 26 Jul 2013 18:33:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2qZi-0005PS-Eb for emacs-devel@gnu.org; Fri, 26 Jul 2013 18:33:28 -0400 Original-Received: from static.17.66.46.78.clients.your-server.de ([78.46.66.17]:45083 helo=po1.ferrier.me.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2qZi-0005P8-7i for emacs-devel@gnu.org; Fri, 26 Jul 2013 18:33:26 -0400 Original-Received: from nferrier-Dell-System-XPS-L322X (140.35.155.90.in-addr.arpa [90.155.35.140]) by po1.ferrier.me.uk (Postfix) with ESMTP id 50D57AC00F7; Sat, 27 Jul 2013 00:36:39 +0200 (CEST) Original-Received: from nics-xps (localhost [127.0.0.1]) by nferrier-Dell-System-XPS-L322X (Postfix) with ESMTP id D330A8C0508; Fri, 26 Jul 2013 23:33:23 +0100 (BST) In-Reply-To: (Stefan Monnier's message of "Fri, 26 Jul 2013 18:21:54 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 78.46.66.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162184 Archived-At: Stefan Monnier writes: >> If a namespace package calls intern the symbol is interned in the >> private obarray. > > I'm not sure how you could do that and neither am I sure that would > preserve backward compatibility. So without more details of how that > would work, it sounds like wishful thinking to me. This is the core of my proposal. The guts of intern need to be altered to be aware of when it is being called in a packaged context. I am currently expecting to be able to do this with a file local variable. intern can then do it's lookup/add thing with the global/specific lookup instead of just the global. Nic