From d55980b50dea594912b38bd7d9b96989c6a54129 Mon Sep 17 00:00:00 2001 From: David Maus Date: Tue, 2 Aug 2011 15:41:36 +0200 Subject: [PATCH] New macro: Evaluate FORM in ENVIRONMENT * org-macs.el (org-eval-in-environment): New macro. Evaluate FORM in ENVIRONMENT. --- lisp/org-macs.el | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 1d31744..4062f07 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -376,6 +376,10 @@ The number of levels is controlled by `org-inlinetask-min-level'" (format-seconds string seconds) (format-time-string string (seconds-to-time seconds)))) +(defmacro org-eval-in-environment (environment form) + `(eval '(let ,environment ,form))) +(put 'org-eval-in-environment 'lisp-indent-function 1) + (provide 'org-macs) ;; arch-tag: 7e6a73ce-aac9-4fc0-9b30-ce6f89dc6668 -- 1.7.2.5