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: adding namespaces to emacs-lisp (better elisp?) Date: Fri, 26 Jul 2013 20:51:18 -0400 Message-ID: References: <874nbh2z3y.fsf@ferrier.me.uk> <871u6l2ral.fsf@ferrier.me.uk> <87siz116zo.fsf@ferrier.me.uk> <87mwp90zgi.fsf@ferrier.me.uk> <87d2q50x58.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374887748 3219 80.91.229.3 (27 Jul 2013 01:15:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jul 2013 01:15:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nic Ferrier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 27 03:15:49 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 1V2t6r-0007Jl-4l for ged-emacs-devel@m.gmane.org; Sat, 27 Jul 2013 03:15:49 +0200 Original-Received: from localhost ([::1]:49576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2t6q-0001nY-D3 for ged-emacs-devel@m.gmane.org; Fri, 26 Jul 2013 21:15:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2t6i-0001nC-T8 for emacs-devel@gnu.org; Fri, 26 Jul 2013 21:15:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2sj9-0008TJ-8L for emacs-devel@gnu.org; Fri, 26 Jul 2013 20:51:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:59424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2sj9-0008Ss-2z for emacs-devel@gnu.org; Fri, 26 Jul 2013 20:51:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZPn/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFFpZPn/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="19944966" Original-Received: from 69-165-147-231.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.231]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 Jul 2013 20:51:12 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1E23062D9D; Fri, 26 Jul 2013 20:51:18 -0400 (EDT) In-Reply-To: <87d2q50x58.fsf@ferrier.me.uk> (Nic Ferrier's message of "Fri, 26 Jul 2013 23:33:23 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:162187 Archived-At: >>> 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. That's easy when the reader calls `intern', but I'm talking about when the Elisp code itself makes calls to `intern'. Stefan