From: Martin S. <ma...@ly...> - 2001-02-05 02:56:30
|
[Responding to an old issue here. Sorry for the long delay.] Leitner Erik ZFF TE-H <eri...@zf...> wrote on 9 Oct 2000: > I'm replying to your answer on an previous bug-report with the topic > 'Re: CC Mode 5.26 (C); indent. of cpp-macro (not starting at beg. of > line)'. > > Unfortunately in 5.27 the syntactic symbol 'cpp-macro' seems not to be > recognized anymore. I'm not sure there's any real problem here. If you do C-c C-s on a line with a macro, don't you get cpp-macro along with some other symbols? If you do, everything is as it should be, and you ought to be able to configure the indentation you want. > c-set-offset returns the symbol as if there was normal code at this place, c-set-offset might not default to cpp-macro, but that doesn't mean it doesn't exist; it's just that c-set-offset defaults to the last of several symbols that matches the line (i.e. in the list that C-c C-s gives). > c-indent-comment inserts a normal tab. I'm not aware of any function with that name, but I guess you mean c-comment-indent. It doesn't use the syntactic analysis to recognize macros, but it does assume that all macros have a '#' in column zero. I've relaxed that now (and also some other places that assumed that the same thing). This was afaik not a newly introduced bug, however. > > Mueller Erik ZFF TE-H <eri...@zf...> wrote: > > > > > We use loads of 'preprocessor-code' and so we want to indent > > > 'cpp-macro' s (so that theay don't start at the beginning of the line) . > > > Up to version 5.25 this was fine by assigning c-lineup-dont-change and > > > adding indentation by hand. > > > In version 5.26 c-lineup-dont-change was changed and it will place any > > > cpp-macro at the beginning of the line. > > > > This problem was actually a bit tricky due to the design of the offset > > calculation. However, I've fixed it in the source now; if you'd like > > to try it out right away you can get it by anonymous cvs > > (http://cc-mode.sourceforge.net/anoncvs.php). > > > > Thanks for the report. |