• Alan Mackenzie's avatar
    CC Mode. Allow fontification of "wrong" style comments with warning face. · b293aa91
    Alan Mackenzie authored
    This fixes bug #4192.
    
    * etc/NEWS: Add a new entry.
    
    * lisp/progmodes/cc-defs.el (c-font-lock-flush): New macro.
    
    * lisp/progmodes/cc-cmds.el (c-toggle-comment-style): On toggling the comment
    style, invoke c-font-lock-flush when c-mark-wrong-style-of-comment is non-nil,
    to cause that marking to be done instead on the other style of comment.
    
    * lisp/progmodes/cc-fonts.el (c-maybe-font-lock-wrong-style-comments): New
    function.
    (c-cpp-matchers): Call c-maybe-font-lock-wrong-style-comments when
    appropriate.
    
    * lisp/progmodes/cc-vars.el (c-mark-wrong-style-of-comment): New customizable
    option.
    
    * doc/misc/cc-mode.texi (top level, Indentation Commands, Guessing the Style,
    Custom Macros): For some opening quote marks, correct '' to ``.
    (Minor Modes): Add an xref to the new page "Wrong Comment Style" in a
    footnote.
    (Wrong Comment Style): New page.
    b293aa91
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...