• 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
..
antlr-mode.el Loading commit data...
asm-mode.el Loading commit data...
autoconf.el Loading commit data...
bat-mode.el Loading commit data...
bug-reference.el Loading commit data...
cc-align.el Loading commit data...
cc-awk.el Loading commit data...
cc-bytecomp.el Loading commit data...
cc-cmds.el Loading commit data...
cc-defs.el Loading commit data...
cc-engine.el Loading commit data...
cc-fonts.el Loading commit data...
cc-guess.el Loading commit data...
cc-langs.el Loading commit data...
cc-menus.el Loading commit data...
cc-mode.el Loading commit data...
cc-styles.el Loading commit data...
cc-vars.el Loading commit data...
cfengine.el Loading commit data...
cmacexp.el Loading commit data...
compile.el Loading commit data...
cperl-mode.el Loading commit data...
cpp.el Loading commit data...
cwarn.el Loading commit data...
dcl-mode.el Loading commit data...
ebnf-abn.el Loading commit data...
ebnf-bnf.el Loading commit data...
ebnf-dtd.el Loading commit data...
ebnf-ebx.el Loading commit data...
ebnf-iso.el Loading commit data...
ebnf-otz.el Loading commit data...
ebnf-yac.el Loading commit data...
ebnf2ps.el Loading commit data...
ebrowse.el Loading commit data...
elisp-mode.el Loading commit data...
etags.el Loading commit data...
executable.el Loading commit data...
f90.el Loading commit data...
flymake-cc.el Loading commit data...
flymake-proc.el Loading commit data...
flymake.el Loading commit data...
fortran.el Loading commit data...
gdb-mi.el Loading commit data...
glasses.el Loading commit data...
grep.el Loading commit data...
gud.el Loading commit data...
hideif.el Loading commit data...
hideshow.el Loading commit data...
icon.el Loading commit data...
idlw-complete-structtag.el Loading commit data...
idlw-help.el Loading commit data...
idlw-shell.el Loading commit data...
idlw-toolbar.el Loading commit data...
idlwave.el Loading commit data...
inf-lisp.el Loading commit data...
js.el Loading commit data...
ld-script.el Loading commit data...
m4-mode.el Loading commit data...
make-mode.el Loading commit data...
meta-mode.el Loading commit data...
mixal-mode.el Loading commit data...
modula2.el Loading commit data...
octave.el Loading commit data...
opascal.el Loading commit data...
pascal.el Loading commit data...
perl-mode.el Loading commit data...
prog-mode.el Loading commit data...
project.el Loading commit data...
prolog.el Loading commit data...
ps-mode.el Loading commit data...
python.el Loading commit data...
ruby-mode.el Loading commit data...
scheme.el Loading commit data...
sh-script.el Loading commit data...
simula.el Loading commit data...
sql.el Loading commit data...
subword.el Loading commit data...
tcl.el Loading commit data...
vera-mode.el Loading commit data...
verilog-mode.el Loading commit data...
vhdl-mode.el Loading commit data...
which-func.el Loading commit data...
xref.el Loading commit data...
xscheme.el Loading commit data...