Subject: bug#5640: 23.1.92; [patch] cedet: use of c(a|d)ddr functions

From: Eduard Wiebe <[email-masked]>
Date: Wed, 24 Feb 2010 15:35:44 +0100

Hello,

i received following error message while trying cedet.

Idle Parse Error: "#<buffer test.js> - Symbol's function definition is void: caddr"
Mark set [2 times]

My simple fix follows:

2010-02-24  Eduard Wiebe  <[email-masked]>

	* javascript.el (wisent-javascript-jv-expand-tag): Avoid
	c(ad)ddr and use c(ad)r of cddr.

diff --git a/lisp/cedet/semantic/wisent/javascript.el b/lisp/cedet/semantic/wisent/javascript.el
index 34afb75..480fbec 100644
--- a/lisp/cedet/semantic/wisent/javascript.el
+++ b/lisp/cedet/semantic/wisent/javascript.el
@@ -48,8 +48,8 @@ to this variable NAME."
               elts  (cdr elts)
               clone (semantic-tag-clone tag (car elt))
 	      value (car (cdr elt))
-              start (if elts  (caddr elt) (semantic-tag-start tag))
-              end   (if xpand (cdddr elt) (semantic-tag-end   tag))
+              start (if elts  (car (cddr elt)) (semantic-tag-start tag))
+              end   (if xpand (cdr (cddr elt)) (semantic-tag-end   tag))
               xpand (cons clone xpand))
 	;; Set the definition of the cloned tag
 	(semantic-tag-put-attribute clone :default-value value)

-- 
Eduard Wiebe