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: Re: Does not byte-compile return the compiled function in Emacs 24? Date: Wed, 7 Dec 2011 02:54:23 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1323222896 7216 80.91.229.12 (7 Dec 2011 01:54:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2011 01:54:56 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 07 02:54:52 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RY6if-0004OC-MU for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2011 02:54:49 +0100 Original-Received: from localhost ([::1]:41471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RY6if-0005xQ-25 for ged-emacs-devel@m.gmane.org; Tue, 06 Dec 2011 20:54:49 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RY6ic-0005xA-Mt for emacs-devel@gnu.org; Tue, 06 Dec 2011 20:54:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RY6ib-0005a7-Pw for emacs-devel@gnu.org; Tue, 06 Dec 2011 20:54:46 -0500 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:49212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RY6ib-0005a3-J6 for emacs-devel@gnu.org; Tue, 06 Dec 2011 20:54:45 -0500 Original-Received: by lahi5 with SMTP id i5so22135lah.0 for ; Tue, 06 Dec 2011 17:54:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=p4dH0+CPtVnRpInLe3WWAf0Pp+vttJu96Vh/AmyV22k=; b=lRiNDP/KeKidWpRWeWeS2fHICZVjAraodnC43W6mh/f/OlmKqgELLPj0Ov/wxEs8kp CgAJ34jB126ycbi9g/J8uEqu5v+gAa1s8JcEbAAZ55locGy/x+R3c2n505IgzjRc0rdk gDixNfBUdLjivV3h/CjiSMAkZGLHfOtPaKWXQ= Original-Received: by 10.152.110.102 with SMTP id hz6mr10570808lab.11.1323222884444; Tue, 06 Dec 2011 17:54:44 -0800 (PST) Original-Received: by 10.152.38.198 with HTTP; Tue, 6 Dec 2011 17:54:23 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146522 Archived-At: On Wed, Dec 7, 2011 at 02:36, Stefan Monnier wro= te: >> It used to do that before. Is there any variable holding the newly >> byte-compiled function? > > Don't know. =C2=A0`byte-compile' does various things in various circumsta= nces > (it's pretty DWIMish), so without more details I can't help you. In mumamo.el I am building functions for fontification. I compile them like this: (setq byte-compiled-fun (let ((major-syntax-table)) (byte-compile fetch-func-definition))) Previously it returned the byte-compiled function, but now it seems to return t. (Or, at least it did not when I tested.) I am using an anonymous function, but I think I can switch to a named temporary function instead. I will try that.