• 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
..
charsets Loading commit data...
e Loading commit data...
forms Loading commit data...
gnus Loading commit data...
images Loading commit data...
nxml Loading commit data...
org Loading commit data...
refcards Loading commit data...
schema Loading commit data...
srecode Loading commit data...
themes Loading commit data...
tutorials Loading commit data...
AUTHORS Loading commit data...
CALC-NEWS Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
DEBUG Loading commit data...
DEVEL.HUMOR Loading commit data...
DISTRIB Loading commit data...
ERC-NEWS Loading commit data...
ETAGS.EBNF Loading commit data...
ETAGS.README Loading commit data...
HELLO Loading commit data...
HISTORY Loading commit data...
JOKES Loading commit data...
MACHINES Loading commit data...
MH-E-NEWS Loading commit data...
NEWS Loading commit data...
NEWS.1-17 Loading commit data...
NEWS.18 Loading commit data...
NEWS.19 Loading commit data...
NEWS.20 Loading commit data...
NEWS.21 Loading commit data...
NEWS.22 Loading commit data...
NEWS.23 Loading commit data...
NEWS.24 Loading commit data...
NEWS.25 Loading commit data...
NEWS.26 Loading commit data...
NEXTSTEP Loading commit data...
NXML-NEWS Loading commit data...
ORG-NEWS Loading commit data...
PROBLEMS Loading commit data...
README Loading commit data...
TERMS Loading commit data...
TODO Loading commit data...
compilation.txt Loading commit data...
edt-user.el Loading commit data...
emacs-buffer.gdb Loading commit data...
emacs.appdata.xml Loading commit data...
emacs.desktop Loading commit data...
emacs.icon Loading commit data...
emacs.service Loading commit data...
enriched.txt Loading commit data...
future-bug Loading commit data...
gnus-tut.txt Loading commit data...
grep.txt Loading commit data...
package-keyring.gpg Loading commit data...
ps-prin0.ps Loading commit data...
ps-prin1.ps Loading commit data...
publicsuffix.txt Loading commit data...
rgb.txt Loading commit data...
ses-example.ses Loading commit data...
spook.lines Loading commit data...
yow.lines Loading commit data...