From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#7930: (24.0.50; Indentation problem in C-mode) Date: Thu, 27 Jan 2011 15:22:11 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296203669 29654 80.91.229.12 (28 Jan 2011 08:34:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 08:34:29 +0000 (UTC) To: "7930\@debbugs.gnu.org" <7930@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 28 09:34:25 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pijmj-0004g9-88 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jan 2011 09:34:25 +0100 Original-Received: from localhost ([127.0.0.1]:34515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PijXP-0006qE-9a for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jan 2011 03:18:35 -0500 Original-Received: from [140.186.70.92] (port=50307 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Piihw-0001VI-RM for bug-gnu-emacs@gnu.org; Fri, 28 Jan 2011 02:25:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Piihr-0007vM-PL for bug-gnu-emacs@gnu.org; Fri, 28 Jan 2011 02:25:24 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Piihi-0007sA-V0; Fri, 28 Jan 2011 02:25:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PiYFC-0005sT-UW; Thu, 27 Jan 2011 15:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 27 Jan 2011 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7930 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 7930-submit@debbugs.gnu.org id=B7930.129615924422507 (code B ref 7930); Thu, 27 Jan 2011 20:15:02 +0000 Original-Received: (at 7930) by debbugs.gnu.org; 27 Jan 2011 20:14:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiYEF-0005qy-R6 for submit@debbugs.gnu.org; Thu, 27 Jan 2011 15:14:04 -0500 Original-Received: from upton.red.cert.org ([192.88.209.60]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiYED-0005qP-JJ for 7930@debbugs.gnu.org; Thu, 27 Jan 2011 15:14:02 -0500 Original-Received: from bucknell.indigo.cert.org (bucknell.indigo.cert.org [10.60.10.121]) by upton.red.cert.org (8.13.8/8.13.8) with ESMTP id p0RKMCEY016788 for <7930@debbugs.gnu.org>; Thu, 27 Jan 2011 15:22:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cert.org; s=jthatj15xw2j; t=1296159732; bh=rsfRLLT/UwKca/qwPN1iuS8aD+KIAlNbJ6fUiL7zOHM=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type:Sender:Reply-To:Cc; b=UISX051INKoapPJEoCUbAORo6vW2CQ1GmSiUF4PAN6S+bxqImBzDnZTcYDhxWOpuz wQL3SbuyRntZnUNZ6ZJMP+LiWWb5PTC6MAoUViBAt5nDdpybxc6hFoezHG/vdDU9UH hF9xhl2QTtfv5jCMrZFN0jVp4YEO9ngIFtmXeBRU= Original-Received: from waterbuck.yellow.cert.org (waterbuck.yellow.cert.org [10.20.128.84]) by bucknell.indigo.cert.org (8.13.8/8.13.8/2.79) with ESMTP id p0RKMCbD008069 for <7930@debbugs.gnu.org>; Thu, 27 Jan 2011 15:22:12 -0500 Original-Received: (from mwd@localhost) by waterbuck.yellow.cert.org (8.13.8/8.13.8/Submit/1.6) id p0RKMBpk005430; Thu, 27 Jan 2011 15:22:11 -0500 X-Authentication-Warning: waterbuck.yellow.cert.org: mwd set sender to mwd@cert.org using -f In-Reply-To: (GNU bug Tracking System's message of "Thu, 27 Jan 2011 13:55:02 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 Jan 2011 15:15:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43690 Archived-At: I now can recreate this problem, although not minimally. Using the included file pdusource.c: emacs -Q pdusource.c M-g g 549 RET TAB This will cause the wrong-type-argument error. A bisection shows that this error was introduced in commit 191882, acm@muc.de-20101009195828-ajo6zapkxu8oluwz: Enhance fontification of declarators to take account of the presence/absence of "typedef". cc-engine.el (c-forward-type): New &optional param "brace-block-too". (c-forward-decl-or-cast-1): cdr of return value now indicates the presence of either or both of a "struct"-like keyword and "typedef". cc-fonts.el (c-complex-decl-matchers): Remove the heuristic fontification of declarators which follow a "}". (c-font-lock-declarations): Fontify declarators according to the presence/absence of "typedef". cc-langs.el (c-typedef-kwds c-typedef-key): New lang variable for "typedef". (c-typedef-decl-key): New lang variable built from c-typedef-decl-kwds. -- Michael Welsh Duggan (mwd@cert.org)