diff options
author | Dan Nicolaescu <[email protected]> | 2007-09-24 17:48:50 +0000 |
---|---|---|
committer | Dan Nicolaescu <[email protected]> | 2007-09-24 17:48:50 +0000 |
commit | 17ee46255fade92111505295c38c29a0865f32ce (patch) | |
tree | faeca187045aa9245efd8600944b3ec2603fea6a /lisp/progmodes/cc-mode.el | |
parent | 9f7e1e6ed92f9c10c7f85fa60c24b0957875619f (diff) |
* progmodes/cc-mode.el (c-mode-base-map): Use
c-indent-line-or-region instead of c-indent-line.
* indent.el (indent-for-tab-command): First check if the region is
active.
Diffstat (limited to 'lisp/progmodes/cc-mode.el')
-rw-r--r-- | lisp/progmodes/cc-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 8669a41c2f..f234404e81 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -269,7 +269,9 @@ control). See \"cc-mode.el\" for more info." 'c-indent-new-comment-line c-mode-base-map global-map) (substitute-key-definition 'indent-for-tab-command - 'c-indent-command + ;; XXX Is this the right thing to do + ;; here? + 'c-indent-line-or-region c-mode-base-map global-map) (when (fboundp 'comment-indent-new-line) ;; indent-new-comment-line has changed name to |