]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-mask-paragraph): Remove a spurious correction between the visible
authorAlan Mackenzie <acm@muc.de>
Mon, 29 Jun 2009 22:04:26 +0000 (22:04 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 29 Jun 2009 22:04:26 +0000 (22:04 +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 1c51a4b6fd244a4c38036e863e57b341b1c6ff15..cb88f344cc0ac79478ea213f61889e8e0fb79d91 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))