Mercurial > emacs
changeset 38357:4647f245dde5
(c-indent-exp): Keep the indentation of the block
itself, i.e. only indent the contents in it.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 10 Jul 2001 19:50:43 +0000 |
parents | 7c7f15c54369 |
children | ce459e8fe8ca |
files | lisp/progmodes/cc-cmds.el |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/cc-cmds.el Tue Jul 10 16:18:15 2001 +0000 +++ b/lisp/progmodes/cc-cmds.el Tue Jul 10 19:50:43 2001 +0000 @@ -1541,10 +1541,14 @@ (if (not start) (unless shutup-p (error "Cannot find start of balanced expression to indent")) + (goto-char start) + (forward-line) + (setq start (point)) (if (not end) (unless shutup-p (error "Cannot find end of balanced expression to indent")) - (c-indent-region start end)))) + (if (< start end) + (c-indent-region start end))))) (goto-char here) (set-marker here nil))))