]> git.eshelyaron.com Git - emacs.git/commit
c-indent-new-comment-line: don't test for a macro in a comment
authorAlan Mackenzie <acm@muc.de>
Sun, 15 Oct 2023 10:54:23 +0000 (10:54 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 15 Oct 2023 10:54:23 +0000 (10:54 +0000)
commita0cd986e67521b091057c5551d9893fdefe1636c
tree8d1e57db7fb0b04d7a6db8402042d4213c7b3b88
parent98748aa6e62488dd088e0ff0bd1d81d770c8abde
c-indent-new-comment-line: don't test for a macro in a comment

This fixes bug#9860.

* lisp/progmodes/cc-cmds (c-indent-new-comment-line): Test for
a comment/string before testing for a macro, thus preventing a
"macro" being spuriously recognized in a comment.  This allows
auto-fill-mode to work on a line beginning with # in a comment.
lisp/progmodes/cc-cmds.el