From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tom.capey@gmail.com Newsgroups: gmane.emacs.help Subject: Re: intern vs. make-symbol Date: Sun, 10 Feb 2013 12:46:06 -0800 (PST) Message-ID: <79e0cbc4-0e3b-427e-8a44-b7e98bd34e20@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1360529327 17706 80.91.229.3 (10 Feb 2013 20:48:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Feb 2013 20:48:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gnu.emacs.help@googlegroups.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 10 21:49:08 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 1U4dpf-0003zv-3H for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Feb 2013 21:49:03 +0100 Original-Received: from localhost ([::1]:54006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4dpL-0005yy-Pl for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Feb 2013 15:48:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4dmt-0005Ut-Gs for help-gnu-emacs@gnu.org; Sun, 10 Feb 2013 15:46:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4dmq-0007EJ-An for help-gnu-emacs@gnu.org; Sun, 10 Feb 2013 15:46:11 -0500 Original-Received: from mail-da0-f57.google.com ([209.85.210.57]:62323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4dmq-0007EF-55 for help-gnu-emacs@gnu.org; Sun, 10 Feb 2013 15:46:08 -0500 Original-Received: by mail-da0-f57.google.com with SMTP id q27so1946098daj.22 for ; Sun, 10 Feb 2013 12:46:07 -0800 (PST) X-Received: by 10.49.28.162 with SMTP id c2mr824153qeh.41.1360529166780; Sun, 10 Feb 2013 12:46:06 -0800 (PST) Original-Path: glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=78.150.20.212; posting-account=g3-5QQoAAAD9rmdB6_yzT07kPfjSqRIL Original-NNTP-Posting-Host: 78.150.20.212 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 78.150.20.212 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.57 X-Mailman-Approved-At: Sun, 10 Feb 2013 15:48:38 -0500 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:89045 Archived-At: On Sunday, February 10, 2013 7:42:01 PM UTC, Thorsten Jolitz wrote: > Hi List, > assume org-babel-load-languages is similar to: > ,------------------------------- > > | ((emacs-lisp . t) (python . t)) > > `------------------------------- > Shouldn't this > ,------------------------------------------------------ > > | (assq (intern "emacs-lisp") org-babel-load-languages) > > | (emacs-lisp . t) > > `------------------------------------------------------ > and this > ,-------------------------------------------------- > > | (assq (eval `(quote ,(make-symbol "emacs-lisp"))) > > | org-babel-load-languages) > > | nil > > `-------------------------------------------------- > give the same results - and why isn't this so? They do different things. Try these: (eql (make-symbol "emacs-lisp") (make-symbol "emacs-lisp")) => nil (eql (intern "emacs-lisp") (intern "emacs-lisp")) => t `make-symbol' "[r]eturn[s] a newly allocated uninterned symbol whose name is NAME. Its value and function definition are void, and its property list is nil." `intern' "[r]eturn[s] the canonical symbol whose name is STRING. If there is none, one is created by this function and returned. A second optional argument specifies the obarray to use; it defaults to the value of `obarray'." /Tom --