From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "N. Raghavendra" Newsgroups: gmane.emacs.help Subject: Re: comparing symbols coming from gensym? Date: 24 Aug 2005 14:30:26 +0530 Organization: X-Organization Message-ID: <86y86rk8ut.fsf@riemann.mri.ernet.in> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1124877099 11809 80.91.229.2 (24 Aug 2005 09:51:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Aug 2005 09:51:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 24 11:51:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E7rug-0001eD-LT for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Aug 2005 11:51:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E7ryV-000178-Fq for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Aug 2005 05:55:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help X-Organization: Harish-Chandra Research Institute (HRI) X-Address: Chhatnag Road, Jhusi, Allahabad 211 019, India X-URL: http://www.mri.ernet.in/ X-Phone: +91 (532) 2667 509, 2667 318, 2667 578, 2567 746, 2567 747 X-Fax: +91 (532) 2667 576, 2567 748, 2567 444, 2568 036 X-OpenPGP-Key-ID: 0x03618806 X-OpenPGP-Key-Fingerprint: C75D D0AF 457E 7454 BEC2 37AD C6E1 0407 0361 8806 X-OpenPGP-Public-Key-Available-At: http://www.keyserver.net/ User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 35 Original-NNTP-Posting-Host: 202.41.87.100 Original-X-Trace: news.sunsite.dk DXC=EK2\O3E`jRMLCYW^HlPiL@YSB=nbEKnkKGAX6[_NI[AMID5_U; QN1YC=JDn=l3B; kMATKI?[mLM1KhGV>7]YX4kK>NNSSm_; JmI Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:133421 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28952 Archived-At: At 2005-08-23T23:50:46-05:00, Joe Corneli wrote: > Why is it that > > (setq a (gensym)) ;=> G2007 > a ;=> G2007 > (equal a 'G2007) ;=> nil Perhaps this is because `a' is an uninterned symbol --- see `(elisp)Creating Symbols' --- while `G2007' is an interned symbol. (`gensym' creates an uninterned symbol.) ELISP> (intern-soft a) nil ELISP> (intern-soft 'G55817) G55817 > while > > (setq a 'foo) ;=> foo > a ;=> foo > (equal a 'foo) ;=> t In this case, both `a' and `foo' are interned. ELISP> (intern-soft a) foo ELISP> (intern-soft 'foo) foo Raghavendra. -- N. Raghavendra | See message headers for contact Harish-Chandra Research Institute | and OpenPGP details.