r3744: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 12 Jan 2003 05:39:03 +0000 (05:39 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 12 Jan 2003 05:39:03 +0000 (05:39 +0000)
debian/changelog
files.lisp

index 2e7fee194d389b1ec4bff6d5d2ba69c84a36e12b..1757e72aaedbdaa6213c82bdecbf4a8e3c471abf 100644 (file)
@@ -1,3 +1,9 @@
+cl-lml (2.0.2-1) unstable; urgency=low
+
+  * Fix with-dir to properly evaluate parameters (Thanks Matthew Danish)
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Sat, 11 Jan 2003 21:02:23 -0700
+
 cl-lml (2.0.1-1) unstable; urgency=low
 
   * Quote class for link-c
index fd2366b3ff30961f8174128324b6541a2b7272d8..bdf4e96ca1481193fc621f30940f478e106f6173 100644 (file)
          (parse-namestring f)
        f))))
 
-(defmacro with-dir ((output-dir &key sources) &body body)
-  (when (stringp output-dir)
-    (setq output-dir (parse-namestring output-dir)))
-  (unless sources
-    (setq sources output-dir))
-  `(let ((*output-dir* ,output-dir)
-        (*sources-dir* ,sources))
-     ,@body))
+(defmacro with-dir ((output &key sources) &body body)
+  (let ((output-dir (gensym))
+       (sources-dir (gensym)))
+  `(let ((,output-dir ,output)
+        (,sources-dir ,sources))
+    (when (stringp ,output-dir)
+      (setq ,output-dir (parse-namestring ,output-dir)))
+    (when (stringp ,sources-dir)
+      (setq ,sources-dir (parse-namestring ,sources-dir)))
+    (unless ,sources-dir
+      (setq ,sources-dir ,output-dir))
+    (let ((*output-dir* ,output-dir)
+         (*sources-dir* ,sources-dir))
+      ,@body))))
 
 (defun lml-load-path (file)
   (if (probe-file file)