bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Eduard Wiebe
Subject: bug#5640: 23.1.92; [patch] cedet: use of c(a|d)ddr functions
Date: Wed, 24 Feb 2010 15:35:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (berkeley-unix)

 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  <usenet@pusto.de>

        * 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







reply via email to

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