From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weber Newsgroups: gmane.emacs.help Subject: defun vs lambda Date: Fri, 24 Jul 2009 13:30:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248468366 6165 80.91.229.12 (24 Jul 2009 20:46:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2009 20:46:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 24 22:45:59 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MURe3-0006nF-Gm for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2009 22:45:35 +0200 Original-Received: from localhost ([127.0.0.1]:44830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MURe2-0003jq-TS for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2009 16:45:34 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k1g2000yqf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 189.63.164.120 Original-X-Trace: posting.google.com 1248467414 19743 127.0.0.1 (24 Jul 2009 20:30:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 24 Jul 2009 20:30:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k1g2000yqf.googlegroups.com; posting-host=189.63.164.120; posting-account=7GrjgQoAAAD6slWURausdJnhFDkmQYC8 User-Agent: G2/1.0 X-HTTP-Via: 1.1 stargate.datacom:3128 (squid/2.6.STABLE5) X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171189 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:66376 Archived-At: Hi, I know I can return a function from another function, like this: (setq f (lambda () 2)) but I have to call it like (funcall f). Is there anyway that I could do: (setf f (defun () 2) and then be able to call (f) ? Thanks weber