[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13046: 23.4; Minimal Example to freeze emacs C++ mode (nasty interac
From: |
Alan Mackenzie |
Subject: |
bug#13046: 23.4; Minimal Example to freeze emacs C++ mode (nasty interaction between templates & windows endline characters ) |
Date: |
Wed, 5 Dec 2012 20:10:47 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello, John.
On Mon, Dec 03, 2012 at 09:54:51AM +0100, John Smith wrote:
> Hello all,
> I'm afraid my limited emacs knowledge will not allow me to test the patch.
> (Building fresh from source + patching the lisp => too much :) )
> I trust however that it does!
If you want to test the patch, here's how to go about it:
(i) Make sure you've got the program `patch' installed - it's in package
"diffutils". (I don't know the package manager in Ubuntu).
(ii) Extract my email containing the patch to a file, say foo.diff. You
don't need to bother separating out the actual patch from all the other
stuff.
(iii) Locate cc-engine.el. It will be somewhere like
/usr/local/share/emacs/24.2/lisp/progmodes/cc-engine.el.gz if you
installed Emacs from source, or
/usr/share/emacs/24.2/lisp/progmodes/cc-engine.el.gz if you installed
Emacs from a package manager. In either case you can find it for sure with
C-h f c-mode <ret>, and click/type CR on the file name. Then do C-x C-v
to see where it is.
(iv) Unzip the source file: cd <above directory>; gunzip cc-engine.el.gz
(v) Patch that file: patch < /path/to/foo.diff
(vi) Byte compile the file: (in emacs)
M-x byte-compile-file <ret> /path/to/cc-engine.el
(vii) Load the file (or restart Emacs):
M-x load-file /path/to/cc-engine.elc
(note the 'c' at the end of ".elc")
(viii) Advisable: gunzip, byte compile, and load cc-cmds.el.gz too.
This is because it uses the "defsubst" (inline function) changed in
cc-engine.el.
> Thanks for being so responsive.
Thank you for such a high quality bug report.
> Yours Sincerely,
> John
--
Alan Mackenzie (Nuremberg, Germany).