changeset 107973:34a427c407fe

Bugfix for ede-proj-makefile-insert-variables. * cedet/ede/pmake.el (ede-proj-makefile-insert-variables): Don't destroy list before using it.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 18 Apr 2010 17:40:10 -0400
parents d7f8e879d70c
children 23736de70902 e62a3bc4cbef
files lisp/ChangeLog lisp/cedet/ede/pmake.el
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Apr 17 09:10:19 2010 -0700
+++ b/lisp/ChangeLog	Sun Apr 18 17:40:10 2010 -0400
@@ -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.
--- a/lisp/cedet/ede/pmake.el	Sat Apr 17 09:10:19 2010 -0700
+++ b/lisp/cedet/ede/pmake.el	Sun Apr 18 17:40:10 2010 -0400
@@ -425,10 +425,9 @@
 	(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)