From: Wedler, C. <chr...@sa...> - 2003-08-03 06:11:56
|
Hi Martin, I really like the changes you made since v5.28 of cc-mode, they are especially useful for me as the author of a derived mode (antlr-mode, see <http://antlr-mode.sourceforge.net/>, we had a discussion about such changes a year ago). Of the two changes between v5.29 and v5.30, I find one very useful, and would appreciate if you could make some modification of the other one (e.g., by applying the appended patch): 1. The introduction of `c-basic-common-init' is very useful as I don't have to care about internal changes of cc-mode. 2. The introduction of `c-init-language-vars' (already in v5.29) is also very useful, it eliminates a dependency between the source code of my antlr-mode and cc-mode. Unfortunately, having it as a macro (as opposed to v5.29) now introduces a dependency between the byte code of my antlr-mode and cc-mode. (This is especially bad for XEmacs, where there are different pre-compiled packages: there is a cc-mode package, antlr-mode is part of the prog-modes package.) Therefore, I would really like if you could offer a *function* to initialize the variables of the "built-in" languages of cc-mode. (This function is called `c-init-language-vars-for' in my patch, any other name, including the name of the macro which is then to be renamed, is fine with me. Splitting this function into one for each mode would also be fine.) The patch (for cc-mode.el only) is appended, it is vs v5.30.3. Thanks and best regards, - Christoph * cc-mode.el (c-init-language-vars-for): Add argument MODE. Renamed from `c-init-c-language-vars'. (c-initialize-cc-mode): Change accordingly. (c-common-init): Ditto. (c-mode): Ditto. (c++-mode): Use function. (objc-mode): Ditto. (java-mode): Ditto. (idl-mode): Ditto. (pike-mode): Ditto. (awk-mode): Ditto. |