From 89ab2f4413dfd695b716ec201cfc6c6dc86f4dbe Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Mon, 29 Jun 2009 22:04:26 +0000 Subject: [PATCH] (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 "*/". --- lisp/progmodes/cc-cmds.el | 3 +-- 1 file changed, 1 insertion(+), 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)) -- 2.39.2