aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/cc-styles.el13
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/progmodes/cc-styles.el b/lisp/progmodes/cc-styles.el
index 5d467e669f7..cbe89033b1c 100644
--- a/lisp/progmodes/cc-styles.el
+++ b/lisp/progmodes/cc-styles.el
@@ -571,14 +571,11 @@ offset for that syntactic element. Optional ADD says to add SYMBOL to
571 ;; style. Only do this once! 571 ;; style. Only do this once!
572 (or (assoc "cc-mode" c-style-alist) 572 (or (assoc "cc-mode" c-style-alist)
573 (let (copyfunc) 573 (let (copyfunc)
574 ;; use built-in copy-tree if its there. 574 (setq copyfunc (lambda (tree)
575 (if (fboundp 'copy-tree) 575 (if (consp tree)
576 (setq copyfunc (symbol-function 'copy-tree)) 576 (cons (funcall copyfunc (car tree))
577 (setq copyfunc (lambda (tree) 577 (funcall copyfunc (cdr tree)))
578 (if (consp tree) 578 tree)))
579 (cons (funcall copyfunc (car tree))
580 (funcall copyfunc (cdr tree)))
581 tree))))
582 (c-add-style "cc-mode" 579 (c-add-style "cc-mode"
583 (mapcar 580 (mapcar
584 (function 581 (function