emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH 1/7] New macro: Execute BODY in enviroment with uninterned SY


From: David Maus
Subject: [O] [PATCH 1/7] New macro: Execute BODY in enviroment with uninterned SYMBOLS
Date: Tue, 2 Aug 2011 11:23:34 +0200

* org-macs.el (org-with-uninterned): New macro. Execute BODY in
enviroment with uninterned SYMBOLS.
---
 lisp/org-macs.el |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 906be61..53c60e5 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -370,6 +370,12 @@ 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-with-uninterned (symbols &rest body)
+  `(let ,(mapcar (lambda (s)
+                  `(,s (make-symbol (symbol-name ',s)))) symbols)
+     ,@body))
+(put 'org-with-uninterned 'lisp-indent-function 1)
+
 (provide 'org-macs)
 
 ;; arch-tag: 7e6a73ce-aac9-4fc0-9b30-ce6f89dc6668
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]