Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ecec411d
Commit
ecec411d
authored
Sep 21, 1997
by
Richard M. Stallman
Browse files
(c-initialize-builtin-style): Don't ever try to use copy-tree.
parent
2b38b487
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
lisp/progmodes/cc-styles.el
lisp/progmodes/cc-styles.el
+5
-8
No files found.
lisp/progmodes/cc-styles.el
View file @
ecec411d
...
...
@@ -571,14 +571,11 @@ offset for that syntactic element. Optional ADD says to add SYMBOL to
;; 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment