From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: What does byte-compile a variable containing a lambda do? Date: Wed, 3 Jun 2009 04:00:42 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243994462 6006 80.91.229.12 (3 Jun 2009 02:01:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 02:01:02 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 03 04:00:59 2009 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.50) id 1MBfmj-0006ws-VM for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 04:00:58 +0200 Original-Received: from localhost ([127.0.0.1]:59563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBfmj-0000TL-IT for ged-emacs-devel@m.gmane.org; Tue, 02 Jun 2009 22:00:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBfmc-0000Qb-Bl for emacs-devel@gnu.org; Tue, 02 Jun 2009 22:00:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBfmW-0000LY-8p for emacs-devel@gnu.org; Tue, 02 Jun 2009 22:00:48 -0400 Original-Received: from [199.232.76.173] (port=33756 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBfmV-0000LL-U4 for emacs-devel@gnu.org; Tue, 02 Jun 2009 22:00:43 -0400 Original-Received: from mail-bw0-f161.google.com ([209.85.218.161]:42808) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBfmV-000552-Av for emacs-devel@gnu.org; Tue, 02 Jun 2009 22:00:43 -0400 Original-Received: by bwz5 with SMTP id 5so9302499bwz.42 for ; Tue, 02 Jun 2009 19:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=O/CZPmwF84MP51ZRvdC1VvdzVC7icJNoM5qBp6nV5QE=; b=nxH1vZJn3yrLor9NIS0ApiM+6Ndg8kW4NTeCZ97aiWe8CojVL6zRtNphl3YW3zIOoN 7RBq1SthYC45sLQZ+ewN+GeQs8AzIFxPYpKYCoRjJh2NBa3bbQF8yIDf3bBgRB1/qXW+ GP+MTgxUjXIHGUI7uyHYLwCFcMBsru4+W69t0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=H7dwMFDf+57jPE9TVlVF5FcUvzE1HHr8lO8jQn1khZ2wpmAVZ+AtCm/1nP6zc8k/vy XGfTuwtrP1DMPDL9tlmz00rxQwDBdXY3aUGkAr5ZZnIXICcCfIdKCqGgN9vXUNLYVmYX YCJR3DOeic/pm1JCmzMQo4TNNr2eOKU5jzFXM= Original-Received: by 10.239.150.144 with SMTP id n16mr29472hbb.132.1243994442243; Tue, 02 Jun 2009 19:00:42 -0700 (PDT) X-detected-operating-system: by monty-python.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:111300 Archived-At: The help text for byte-compile says byte-compile is a compiled Lisp function in `bytecomp.el'. (byte-compile form) If form is a symbol, byte-compile its function definition. If form is a lambda or a macro, byte-compile it as a function. I do not understand the last sentence. What happens? If a variable contains a lambda and you do (byte-compile VAR-WITH-LAMBDA) what happens? Is the content of the variable changed or does byte-compile return something?