]> git.eshelyaron.com Git - emacs.git/commitdiff
Bugfix for ede-proj-makefile-insert-variables.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 18 Apr 2010 21:40:10 +0000 (17:40 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 18 Apr 2010 21:40:10 +0000 (17:40 -0400)
* cedet/ede/pmake.el (ede-proj-makefile-insert-variables): Don't
destroy list before using it.

lisp/ChangeLog
lisp/cedet/ede/pmake.el

index a337f8f5a8c2e1d62fc3516816320331854381dc..f6a1c77b1a490f385b2c3b62872089889db237f8 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-18  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cedet/ede/pmake.el (ede-proj-makefile-insert-variables): Don't
+       destroy list before using it.
+
 2010-04-17  Dan Nicolaescu  <dann@ics.uci.edu>
 
        Fix the version number for added files.
index 971cd70a6eef6ff5dee965f028f5a3f88561c3e6..19c4b26edcd6f17ed1caec7b368d46888e5933ee 100644 (file)
@@ -425,10 +425,9 @@ sources variable."
        (link (ede-proj-linkers this))
        (name (ede-proj-makefile-target-name this))
        (src (oref this source)))
-    (while comp
-      (ede-compiler-only-once (car comp)
-       (ede-proj-makefile-insert-variables (car comp)))
-      (setq comp (cdr comp)))
+    (dolist (obj comp)
+      (ede-compiler-only-once obj
+                             (ede-proj-makefile-insert-variables obj)))
     (ede-proj-makefile-insert-object-variables (car comp) name src)
     (while link
       (ede-linker-only-once (car link)