]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-initialize-builtin-style):
authorKarl Heuer <kwzh@gnu.org>
Thu, 23 Oct 1997 07:50:28 +0000 (07:50 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 23 Oct 1997 07:50:28 +0000 (07:50 +0000)
Only use copy-tree if it is
funcall-able.  This is the right patch, and was given by Erik Naggum
<erik@naggum.no>

lisp/progmodes/cc-styles.el

index 4adb0ac38708f8f71a43f68cf567ad916aa3ad8e..bbdcdcb8ce2a1a4d6921480ae40c2f6ed7584904 100644 (file)
@@ -7,7 +7,7 @@
 ;;             1985 Richard M. Stallman
 ;; Maintainer: cc-mode-help@python.org
 ;; Created:    22-Apr-1997 (split from cc-mode.el)
-;; Version:    5.18
+;; Version:    See cc-mode.el
 ;; Keywords:   c languages oop
 
 ;; This file is part of GNU Emacs.
@@ -572,7 +572,8 @@ offset for that syntactic element.  Optional ADD says to add SYMBOL to
   (or (assoc "cc-mode" c-style-alist)
       (let (copyfunc)
        ;; use built-in copy-tree if its there.
-       (if (fboundp 'copy-tree)
+       (if (and (fboundp 'copy-tree)
+                (functionp (symbol-function 'copy-tree)))
            (setq copyfunc (symbol-function 'copy-tree))
          (setq copyfunc (lambda (tree)
                            (if (consp tree)