# HG changeset patch # User Alan Mackenzie # Date 1203458351 0 # Node ID 86ed612276b16310ecb688c7bae226ddd165e733 # Parent 48f9158be83351cf1e625ecae140c17e3f388f5a *** empty log message *** diff -r 48f9158be833 -r 86ed612276b1 lisp/ChangeLog --- a/lisp/ChangeLog Tue Feb 19 21:58:09 2008 +0000 +++ b/lisp/ChangeLog Tue Feb 19 21:59:11 2008 +0000 @@ -1,3 +1,46 @@ +2008-02-19 Alan Mackenzie + + Set of changes so that "obtrusive" syntactic elements in a + C/C++/ObjC preprocessor line (e.g. an unbalanced string quote or + unmatched paren) don't interact syntactically with stuff outside + the CPP line. + + * progmodes/cc-awk.el (c-awk-beyond-logical-line, c-awk-old-ByLL): + Replace c-awk-end-of-logical-line and c-awk-old-EoLL to solve an + off-by-one bug. + (c-awk-record-region-clear-NL): Replaces c-awk-before-change, with + a bit of refactoring. + (c-awk-extend-and-syntax-tablify-region): Takes some of the + functionality of c-awk-advise-fl-for-awk-region, which has been + refactored away. + + * progmodes/cc-defs.el (c-clear-char-property-with-value-function) + (c-clear-char-property-with-value): New function and macro which + remove text-properties `equal' to a supplied value. + + * progmodes/cc-engine.el: Comment about text properties amended. + + * progmodes/cc-fonts.el (c-cpp-matchers): Make it put regexp + parens around "error\\|warning". + + * progmodes/cc-langs.el (c-get-state-before-change-function) + (c-before-font-lock-function, c-anchored-cpp-prefix): new language + variables. + (c-cpp-message-directives): Handle "#warning" in C, C++ and ObjC. + + * progmodes/cc-mode.el (c-basic-common-init): C and ObjC now use + syntax-table text properties. + (c-common-init): Call language specific before/after-change + functions at mode initialisation. + (c-new-BEG, c-new-END, c-old-BOM, c-old-EOM): new variables. + (c-extend-region-for-CPP, c-neutralize-CPP-line) + (c-neutralize-syntax-in-CPP): new functions. + (c-before-change, c-after-change): call the new language specific + change functions defined in cc-langs.el. + (c-advise-fl-for-region): new macro. + (awk-mode): Remove AWK specific stuff which has been refactored + into language independent stuff. + 2008-02-19 Stefan Monnier * diff-mode.el (diff-file-junk-re): New const.