]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix positioning of point whilst inserting comments without non-ws
authorAlan Mackenzie <acm@muc.de>
Fri, 25 Oct 2019 20:11:48 +0000 (20:11 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 25 Oct 2019 20:11:48 +0000 (20:11 +0000)
commit25ed447b7bec3af66cf0322239cfabbaf71bef26
tree090654a61cacd0d7605ebdd5628a6fe6a525a25c
parent4e271a6c36c73cbf3b45ced26493aa6589669815
CC Mode: Fix positioning of point whilst inserting comments without non-ws

* lisp/progmodes/cc-cmds.el (c-guess-fill-prefix): When determining a new
block comment prefix (i.e. there isn't one already there to copy), and that
prefix is hard up against a comment closer, ensure there are at least two
spaces before the closer.
(c-indent-new-comment-line): Amend the strategy for ensuring that point isn't
left hard up against the comment closer after M-j.
lisp/progmodes/cc-cmds.el