GNU bug report logs - #26207
CC Mode 5.32.99 (C/l); add more keywords to c-macro-names-with-semicolon

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: cc-mode; Reported by: Mohammed Sadiq <sadiq@HIDDEN>; dated Tue, 21 Mar 2017 16:48:02 UTC; Maintainer for cc-mode is bug-cc-mode@HIDDEN.

Message received at 26207 <at> debbugs.gnu.org:


Received: (at 26207) by debbugs.gnu.org; 25 Mar 2017 18:47:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 25 14:47:22 2017
Received: from localhost ([127.0.0.1]:44614 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1crqif-0003p3-HO
	for submit <at> debbugs.gnu.org; Sat, 25 Mar 2017 14:47:22 -0400
Received: from ocolin.muc.de ([193.149.48.4]:57915 helo=mail.muc.de)
 by debbugs.gnu.org with smtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1crqid-0003nc-E8
 for 26207 <at> debbugs.gnu.org; Sat, 25 Mar 2017 14:47:19 -0400
Received: (qmail 89734 invoked by uid 3782); 25 Mar 2017 18:47:17 -0000
Received: from acm.muc.de (p548C6513.dip0.t-ipconnect.de [84.140.101.19]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sat, 25 Mar 2017 19:47:17 +0100
Received: (qmail 6860 invoked by uid 1000); 25 Mar 2017 18:46:39 -0000
Date: Sat, 25 Mar 2017 18:46:39 +0000
To: Mohammed Sadiq <sadiq@HIDDEN>
Subject: Re: bug#26207: CC Mode 5.32.99 (C/l); add more keywords to
 c-macro-names-with-semicolon
Message-ID: <20170325184639.GC2838@acm>
References: <87h92mh90p.fsf@rose> <20170325105108.GA2838@acm>
 <2074290984.32233.1490443421511@HIDDEN>
 <20170325122037.GB2838@acm>
 <1729511846.37410.1490453724555@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1729511846.37410.1490453724555@HIDDEN>
User-Agent: Mutt/1.7.2 (2016-11-26)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 26207
Cc: 26207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello, Mahammed.

On Sat, Mar 25, 2017 at 20:25:24 +0530, Mohammed Sadiq wrote:
> By the way, it seems like "Q_DECLARE" "Q_DEFINE" etc. are strings. But
> in the suggested case, G_BEGIN_DECLS and G_END_DECLS are strings
> while the others are regexps like "G_DEFINE[A-Z_]*" "G_DECLARE[A-Z_]".

I hadn't actually noticed that.  c-macro-names-with-semicolon can be
either a list of strings or a regular expression (but not a mixture of
the two ;-).

A regexp matching all four of the things above would look something
like:

    "G_\(\(BEGIN\|END\)_DECLS\|DE\(FINE\|CLARE\)[A-Z_]*\)"

(untested) (that's assuming that there should be a "*" at the end of
"G_DEECLARE[A-Z_]").  But here one must be careful - careful that there
aren't any macro names of that form which require one explicitly to
write a semicolon at their ends.

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-cc-mode@HIDDEN:
bug#26207; Package cc-mode. Full text available.

Message received at 26207 <at> debbugs.gnu.org:


Received: (at 26207) by debbugs.gnu.org; 25 Mar 2017 14:55:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 25 10:55:32 2017
Received: from localhost ([127.0.0.1]:44443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1crn6K-00030b-GY
	for submit <at> debbugs.gnu.org; Sat, 25 Mar 2017 10:55:32 -0400
Received: from us2-ob1-6.mailhostbox.com ([208.91.199.212]:59515)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sadiq@HIDDEN>) id 1crn6I-00030T-Gg
 for 26207 <at> debbugs.gnu.org; Sat, 25 Mar 2017 10:55:30 -0400
Received: from 172.16.214.67 (unknown [172.16.214.67])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: sadiq@HIDDEN)
 by us2.outbound.mailhostbox.com (Postfix) with ESMTPSA id 888A91804F2;
 Sat, 25 Mar 2017 14:55:24 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org;
 s=20160628; t=1490453724;
 bh=LCPO1SmoNCMSU3VcHkLK/Jw83nozgYeIwzIZOZOPgdI=;
 h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject;
 b=IrBwCUcEbTsPHBhrWGWXwETRgQLYE/5yZmTAyFUCpPYDO1h1Ji5GTxA7veIPhg4GY
 2eyFBkWzHJTnDFKWH2wxWZ/y0XRNY1FKEvq0+94IQEXNk+FhCLsyXeSZ0AM3t1NDLL
 PHgfvNlBHSkLRR5ZOr6IkoK5a47kOAC67zaq/chc=
Date: Sat, 25 Mar 2017 20:25:24 +0530 (IST)
From: Mohammed Sadiq <sadiq@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Message-ID: <1729511846.37410.1490453724555@HIDDEN>
In-Reply-To: <20170325122037.GB2838@acm>
References: <87h92mh90p.fsf@rose> <20170325105108.GA2838@acm>
 <2074290984.32233.1490443421511@HIDDEN>
 <20170325122037.GB2838@acm>
Subject: Re: bug#26207: CC Mode 5.32.99 (C/l); add more keywords to
 c-macro-names-with-semicolon
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Medium
X-Mailer: Open-Xchange Mailer v7.8.1-Rev14
X-Originating-Client: open-xchange-appsuite
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.2 cv=QvQu5R6d c=1 sm=1 tr=0
 a=Z8UyLsFUdm4H2nF0+O1kqg==:117 a=IkcTkHD0fZMA:10 a=7OGApnYywuNBO32C6boA:9
 a=QEXdDO2ut3YA:10
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 26207
Cc: 26207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Mohammed Sadiq <sadiq@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

By the way, it seems like "Q_DECLARE" "Q_DEFINE" etc. are strings. But
in the suggested case, G_BEGIN_DECLS and G_END_DECLS are strings
while the others are regexps like "G_DEFINE[A-Z_]*" "G_DECLARE[A-Z_]".




Information forwarded to bug-cc-mode@HIDDEN:
bug#26207; Package cc-mode. Full text available.

Message received at 26207 <at> debbugs.gnu.org:


Received: (at 26207) by debbugs.gnu.org; 25 Mar 2017 14:44:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 25 10:44:16 2017
Received: from localhost ([127.0.0.1]:44439 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1crmvQ-0002lJ-Ef
	for submit <at> debbugs.gnu.org; Sat, 25 Mar 2017 10:44:16 -0400
Received: from us2-ob4-6.mailhostbox.com ([208.91.199.215]:37002)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sadiq@HIDDEN>) id 1crmvO-0002lA-EO
 for 26207 <at> debbugs.gnu.org; Sat, 25 Mar 2017 10:44:15 -0400
Received: from 172.16.214.67 (unknown [172.16.214.67])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: sadiq@HIDDEN)
 by us2.outbound.mailhostbox.com (Postfix) with ESMTPSA id 6D90F1C18DE;
 Sat, 25 Mar 2017 14:44:13 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org;
 s=20160628; t=1490453053;
 bh=HPUEUT3/ee+1/HwTzlE5Adq36bq+OntesW6AVTzORv8=;
 h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject;
 b=WVzund5kG47jNZv/xu8GS99HpL/gloV07L4WROlZHX0Ozp96AIEYK+DP/UAeOTmvG
 1hNS4NZxcl2giFZN+5ZCiPDt3y5AkXVgEdflXCfw9GYYrP5optVsIsnysIvcbHyXTW
 GNM2S+O90WLpa6Q618gcrFMT8ElRpKJRt9Fd5Ft0=
Date: Sat, 25 Mar 2017 20:14:13 +0530 (IST)
From: Mohammed Sadiq <sadiq@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Message-ID: <1621646797.37198.1490453053447@HIDDEN>
In-Reply-To: <20170325122037.GB2838@acm>
References: <87h92mh90p.fsf@rose> <20170325105108.GA2838@acm>
 <2074290984.32233.1490443421511@HIDDEN>
 <20170325122037.GB2838@acm>
Subject: Re: bug#26207: CC Mode 5.32.99 (C/l); add more keywords to
 c-macro-names-with-semicolon
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Medium
X-Mailer: Open-Xchange Mailer v7.8.1-Rev14
X-Originating-Client: open-xchange-appsuite
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.2 cv=SJAybKnH c=1 sm=1 tr=0
 a=Z8UyLsFUdm4H2nF0+O1kqg==:117 a=IkcTkHD0fZMA:10 a=9Ipxw6DJjqwwC8orfzgA:9
 a=QEXdDO2ut3YA:10
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 26207
Cc: 26207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Mohammed Sadiq <sadiq@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)


> On March 25, 2017 at 5:50 PM Alan Mackenzie <acm@HIDDEN> wrote:
> <snip>
> But another thing that concerns me is, is there anything in the doc
> strings or manual, or is there anything missing, which might make it
> unclear that c-macro-names-with-semicolon is meant to be a configuration
> variable?

Some part of  the documentation of c-macro-names-with-semicolon is unclear to me:

"List of #defined symbols whose expansion ends with a semicolon..."
which may better be something like "List of #defined symbols that don't require
to be ended with a semicolon..."

Also as a note: some of the symbols I suggested have been used in GNU Emacs source
itself.

Thanks
>  
> -- 
> Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-cc-mode@HIDDEN:
bug#26207; Package cc-mode. Full text available.

Message received at 26207 <at> debbugs.gnu.org:


Received: (at 26207) by debbugs.gnu.org; 25 Mar 2017 12:21:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 25 08:21:17 2017
Received: from localhost ([127.0.0.1]:43279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1crkh2-0007YW-VI
	for submit <at> debbugs.gnu.org; Sat, 25 Mar 2017 08:21:17 -0400
Received: from ocolin.muc.de ([193.149.48.4]:12627 helo=mail.muc.de)
 by debbugs.gnu.org with smtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1crkh1-0007YO-TL
 for 26207 <at> debbugs.gnu.org; Sat, 25 Mar 2017 08:21:16 -0400
Received: (qmail 58227 invoked by uid 3782); 25 Mar 2017 12:21:14 -0000
Received: from acm.muc.de (p548C6513.dip0.t-ipconnect.de [84.140.101.19]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sat, 25 Mar 2017 13:21:13 +0100
Received: (qmail 4525 invoked by uid 1000); 25 Mar 2017 12:20:37 -0000
Date: Sat, 25 Mar 2017 12:20:37 +0000
To: Mohammed Sadiq <sadiq@HIDDEN>
Subject: Re: bug#26207: CC Mode 5.32.99 (C/l); add more keywords to
 c-macro-names-with-semicolon
Message-ID: <20170325122037.GB2838@acm>
References: <87h92mh90p.fsf@rose> <20170325105108.GA2838@acm>
 <2074290984.32233.1490443421511@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <2074290984.32233.1490443421511@HIDDEN>
User-Agent: Mutt/1.7.2 (2016-11-26)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 26207
Cc: 26207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello again, Mohammed.

On Sat, Mar 25, 2017 at 17:33:41 +0530, Mohammed Sadiq wrote:

> > On March 25, 2017 at 4:21 PM Alan Mackenzie <acm@HIDDEN> wrote:
> > c-macro-names-with-semicolon is a user option, a configuration variable.
> > The idea is, each user (or project) sets up this variable in her/his/its
> > .emacs, probably best done in the hook c-mode-common-hook.  So, any user
> > can set up all these "G_..." macros if her source code uses them.

> > Or have I missed something here?

> Hm. Probably No. But may be yes. :)

> In cc-vars.el, I saw '("Q_OBJECT" "Q_PROPERTY" "Q_DECLARE" "Q_ENUMS")
> set in GNU Emacs source. I believe that they are used in Qt. 

I think so too, but it's so long ago I can't remember for sure.  ;-)

> The values I said ("G_DECLARE", "G_DEFINE", "G_BEGIN_DECLS",
> "G_END_DECLS") are used extensively in GTk+ and is defined in GLib. As
> those both are GNU projects, I find it right to be included in GNU
> Emacs by default, especially since Qt variables are already included.

> I don't know if I'm wrong to say so.

No, maybe you're right, the default (which was intended as no more than
an illustration, rather than just having a null list as default)
probably should be symbols from a GNU project.  The four you list is a
short enough list not to be unreasonable as a default.  Let me mull this
over for a while.

But another thing that concerns me is, is there anything in the doc
strings or manual, or is there anything missing, which might make it
unclear that c-macro-names-with-semicolon is meant to be a configuration
variable?
 
-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-cc-mode@HIDDEN:
bug#26207; Package cc-mode. Full text available.

Message received at 26207 <at> debbugs.gnu.org:


Received: (at 26207) by debbugs.gnu.org; 25 Mar 2017 12:03:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 25 08:03:44 2017
Received: from localhost ([127.0.0.1]:43267 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1crkQ4-00079X-Ea
	for submit <at> debbugs.gnu.org; Sat, 25 Mar 2017 08:03:44 -0400
Received: from us2-ob1-2.mailhostbox.com ([162.210.70.53]:54752)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sadiq@HIDDEN>) id 1crkQ2-00079O-Ck
 for 26207 <at> debbugs.gnu.org; Sat, 25 Mar 2017 08:03:43 -0400
Received: from 172.16.214.67 (unknown [172.16.214.67])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: sadiq@HIDDEN)
 by us2.outbound.mailhostbox.com (Postfix) with ESMTPSA id 8147D181602;
 Sat, 25 Mar 2017 12:03:41 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org;
 s=20160628; t=1490443421;
 bh=zlz8HIOd524mVZWbQJvifr2lSNqElKrd9hvnutwVoSk=;
 h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject;
 b=bPJ5onQtv/f63plobKGlIdhfn3LkMGp2T9C6g/DcC5diIIOiI2VJfgRYq4ZHQzqHe
 drdKk8VYgOicSnSIHur/rDt8VLHtIwUhwhBYYgUuKr23XyP3GoepHWpF/KowLgbwJM
 ne9+wVjUgFkwo3YpZMCq1I01IrITddmQHJ1UejjY=
Date: Sat, 25 Mar 2017 17:33:41 +0530 (IST)
From: Mohammed Sadiq <sadiq@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
Message-ID: <2074290984.32233.1490443421511@HIDDEN>
In-Reply-To: <20170325105108.GA2838@acm>
References: <87h92mh90p.fsf@rose> <20170325105108.GA2838@acm>
Subject: Re: bug#26207: CC Mode 5.32.99 (C/l); add more keywords to
 c-macro-names-with-semicolon
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Medium
X-Mailer: Open-Xchange Mailer v7.8.1-Rev14
X-Originating-Client: open-xchange-appsuite
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.2 cv=QvQu5R6d c=1 sm=1 tr=0
 a=Z8UyLsFUdm4H2nF0+O1kqg==:117 a=IkcTkHD0fZMA:10 a=1xmIV3vg5Bxip30dBzoA:9
 a=QEXdDO2ut3YA:10
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 26207
Cc: 26207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Mohammed Sadiq <sadiq@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)


> On March 25, 2017 at 4:21 PM Alan Mackenzie <acm@HIDDEN> wrote:
> c-macro-names-with-semicolon is a user option, a configuration variable.
> The idea is, each user (or project) sets up this variable in her/his/its
> .emacs, probably best done in the hook c-mode-common-hook.  So, any user
> can set up all these "G_..." macros if her source code uses them.
> 
> Or have I missed something here?

Hm. Probably No. But may be yes. :)

In cc-vars.el, I saw '("Q_OBJECT" "Q_PROPERTY" "Q_DECLARE" "Q_ENUMS") set in GNU 
Emacs source. I believe that they are used in Qt. 

The values I said ("G_DECLARE", "G_DEFINE",
"G_BEGIN_DECLS", "G_END_DECLS") are used extensively in GTk+ and is defined
in GLib. As those both are GNU projects, I find it right to be included in GNU Emacs by
default, especially since Qt variables are already included.

I don't know if I'm wrong to say so.

> 
> > Thanks
> 
> -- 
> Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-cc-mode@HIDDEN:
bug#26207; Package cc-mode. Full text available.

Message received at 26207 <at> debbugs.gnu.org:


Received: (at 26207) by debbugs.gnu.org; 25 Mar 2017 10:51:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 25 06:51:49 2017
Received: from localhost ([127.0.0.1]:43260 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1crjIS-0003jC-QB
	for submit <at> debbugs.gnu.org; Sat, 25 Mar 2017 06:51:48 -0400
Received: from ocolin.muc.de ([193.149.48.4]:26065 helo=mail.muc.de)
 by debbugs.gnu.org with smtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1crjIQ-0003j4-LI
 for 26207 <at> debbugs.gnu.org; Sat, 25 Mar 2017 06:51:47 -0400
Received: (qmail 35318 invoked by uid 3782); 25 Mar 2017 10:51:45 -0000
Received: from acm.muc.de (p548C6513.dip0.t-ipconnect.de [84.140.101.19]) by
 colin.muc.de (tmda-ofmipd) with ESMTP;
 Sat, 25 Mar 2017 11:51:44 +0100
Received: (qmail 2933 invoked by uid 1000); 25 Mar 2017 10:51:08 -0000
Date: Sat, 25 Mar 2017 10:51:08 +0000
To: Mohammed Sadiq <sadiq@HIDDEN>
Subject: Re: bug#26207: CC Mode 5.32.99 (C/l); add more keywords to
 c-macro-names-with-semicolon
Message-ID: <20170325105108.GA2838@acm>
References: <87h92mh90p.fsf@rose>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87h92mh90p.fsf@rose>
User-Agent: Mutt/1.7.2 (2016-11-26)
X-Delivery-Agent: TMDA/1.1.12 (Macallan)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 26207
Cc: 26207 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello, Mohammed.

On Tue, Mar 21, 2017 at 22:17:18 +0530, Mohammed Sadiq wrote:

> Hi,

> Currently the following are the values set for
> `c-macro-names-with-semicolon':  ("Q_OBJECT" "Q_PROPERTY" "Q_DECLARE"
> "Q_ENUMS")

> The following glib (https://en.wikipedia.org/wiki/GLib) variables are
> extensively used in several projects including Gtk+. So it would be nice
> for those to be added too to `c-macro-names-with-semicolon':

> "G_BEGIN_DECLS" "G_END_DECLS" "G_DECLARE_FINAL_TYPE"
> "G_DECLARE_DERIVABLE_TYPE" "G_DECLARE_INTERFACE" "G_DEFINE_TYPE"
> "G_DEFINE_TYPE_WITH_PRIVATE" "G_DEFINE_ABSTRACT_TYPE"
> "G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE"

> may be 'G_DEFINE_', 'G_DECLARE_', 'G_BEGIN_DECLS', and 'G_END_DECLS'
> shall cover most scenarios.

c-macro-names-with-semicolon is a user option, a configuration variable.
The idea is, each user (or project) sets up this variable in her/his/its
.emacs, probably best done in the hook c-mode-common-hook.  So, any user
can set up all these "G_..." macros if her source code uses them.

Or have I missed something here?

> Thanks

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-cc-mode@HIDDEN:
bug#26207; Package cc-mode. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Mar 2017 16:48:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 21 12:48:01 2017
Received: from localhost ([127.0.0.1]:38202 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1cqMwz-0000Sl-3e
	for submit <at> debbugs.gnu.org; Tue, 21 Mar 2017 12:48:01 -0400
Received: from us2-ob3-3.mailhostbox.com ([208.91.199.218]:53829)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sadiq@HIDDEN>) id 1cqMwx-0000Sc-0c
 for submit <at> debbugs.gnu.org; Tue, 21 Mar 2017 12:47:59 -0400
Received: from rose (unknown [117.243.23.78])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: sadiq@HIDDEN)
 by us2.outbound.mailhostbox.com (Postfix) with ESMTPSA id BED95C928F
 for <submit <at> debbugs.gnu.org>; Tue, 21 Mar 2017 16:47:41 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org;
 s=20160628; t=1490114868;
 bh=bCnRcdIdA4Wkfny3+caqJKUlL8HOkQdxBR5JMeU3hJw=;
 h=From:To:Subject:Date;
 b=alFl3JujJPIbDqjR9pA9VD9mBENgv28RsVr+DNE8g+uNmdwxQWULIrDjWcAbB5BXW
 fhug2P73k/fJ4b2oGBoPaajuGsL5MQI+cMt8iBjxmVGMYu8PCKFssptWr2ziqKHHqX
 mv6oqw1cTLwbXO3xkM1I9jSjuEOwrLOeuwH2R0rU=
From: Mohammed Sadiq <sadiq@HIDDEN>
To: submit <at> debbugs.gnu.org
Subject: CC Mode 5.32.99 (C/l);
 add more keywords to c-macro-names-with-semicolon
X-Debbugs-Package: cc-mode
Date: Tue, 21 Mar 2017 22:17:18 +0530
Message-ID: <87h92mh90p.fsf@rose>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.2 cv=Ka+iiUQD c=1 sm=1 tr=0
 a=8nlEnAHryBPtExrd6CV7GQ==:117 a=8nlEnAHryBPtExrd6CV7GQ==:17
 a=IkcTkHD0fZMA:10 a=U5B1fWJYXpuWxbqr3SEA:9 a=QEXdDO2ut3YA:10
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)


Hi,

Currently the following are the values set for
`c-macro-names-with-semicolon':  ("Q_OBJECT" "Q_PROPERTY" "Q_DECLARE"
"Q_ENUMS")

The following glib (https://en.wikipedia.org/wiki/GLib) variables are
extensively used in several projects including Gtk+. So it would be nice
for those to be added too to `c-macro-names-with-semicolon':

"G_BEGIN_DECLS" "G_END_DECLS" "G_DECLARE_FINAL_TYPE"
"G_DECLARE_DERIVABLE_TYPE" "G_DECLARE_INTERFACE" "G_DEFINE_TYPE"
"G_DEFINE_TYPE_WITH_PRIVATE" "G_DEFINE_ABSTRACT_TYPE"
"G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE"

may be 'G_DEFINE_', 'G_DECLARE_', 'G_BEGIN_DECLS', and 'G_END_DECLS'
shall cover most scenarios.

Thanks

Emacs  : GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22=
.8)
 of 2017-03-21
Package: CC Mode 5.32.99 (C/l)
Buffer Style: gnu
c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-st=
ring-delim gen-comment-delim syntax-properties 1-bit)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
 c-basic-offset 2
 c-comment-only-line-offset '(0 . 0)
 c-indent-comment-alist '((anchored-comment column . 0) (end-block space . =
1)
			  (cpp-end-block space . 2))
 c-indent-comments-syntactically-p nil
 c-block-comment-prefix ""
 c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (awk-mode . "#+")
			   (other . "//+\\|\\**"))
 c-doc-comment-style '((java-mode . javadoc) (pike-mode . autodoc)
		       (c-mode . gtkdoc))
 c-cleanup-list '(scope-operator)
 c-hanging-braces-alist '((substatement-open before after)
			  (arglist-cont-nonempty))
 c-hanging-colons-alist nil
 c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist)
 c-backslash-column 48
 c-backslash-max-column 72
 c-special-indent-hook '(c-gnu-impose-minimum)
 c-label-minimum-indentation 1
 c-offsets-alist '((inexpr-class . +)
		   (inexpr-statement . +)
		   (lambda-intro-cont . +)
		   (inlambda . c-lineup-inexpr-block)
		   (template-args-cont c-lineup-template-args +)
		   (incomposition . +)
		   (inmodule . +)
		   (innamespace . +)
		   (inextern-lang . +)
		   (composition-close . 0)
		   (module-close . 0)
		   (namespace-close . 0)
		   (extern-lang-close . 0)
		   (composition-open . 0)
		   (module-open . 0)
		   (namespace-open . 0)
		   (extern-lang-open . 0)
		   (objc-method-call-cont
		    c-lineup-ObjC-method-call-colons
		    c-lineup-ObjC-method-call
		    +
		    )
		   (objc-method-args-cont . c-lineup-ObjC-method-args)
		   (objc-method-intro . [0])
		   (friend . 0)
		   (cpp-define-intro c-lineup-cpp-define +)
		   (cpp-macro-cont . +)
		   (cpp-macro . [0])
		   (inclass . +)
		   (stream-op . c-lineup-streamop)
		   (arglist-cont-nonempty
		    c-lineup-gcc-asm-reg
		    c-lineup-arglist
		    )
		   (arglist-cont c-lineup-gcc-asm-reg 0)
		   (comment-intro
		    c-lineup-knr-region-comment
		    c-lineup-comment
		    )
		   (catch-clause . 0)
		   (else-clause . 0)
		   (do-while-closure . 0)
		   (access-label . -)
		   (case-label . 0)
		   (substatement . +)
		   (statement-case-intro . +)
		   (statement . 0)
		   (brace-entry-open . 0)
		   (brace-list-entry . c-lineup-under-anchor)
		   (brace-list-close . 0)
		   (block-close . 0)
		   (block-open . 0)
		   (inher-cont . c-lineup-multi-inher)
		   (inher-intro . +)
		   (member-init-cont . c-lineup-multi-inher)
		   (member-init-intro . +)
		   (annotation-var-cont . +)
		   (annotation-top-cont . 0)
		   (topmost-intro . 0)
		   (knr-argdecl . 0)
		   (func-decl-cont . +)
		   (inline-close . 0)
		   (class-close . 0)
		   (class-open . 0)
		   (defun-block-intro . +)
		   (defun-close . 0)
		   (defun-open . 0)
		   (c . c-lineup-C-comments)
		   (string . c-lineup-dont-change)
		   (topmost-intro-cont
		    first
		    c-lineup-topmost-intro-cont
		    c-lineup-gnu-DEFUN-intro-cont
		    )
		   (brace-list-intro . c-lineup-arglist-intro-after-paren)
		   (brace-list-open . +)
		   (inline-open . 0)
		   (arglist-close . c-lineup-arglist)
		   (arglist-intro . c-lineup-arglist-intro-after-paren)
		   (statement-cont . +)
		   (statement-case-open . +)
		   (label . 0)
		   (substatement-label . 0)
		   (substatement-open . +)
		   (knr-argdecl-intro . 5)
		   (statement-block-intro . +)
		   )
 c-buffer-is-cc-mode 'c-mode
 c-tab-always-indent t
 c-syntactic-indentation t
 c-syntactic-indentation-in-macros t
 c-ignore-auto-fill '(string cpp code)
 c-auto-align-backslashes t
 c-backspace-function 'backward-delete-char-untabify
 c-delete-function 'delete-char
 c-electric-pound-behavior nil
 c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "gnu"))
 c-enable-xemacs-performance-kludge-p nil
 c-old-style-variable-behavior nil
 defun-prompt-regexp nil
 tab-width 8
 comment-column 32
 parse-sexp-ignore-comments t
 parse-sexp-lookup-properties t
 auto-fill-function nil
 comment-multi-line t
 comment-start-skip "\\(//+\\|/\\*+\\)\\s *"
 fill-prefix nil
 fill-column 70
 paragraph-start "[ 	]*\\(//+\\|\\**\\)[ 	]*$\\|^\f"
 adaptive-fill-mode t
 adaptive-fill-regexp "[ 	]*\\(//+\\|\\**\\)[ 	]*\\([ 	]*\\([-=E2=80=93!|#%=
;>*=C2=B7=E2=80=A2=E2=80=A3=E2=81=83=E2=97=A6]+[ 	]*\\)*\\)"
 )




Acknowledgement sent to Mohammed Sadiq <sadiq@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-cc-mode@HIDDEN. Full text available.
Report forwarded to bug-cc-mode@HIDDEN:
bug#26207; Package cc-mode. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.