On Tue, Aug 01, 2006 at 07:58:00AM +0100, Russel Winder wrote:
> On Tue, 2006-07-25 at 21:45 +0100, Alan Mackenzie wrote:
> > The virtual semicolon stuff IS another bit of infrastructure. :-)
> > That was one of the main changes for 5.31. There's a rather complete
> > description of the mechanism in cc-defs.el, starting around line 720.
> > If there's anything incomplete or unclear in that description, please
> > tell me, so that I can fix it.
> I think Ubuntu 6.06 'Dapper Drake' is released with XEmacs 21.4.18
> which seems to have CC Mode 5.30.10. This would explain why I was
> getting confused at seeing c-at-vsemi-p-fn in the CC Mode source but it
> not working. I will install CC Mode 5.31.3 and then hopefully things
> will work.
Let me know if they don't!
[ .... ]
> Is there a process to be followed to get a new derived mode officially
> in to CC Mode. I guess there is and that the C# mode is following it.
We don't actually have a process for derived modes as such. Normally,
such a mode (and I believe there are some) is distributed independently
of CC Mode. If you really meant another sub-mode of CC Mode, then you
would have to do two things:
(i) Sign papers with the FSF, assigning the copyright in your
contibutions to them. (This is utterly painless in the UK, where you
wouldn't have to get your employer to permit this.)
(ii) Persuade me (or Martin Stjernholm, the other maintainer, who is
taking a "holiday" at the moment) that including it in CC Mode is the
Right Thing to do, and the code (and documentation, of course :-) is good
I would be happier with a derived mode than a new sub-mode, for several
reasons: a sub-mode needs to be maintained for ever, and if the person
who wrote it drifts off into the sunset, that sub-mode can fall into
desuetude; CC Mode already has 7 sub-modes, and each further sub-mode
complicates the code, and makes eventual refactoring more tricky; one of
the purposes of the "language variable" system (introduced in 5.30) was
to facilitate the creation of derived modes.
However, I think you actually did mean what you wrote. ;-)
Alan Mackenzie (Munich, Germany)