From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: [PATCH] Remove dependency of flet in org-write-agenda Date: Thu, 12 Aug 2010 18:31:08 +0200 Message-ID: <1281630669-6565-1-git-send-email-dmaus@ictsoc.de> References: <87hbjdq7l6.wl%dmaus@ictsoc.de> Return-path: Received: from [140.186.70.92] (port=60294 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjahA-0006bC-D0 for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 12:31:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ojah0-00076S-6g for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 12:31:47 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:55919) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ojah0-000760-26 for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 12:31:46 -0400 In-Reply-To: <87hbjdq7l6.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: emacs-orgmode@gnu.org This one supersedes patch #181: For reasons not yet know to me using the proposed `macroexpand' to get the flet macro expanded at compile time didn't work. Attached patch solves the whole issue by simply removing the dependency of `flet' in this function altogether. It was used to temporarily redefine the function `ps-print-get-buffer-name' to enforce the buffer name "Agenda View" (vs. "*temp*" for a temporary buffer. So, why not simply rename the temp buffer? Note: The function `rename-buffer' is called with UNIQUE beeing non-nil -- just in case there might be a buffer called "*Agenda View*". Best, -- David David Maus (1): Rename temporary buffer to remove dependency of `flet' macro