From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: [PATCH] Use backquotes to make byte compiler expand `flet' macro. Date: Sun, 27 Jun 2010 18:01:03 +0200 Message-ID: <1277654463-16903-2-git-send-email-dmaus@ictsoc.de> References: <87vd94tta1.fsf@gmail.com> Return-path: Received: from [140.186.70.92] (port=42261 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSuJC-0003sQ-EI for emacs-orgmode@gnu.org; Sun, 27 Jun 2010 12:04:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSuIO-00036p-O7 for emacs-orgmode@gnu.org; Sun, 27 Jun 2010 12:01:25 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:53837) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSuIO-00036h-JK for emacs-orgmode@gnu.org; Sun, 27 Jun 2010 12:01:24 -0400 In-Reply-To: <87vd94tta1.fsf@gmail.com> 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 * org-agenda.el (org-write-agenda): Use backquotes to expand `flet' at compile time. --- lisp/org-agenda.el | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 8035add..9056206 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -2450,7 +2450,7 @@ higher priority settings." ((string-match "\\.html?\\'" file) (require 'htmlize)) ((string-match "\\.ps\\'" file) (require 'ps-print))) (org-let (if nosettings nil org-agenda-exporter-settings) - '(save-excursion + `(save-excursion (save-window-excursion (org-agenda-mark-filtered-text) (let ((bs (copy-sequence (buffer-string))) beg) @@ -2482,14 +2482,14 @@ higher priority settings." (message "HTML written to %s" file)) ((string-match "\\.ps\\'" file) (require 'ps-print) - (flet ((ps-get-buffer-name () "Agenda View")) - (ps-print-buffer-with-faces file)) + ,(flet ((ps-get-buffer-name () "Agenda View")) + (ps-print-buffer-with-faces file)) (message "Postscript written to %s" file)) ((string-match "\\.pdf\\'" file) (require 'ps-print) - (flet ((ps-get-buffer-name () "Agenda View")) - (ps-print-buffer-with-faces - (concat (file-name-sans-extension file) ".ps"))) + ,(flet ((ps-get-buffer-name () "Agenda View")) + (ps-print-buffer-with-faces + (concat (file-name-sans-extension file) ".ps"))) (call-process "ps2pdf" nil nil nil (expand-file-name (concat (file-name-sans-extension file) ".ps")) -- 1.7.1