From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: obarray Date: Sun, 15 Dec 2013 01:04:31 -0500 Organization: A noiseless patient Spider Message-ID: References: <87haabq6gl.fsf@nl106-137-194.student.uu.se> <87bo0irj13.fsf@nl106-137-194.student.uu.se> <87wqj6pva0.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1387087514 6452 80.91.229.3 (15 Dec 2013 06:05:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2013 06:05:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 15 07:05:21 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Vs4pM-0007Og-Ih for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 07:05:20 +0100 Original-Received: from localhost ([::1]:49848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs4pM-0004Fh-0E for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 01:05:20 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="4942"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LVJTGjnoGDyaeKu9SIR6F" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:AwO4Ztl10/dH2sT/N/R7/6GJgd4= Original-Xref: usenet.stanford.edu gnu.emacs.help:202742 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95011 Archived-At: In article <87wqj6pva0.fsf@nl106-137-194.student.uu.se>, Emanuel Berg wrote: > Barry Margolin writes: > > > Values are unrelated to whether a symbol is in the > > obarray. An uninterned symbol can have a value. > > OK. > > > (setq uninterned-symbol (make-symbol "foo")) > > (setf (symbol-value uninterned-symbol) 'bar) > > That looks backward. It looks like you are setting the > value (i.e. data) to 'bar. But `symbol-value' returns > not only the data for practical purposes, but the > *place* of the data (and those are the same)? > > > This symbol "foo" won't be in the obarray, but it > > still has a value. > > To me, with the defun I wrote in the beginning of this > thread, I *do* get uninterned-symbol, and that should > only look in obarray - also, the value seems to be not > 'bar, but "foo" (?). uninterned-symbol is an interned symbol. Its *value* is the symbol foo, which is not interned; foo shouldn't show up in the function you wrote earlier in the thread; unless you happen to have interned some other symbol by that name -- it would probably be clearer if I'd done: (setq uninterned-symbol (make-symbol "something-you-have-never-typed")) Now try your function and see if something-you-have-never-typed shows up. The value of the symbol something-you-have-never-typed would then be bar. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***