From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: PATCH: Fix for agenda problems Date: Sun, 01 Aug 2010 20:42:26 -0500 Message-ID: <4C562282.5090802@sift.info> References: <4C520CF2.6060802@sift.info> <874ofefarb.wl%dmaus@ictsoc.de> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57647 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofk31-0001DP-3m for emacs-orgmode@gnu.org; Sun, 01 Aug 2010 21:42:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ofk30-000788-49 for emacs-orgmode@gnu.org; Sun, 01 Aug 2010 21:42:35 -0400 Received: from mpls.sift.info ([75.146.46.193]:49805) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofk2z-00077v-UX for emacs-orgmode@gnu.org; Sun, 01 Aug 2010 21:42:34 -0400 In-Reply-To: <874ofefarb.wl%dmaus@ictsoc.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: Org Mode On 8/1/10 Aug 1 -1:28 PM, David Maus wrote: > Robert Goldman wrote: >> [1 ] >> As far as I can tell, the current version of org-write-agenda evaluates >> ps-print-buffer-with-faces too eagerly. I tripped over this because >> aquamacs 2.0, which I'm using, seems to have ps-printing code that >> conflicts with org-mode's expectation. > >> The attached patch tries to fix this, but does not do the job >> particularly elegantly. Instead of EVALUATING the flet form, it >> MACROEXPANDS that form, which I believe is correct in this context. > > Yes, the intension of backquoting the flet macro was macroexpansion, > not evaluation. And it should work to solve the issue with cl not > loaded on runtime when calling `org-agenda-write'[1]. > > Best, > -- David > > [1] Cf. http://thread.gmane.org/gmane.emacs.orgmode/26132/focus=26698 Are you sure that my patch will work properly? I was looking at it, and it seems like the use of org-let might cause the list (the code) to be evaluated at run-time, and not at compile time, right? Here's org-let: (defun org-let (list &rest body) (eval (cons 'let (cons list body)))) (put 'org-let 'lisp-indent-function 1) It occurs in org-agenda. Question: does this mean that the backquoted expression will be evaluated at run-time, or is the compiler aggressive enough to do it at compile-time? This is something I /should/ know, but don't.... best, r