From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.help Subject: symbols and cells Date: Thu, 15 May 2014 09:10:05 -0800 Message-ID: <20140515091005.52cc1897@voltron.arsc.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1400173842 5941 80.91.229.3 (15 May 2014 17:10:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 May 2014 17:10:42 +0000 (UTC) To: Gnu Emacs Help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 15 19:10:36 2014 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 1WkzAw-0002EZ-Ju for geh-help-gnu-emacs@m.gmane.org; Thu, 15 May 2014 19:10:34 +0200 Original-Received: from localhost ([::1]:59539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkzAw-0001Sm-4x for geh-help-gnu-emacs@m.gmane.org; Thu, 15 May 2014 13:10:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkzAg-0001Rd-U9 for help-gnu-emacs@gnu.org; Thu, 15 May 2014 13:10:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkzAa-000714-Pe for help-gnu-emacs@gnu.org; Thu, 15 May 2014 13:10:18 -0400 Original-Received: from mail-pb0-f46.google.com ([209.85.160.46]:33356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkzAa-0006yD-KQ for help-gnu-emacs@gnu.org; Thu, 15 May 2014 13:10:12 -0400 Original-Received: by mail-pb0-f46.google.com with SMTP id rq2so1354855pbb.33 for ; Thu, 15 May 2014 10:10:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-transfer-encoding; bh=PU6FuDwqMe0MH2KNbX4Q10O12T77WaHRdwjep/yAWgs=; b=El3M+ecbCU41ut5cDkgmyntilxossVoB4SCY3aOmlXrg0fJ1t5uiCphYRc0l+TEtHy L5M6nqboKBcIo6AUTNTXPCfXamoYsERWNChaxYwEoL3uDT4T4Fvgt5uFjiIHNG/Bubsx kXkskBKff/pK9+XGOLazd8QbsgzR1ymuCTwnb/6lYtaMbyROpJ+9Uc1fkuaefmk3Nu1r DABlftooh8xdmSq6PV4Xi4Qi4TRt6ZSxJjRTsW027e7TeICKK/v8BkqhZfeUgOr9JEpK 9Pfpb2o+pA6A5K1B23b5BBuEZYDV8s0zQPC0n3YAocc2HDZViduN/KpNE0IWIl4PpCr3 12kQ== X-Gm-Message-State: ALoCoQmDDCiyFqQ5rVCrrV1kwtLd6mpENhqWttt1y8UkavOS5g5AWOtnPbzWigd+HF+InHF6pRPn X-Received: by 10.68.202.230 with SMTP id kl6mr13849964pbc.55.1400173811030; Thu, 15 May 2014 10:10:11 -0700 (PDT) Original-Received: from voltron.arsc.edu ([2607:f318:1f00:810:4261:86ff:fe2c:3e8d]) by mx.google.com with ESMTPSA id ck10sm23468138pac.0.2014.05.15.10.10.09 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 15 May 2014 10:10:10 -0700 (PDT) X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.160.46 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:97676 Archived-At: I'm still working through the earlier parts of the Elisp documentation, but I am curious: How does one define the variable cell and function cell for an /uninterned/ symbol? The docs indicate you can do this: (defvar sym (make-symbol "foo")) But how do you add a function or variable value to foo without interning it? On a related note, I'm curious about this perverse construction: (defvar sym1 (lambda (n) (+ 1 n))) Is it actually possible to call the the lambda somehow? ELISP> sym1 (lambda (n) (+ 1 n)) ELISP> (sym1) *** Eval error *** Symbol's function definition is void: sym1 ELISP> (eval sym1) (lambda (n) (+ 1 n)) ELISP> ((eval sym1)) *** Eval error *** Invalid function: (eval sym1)