summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-styles.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2001-06-23 16:22:04 +0000
committerRichard M. Stallman <rms@gnu.org>2001-06-23 16:22:04 +0000
commit7c2ef7338d9c68583a99e9e584140c6d4a03d08b (patch)
tree2aa87f2029e9a28c9bb7fe943bef34d87068093e /lisp/progmodes/cc-styles.el
parentcb615a61005ba55462c5007904caf36d7a24687a (diff)
downloademacs-7c2ef7338d9c68583a99e9e584140c6d4a03d08b.tar.gz
(c-set-style): Don't specify initial contents for completing-read.
Diffstat (limited to 'lisp/progmodes/cc-styles.el')
-rw-r--r--lisp/progmodes/cc-styles.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-styles.el b/lisp/progmodes/cc-styles.el
index 68591f125c0..a813056c51b 100644
--- a/lisp/progmodes/cc-styles.el
+++ b/lisp/progmodes/cc-styles.el
@@ -302,8 +302,9 @@ done internally by CC Mode, there's hardly ever a reason to use it."
(prompt (format "Which %s indentation style? "
mode-name)))
(completing-read prompt c-style-alist nil t
- (cons c-indentation-style 0)
- 'c-set-style-history))))
+ nil
+ 'c-set-style-history
+ c-indentation-style))))
(c-initialize-builtin-style)
(let ((vars (c-get-style-variables stylename nil)))
(mapcar (lambda (elem)