From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Piotr Sipika Newsgroups: gmane.emacs.bugs Subject: bug#18970: 24.3; indent region fails in C++ mode after adding a #include Date: Fri, 07 Nov 2014 21:27:15 -0500 Message-ID: <545D7F83.3030502@gmail.com> References: <20141106115429.80515.qmail@mail.muc.de> <545D3F5E.8030801@gmail.com> <20141107232444.GE2865@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1415413720 9834 80.91.229.3 (8 Nov 2014 02:28:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 02:28:40 +0000 (UTC) Cc: 18970@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 03:28:32 2014 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 1XmvlN-00060Y-Al for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 03:28:29 +0100 Original-Received: from localhost ([::1]:34566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmvlM-0004UD-UA for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Nov 2014 21:28:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmvlC-0004Rd-NQ for bug-gnu-emacs@gnu.org; Fri, 07 Nov 2014 21:28:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xmvl5-00059J-7E for bug-gnu-emacs@gnu.org; Fri, 07 Nov 2014 21:28:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xmvkw-00057Y-Sz; Fri, 07 Nov 2014 21:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xmvkw-0007ik-Gb; Fri, 07 Nov 2014 21:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Piotr Sipika Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 08 Nov 2014 02:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18970 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 18970-submit@debbugs.gnu.org id=B18970.141541364129629 (code B ref 18970); Sat, 08 Nov 2014 02:28:02 +0000 Original-Received: (at 18970) by debbugs.gnu.org; 8 Nov 2014 02:27:21 +0000 Original-Received: from localhost ([127.0.0.1]:53271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmvkH-0007ho-5a for submit@debbugs.gnu.org; Fri, 07 Nov 2014 21:27:21 -0500 Original-Received: from mail-qa0-f48.google.com ([209.85.216.48]:47935) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XmvkE-0007hg-Mk for 18970@debbugs.gnu.org; Fri, 07 Nov 2014 21:27:19 -0500 Original-Received: by mail-qa0-f48.google.com with SMTP id x12so3162809qac.21 for <18970@debbugs.gnu.org>; Fri, 07 Nov 2014 18:27:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=s08vyDQqdqLcLYdHuv8knUxD6rHgOVUULsqhcCppeXU=; b=L4kwYXVYco6ZjckJgaZTy3bk5pp5eGHxvQLpYFaRA1ThpA7kPS5jjtnfsYPOHcl/SE qmBhwxGQET8AslXe91Wetm6ejw8C5NoCpHZaxMdeHXfK3OAgfB4ISBxFk2ETpc6sj6Lm hNUkCg2vHLhClxbLPuJIvnqWG2O8YmQBIO1RSvo4p8LgSHTs13m1K0+d+UFgGMWrUr+Y Ybu6zAOLDrq5yny7kHOXpE/AUM01zqpN5vXurwhsxhXQfLamNhlPI3mGq1QrCl6200QI 7c1rGVUzefiZjmHCbHiuAoOZEwsHcLLkeRo4uHFaDgQfvTQRexnM6vrQHzLqEQrlAMmV tcfA== X-Received: by 10.140.23.112 with SMTP id 103mr18275423qgo.73.1415413638257; Fri, 07 Nov 2014 18:27:18 -0800 (PST) Original-Received: from [192.168.1.5] (pool-108-5-32-69.nwrknj.east.verizon.net. [108.5.32.69]) by mx.google.com with ESMTPSA id q9sm9888106qat.21.2014.11.07.18.27.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Nov 2014 18:27:17 -0800 (PST) X-Google-Original-From: Piotr Sipika User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <20141107232444.GE2865@acm.acm> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:95697 > To confirm that your problem is the same one, would you please do the > following: > (i) Kill a line starting with "#include" with C-k, then yank it back > again with C-y. > (ii) Move point to the beginning of that line and type C-u C-x = > (`what-cursor-position' with a C-u prefix argument). > (iii) You should see something like this: Awesome directions, here's the output from my instance of that command: position: 110 of 3316 (3%), column: 0 character: # (displayed as #) (codepoint 35, #o43, #x23) preferred charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x23 syntax: . which means: punctuation category: .:Base, a:ASCII, l:Latin, r:Roman to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME" buffer code: #x23 file code: #x23 (encoded by coding system undecided-unix) display: by this font (glyph code) xft:-unknown-Liberation Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#x06) Character code properties: customize what to show name: NUMBER SIGN general-category: Po (Punctuation, Other) decomposition: (35) ('#') There are text properties here: c-in-sws t c-is-sws t category c-cpp-delimiter face font-lock-preprocessor-face fontified t risky-local-variable t syntax-table nil > If you see the syntax-table text property set to nil, as in the above, > then we have found the bug. As you can see that is the exact output indicating the bug. > Either upgrade your Emacs to version 24.4, or apply the following patch > to ..../emacs-24.3/lisp/progmodes/cc-mode.el: Thank you for the patch and further directions/suggestions. > Restart Emacs, and hopefully the bug will be gone. Please let me know > whether or not this works. Will do. Best! Piotr