From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#7917: [PATCH] cc-mode: not all templates are types Date: Sat, 27 Feb 2016 14:33:36 +1030 Message-ID: <87h9gulrzb.fsf@gnus.org> References: <87egc0uh24.fsf@gnus.org> <56CFF0EE.6070300@dancol.org> <87egc0rlpt.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456545926 27233 80.91.229.3 (27 Feb 2016 04:05:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Feb 2016 04:05:26 +0000 (UTC) Cc: dan.colascione@gmail.com, 7917@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 27 05:05:15 2016 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 1aZW82-00032r-L4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Feb 2016 05:05:14 +0100 Original-Received: from localhost ([::1]:53246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZW81-0000EA-UO for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 23:05:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZW7v-0000A8-RQ for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 23:05:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZW7q-0000r9-Th for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 23:05:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZW7q-0000qv-Qu; Fri, 26 Feb 2016 23:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZW7q-0000Th-H7; Fri, 26 Feb 2016 23:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 27 Feb 2016 04:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7917 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch confirmed X-Debbugs-Original-Cc: bug-cc-mode@gnu.org, Daniel Colascione , 7917@debbugs.gnu.org Original-Received: via spool by 7917-submit@debbugs.gnu.org id=B7917.14565458561775 (code B ref 7917); Sat, 27 Feb 2016 04:05:02 +0000 Original-Received: (at 7917) by debbugs.gnu.org; 27 Feb 2016 04:04:16 +0000 Original-Received: from localhost ([127.0.0.1]:48074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZW72-0000ST-Bz for submit@debbugs.gnu.org; Fri, 26 Feb 2016 23:04:15 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:51459) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZW6x-0000SJ-D8 for 7917@debbugs.gnu.org; Fri, 26 Feb 2016 23:04:11 -0500 Original-Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZW6X-0001mI-UU; Sat, 27 Feb 2016 05:03:42 +0100 In-Reply-To: <87egc0rlpt.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 26 Feb 2016 17:40:06 +1030") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aZW6X-0001mI-UU MailScanner-NULL-Check: 1457150623.4669@Z2L74Be5tPZtjbS1AIvWQQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:113927 Archived-At: Lars Ingebrigtsen writes: > Daniel Colascione writes: > >> For me --- empty scratch buffer, c++-mode, emacs -Q, pasting in >> this example, the name of the second function is fontified as a type, >> not a function name. In the third function, in the call to foo, foo >> is also fontified as a type, although it shouldn't be fontified as >> anything at all. > > Oh, yeah, that's true. And your patch fixes the issue. Does anybody have any objections to applying the patch? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no