[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] support a few of the new features of C++11 in syntax highlig

From: Alan Mackenzie
Subject: Re: [PATCH] support a few of the new features of C++11 in syntax highlighting
Date: Wed, 14 May 2014 20:13:53 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hello, Óscar.

On Mon, May 12, 2014 at 12:38:41AM +0200, Óscar Fuentes wrote:
> Alan Mackenzie <address@hidden> writes:

> >> So Alan noticed the patch, but the "no" still stands: the patch was not
> >> merged and there was no conclusion about it (except for Alan saying that
> >> he already implemented on the SF cc-mode some of the features mentioned
> >> on the patch and that he has no time for merging those changes into
> >> Emacs.)

> > These features are available in the c++11-0-1 branch of the CC Mode
> > repository at http://hg.code.sf.net/p/cc-mode/cc-mode, best downloaded by
> > prefixing the address with 'hg clone ', and appending it with a new
> > directory name.

> > As already stated, help in implementing further C++11 features would be
> > welcome.

> I would be more interested on helping to incorporate into Emacs the
> features already implemented on the SF repository.

> What can I do about that?

OK.  I suggest proceeding as follows.  First download the CC Mode
(Mercurial) repository, as detailed above.  Then get the diff between the
"default" branch (i.e. the trunk) and the c++11-0-1 branch for the files

    hg diff -r default:c++11-0-1 cc-*.el > foo.diff

.  Then (the hard part), disregarding the irrelevant diff hunks in that
file (e.g. changes in the copyright statement), apply the diffs to the
CC Mode files in the Emacs trunk.  This will likely involve a fair bit of
hand editing.  Please do this job very carefully - it would be a
knightmare to untangle if you were to make mistakes here.

Before committing this it would be best to test it using the regression
test suite in the directory ...../tests.  See the comments in the file
..../tests/000tests.el for instructions.  You'll need to move the entire
..../tests directory to under ..../lisp/progmodes (or set up appropriate
symbolic links) for this to work.

As a commit message, could you copy them from the CC Mode repository,
please.  All the commits in the c++-11-0-1 branch can be got reasonably

    hg -v log -X .hgtags -b c++11-0-1

.  All the commits in default can similarly be got with

    hg -v log -X .hgtags -b default

.  Whatever changes are in c++-11-0-1 which aren't in default are the new
C++11 features.  They should form the basis of your commit message.

If you need any help, just email me.

Good luck!

Alan Mackenzie (Nuremberg, Germany).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]