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#23818: 25.0.95.3: c-beginning-of-defun misbehaviour Date: 24 Jun 2016 14:43:33 -0000 Organization: muc.de e.V. Message-ID: <20160624144333.47491.qmail__4275.47156946293$1466779502$gmane$org@mail.muc.de> References: <87ziqeaxdi.fsf@linux-qg7d.fritz.box> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1466779502 20795 80.91.229.3 (24 Jun 2016 14:45:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2016 14:45:02 +0000 (UTC) To: 23818@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 24 16:44:54 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 1bGSLl-0002E8-HP for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 16:44:53 +0200 Original-Received: from localhost ([::1]:44014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGSLk-0006Ph-ON for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 10:44:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGSL3-0005Qd-Si for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 10:44:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGSL2-0003VI-2O for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 10:44:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGSKw-0003Ty-AT; Fri, 24 Jun 2016 10:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGSKw-0004qZ-0i; Fri, 24 Jun 2016 10:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 24 Jun 2016 14:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23818 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 23818-submit@debbugs.gnu.org id=B23818.146677941618593 (code B ref 23818); Fri, 24 Jun 2016 14:44:01 +0000 Original-Received: (at 23818) by debbugs.gnu.org; 24 Jun 2016 14:43:36 +0000 Original-Received: from localhost ([127.0.0.1]:54424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGSKW-0004po-6z for submit@debbugs.gnu.org; Fri, 24 Jun 2016 10:43:36 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:56173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGSKU-0004pg-QM for 23818@debbugs.gnu.org; Fri, 24 Jun 2016 10:43:35 -0400 Original-Received: (qmail 47492 invoked by uid 3782); 24 Jun 2016 14:43:33 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.3-RELEASE-p4 (amd64)) 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" Xref: news.gmane.org gmane.emacs.bugs:120002 Archived-At: Hello, Eli. In article you wrote: >> Date: 22 Jun 2016 08:54:29 -0000 >> From: Alan Mackenzie >> Cc: Rolf Ade [ .... ] > I don't understand how can CC Mode reliably distinguish the example in > the report from a function that returns a pointer to a function (in > which case what the current code does is correct). The solution to the bug involves, in part, configuring CC Mode so that it knows that "DBG" is a "macro with semicolon". The other part of the solution involves testing for such macros at the pertinent spot in c-beginning-of-decl-1. See my direct reply to the OP (not yet written). -- Alan Mackenzie (Nuremberg, Germany).