Mercurial > emacs
changeset 19964:023d2a62fd6b
(c-initialize-builtin-style): Don't ever try to use copy-tree.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 21 Sep 1997 14:11:37 +0000 |
parents | 2f60572de4d1 |
children | 8f50b8a71c70 |
files | lisp/progmodes/cc-styles.el |
diffstat | 1 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/cc-styles.el Sun Sep 21 12:34:40 1997 +0000 +++ b/lisp/progmodes/cc-styles.el Sun Sep 21 14:11:37 1997 +0000 @@ -571,14 +571,11 @@ ;; style. Only do this once! (or (assoc "cc-mode" c-style-alist) (let (copyfunc) - ;; use built-in copy-tree if its there. - (if (fboundp 'copy-tree) - (setq copyfunc (symbol-function 'copy-tree)) - (setq copyfunc (lambda (tree) - (if (consp tree) - (cons (funcall copyfunc (car tree)) - (funcall copyfunc (cdr tree))) - tree)))) + (setq copyfunc (lambda (tree) + (if (consp tree) + (cons (funcall copyfunc (car tree)) + (funcall copyfunc (cdr tree))) + tree))) (c-add-style "cc-mode" (mapcar (function