From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs 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 Message-ID: <20121205201047.GA3656__49755.3987581798$1354738707$gmane$org@acm.acm> References: <87txs5fbfo.fsf@gnu.org> <20121202181623.GB12129@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1354738693 13755 80.91.229.3 (5 Dec 2012 20:18:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2012 20:18:13 +0000 (UTC) Cc: Chong Yidong , 13046@debbugs.gnu.org, Vadim K To: John Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 05 21:18:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TgLQ9-0002qR-Fo for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2012 21:18:17 +0100 Original-Received: from localhost ([::1]:37795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgLPx-0004lA-Av for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2012 15:18:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgLPp-0004iA-8f for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2012 15:18:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgLPn-0008HN-A3 for bug-gnu-emacs@gnu.org; Wed, 05 Dec 2012 15:17:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgLPl-0008Gc-BV; Wed, 05 Dec 2012 15:17:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TgLPt-0000nT-PF; Wed, 05 Dec 2012 15:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 05 Dec 2012 20:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13046 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 13046-submit@debbugs.gnu.org id=B13046.13547386523024 (code B ref 13046); Wed, 05 Dec 2012 20:18:01 +0000 Original-Received: (at 13046) by debbugs.gnu.org; 5 Dec 2012 20:17:32 +0000 Original-Received: from localhost ([127.0.0.1]:55296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TgLPM-0000mg-NF for submit@debbugs.gnu.org; Wed, 05 Dec 2012 15:17:31 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:56807 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TgLPI-0000mW-Fq for 13046@debbugs.gnu.org; Wed, 05 Dec 2012 15:17:26 -0500 Original-Received: (qmail 14587 invoked by uid 3782); 5 Dec 2012 20:17:13 -0000 Original-Received: from acm.muc.de (pD9557B20.dip.t-dialin.net [217.85.123.32]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 05 Dec 2012 21:17:11 +0100 Original-Received: (qmail 4543 invoked by uid 1000); 5 Dec 2012 20:10:47 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67981 Archived-At: 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 , 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 ; 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 /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).