diff options
author | Alan Mackenzie <acm@muc.de> | 2009-06-29 14:44:04 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2009-06-29 14:44:04 +0000 |
commit | 2b78d42cb53e349b4c54cd5192a4dd271c33d32a (patch) | |
tree | b820f3396f0764bda50bd9a323fc2243b87be251 /lisp/progmodes/cc-cmds.el | |
parent | b87d9f96e22679e15e563717dacf1484e61168a9 (diff) | |
download | emacs-2b78d42cb53e349b4c54cd5192a4dd271c33d32a.tar.gz |
(c-mask-paragraph): Remove a spurious correction between the visible
width of TABs and their number of bytes, so that point is undisturbed
after typing a space, when there are tabs just before "*/".
Diffstat (limited to 'lisp/progmodes/cc-cmds.el')
-rw-r--r-- | lisp/progmodes/cc-cmds.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 1c51a4b6fd2..cb88f344cc0 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -4202,8 +4202,7 @@ Warning: Regexp from `c-comment-prefix-regexp' doesn't match the comment prefix (forward-char (- hang-ender-stuck)) (if (or fill-paragraph (not auto-fill-spaces)) (insert-char ?\ hang-ender-stuck t) - (insert auto-fill-spaces) - (setq here (- here (- hang-ender-stuck (length auto-fill-spaces))))) + (insert auto-fill-spaces)) (delete-char hang-ender-stuck) (goto-char here)) (set-marker tmp-post nil)) |