# HG changeset patch # User Alan Mackenzie # Date 1246286644 0 # Node ID 23b69c963c1d31f70443f51d639a211b5db9867a # Parent bbccbecdb55bc230231b93adccabbffba35a9414 (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 "*/". diff -r bbccbecdb55b -r 23b69c963c1d lisp/progmodes/cc-cmds.el --- a/lisp/progmodes/cc-cmds.el Mon Jun 29 14:38:31 2009 +0000 +++ b/lisp/progmodes/cc-cmds.el Mon Jun 29 14:44:04 2009 +0000 @@ -4202,8 +4202,7 @@ (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))