From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.devel Subject: Re: Generating an unique symbol in elisp Date: Sat, 4 Dec 2010 00:12:26 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015176f13765dc772049688d54d X-Trace: dough.gmane.org 1291414359 20976 80.91.229.12 (3 Dec 2010 22:12:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2010 22:12:39 +0000 (UTC) Cc: Emacs Dev To: "Edward O'Connor" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 03 23:12:35 2010 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.69) (envelope-from ) id 1POdrm-0007Ru-8S for ged-emacs-devel@m.gmane.org; Fri, 03 Dec 2010 23:12:34 +0100 Original-Received: from localhost ([127.0.0.1]:33125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POdrl-00048L-K5 for ged-emacs-devel@m.gmane.org; Fri, 03 Dec 2010 17:12:33 -0500 Original-Received: from [140.186.70.92] (port=42502 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POdrg-00048D-HJ for emacs-devel@gnu.org; Fri, 03 Dec 2010 17:12:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POdrf-0003oB-1u for emacs-devel@gnu.org; Fri, 03 Dec 2010 17:12:28 -0500 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:38735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POdre-0003mn-Uj for emacs-devel@gnu.org; Fri, 03 Dec 2010 17:12:26 -0500 Original-Received: by gwj22 with SMTP id 22so3520000gwj.0 for ; Fri, 03 Dec 2010 14:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=sh4b5CBLQN+1DY6plG0LfXS8DsPwYu41+uYqEFGeLYo=; b=SqoU25p2DAzyOLv25VB90qb7sd+lCaoP0np3u7soypa0SFqKW6HQuCjMj2F7mu5rLl B7uUKc2/zcula6tTx1BD3yHA4nzHlAgEOVtS1HNTtLDK5UGCUTCmOsOLwEE44fWho+RC PUDWyNX2GLr4cbU1wgCvCpLYUlQNGr8yNZaAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OFqpJ6sSs8I1fUB7/sGdd23Sowe/onF5808lhSEO7vKEXaFcxYaDeBTs7POPF1CWuA EhPI3c4Kcd/AVq8jxuLFbzJAL30xzBl506utcRphRr2kKNLkAGL30wgsYk4j4yPzHRQv WAJWMXOhXVSJb2RFn4+KyzN2bWO126B6aRXPs= Original-Received: by 10.151.100.6 with SMTP id c6mr4862749ybm.103.1291414346253; Fri, 03 Dec 2010 14:12:26 -0800 (PST) Original-Received: by 10.150.95.21 with HTTP; Fri, 3 Dec 2010 14:12:26 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:133361 Archived-At: --0015176f13765dc772049688d54d Content-Type: text/plain; charset=UTF-8 2010/12/4 Edward O'Connor > > The name is the problem. Does it generate an uninexistent name, or have I > > write a function to generate the uninexistent name ? > > The name isn't the problem. You can (make-symbol "foo") a bunch of > times, and you'll have a bunch of different symbols. That's what it > means for them to be uninterned. > Good. Can you bind a value in variable field/ evaluate a symbol as a variable if it is not interned ? Otherwise, can you create an obarray (different of main obarr) and intern within it only a few symbols (in this case the matter ), and evaluate within that environment ? --0015176f13765dc772049688d54d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2010/12/4 Edward O'Connor <hober0@gmail.com>
> The name is the problem. Does it generate an uninexi= stent name, or have I
> write a function to generate the uninexistent name ?

The name isn't the problem. You can (make-symbol "foo")= a bunch of
times, and you'll have a bunch of different symbols. That's what it=
means for them to be uninterned.

Good.

Can= you bind a value in variable field/ evaluate a symbol as a variable if it = is not interned ?

Otherwise, can you create an obarray (different of= main obarr) and intern within it only a few symbols (in this case the matt= er ), and evaluate within that environment ?

--0015176f13765dc772049688d54d--