(c-mask-paragraph): Remove a spurious correction between the visible
authorAlan Mackenzie <acm@muc.de>
Mon, 29 Jun 2009 14:44:04 +0000 (14:44 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 29 Jun 2009 14:44:04 +0000 (14:44 +0000)
width of TABs and their number of bytes, so that point is undisturbed
after typing a space, when there are tabs just before "*/".

lisp/progmodes/cc-cmds.el

index 1c51a4b..cb88f34 100644 (file)
@@ -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))