From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: cc-mode: Make all parameters introduced in Emacs 26 optional Date: Sat, 3 Feb 2018 11:44:51 +0000 Message-ID: <20180203114451.GA4806@ACM> References: <1516608561.1943450.1243462056.1A47A60F@webmail.messagingengine.com> <20180122203254.GA4888@ACM> <87k1vuwr3p.fsf@ahungry.com> <87fu6iwqfu.fsf@ahungry.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1517658801 7322 195.159.176.226 (3 Feb 2018 11:53:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Feb 2018 11:53:21 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: jostein@kjonigsen.net, emacs-devel@gnu.org To: Matthew Carter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 03 12:53:17 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehwNa-00019P-SF for ged-emacs-devel@m.gmane.org; Sat, 03 Feb 2018 12:53:10 +0100 Original-Received: from localhost ([::1]:47558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehwPa-0000yX-73 for ged-emacs-devel@m.gmane.org; Sat, 03 Feb 2018 06:55:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehwOn-0000xD-1I for emacs-devel@gnu.org; Sat, 03 Feb 2018 06:54:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehwOj-0005aU-TX for emacs-devel@gnu.org; Sat, 03 Feb 2018 06:54:25 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:39105 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ehwOj-0005WB-Mb for emacs-devel@gnu.org; Sat, 03 Feb 2018 06:54:21 -0500 Original-Received: (qmail 54803 invoked by uid 3782); 3 Feb 2018 11:54:16 -0000 Original-Received: from acm.muc.de (p548C63B0.dip0.t-ipconnect.de [84.140.99.176]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 03 Feb 2018 12:54:15 +0100 Original-Received: (qmail 4828 invoked by uid 1000); 3 Feb 2018 11:44:51 -0000 Content-Disposition: inline In-Reply-To: <87fu6iwqfu.fsf@ahungry.com> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222463 Archived-At: Hello, Matthew. On Sat, Feb 03, 2018 at 01:13:57 -0500, Matthew Carter wrote: > Matthew Carter writes: > > Somewhat on this subject - recent versions of Emacs have seemed to have > > changed single quotes with text between the quotes with a length greater > > than 1 to use a warn font face on the quotes, instead of the font string > > face (likely because in C the single quote denotes a char, .... That's indeed what's been changed. > > .... but in many of the derived modes that cc-mode mentions in it's > > own comment set (php-mode, dart-mode etc.), a single quoted string > > and double quoted string are used interchangeably). Ah. This is indeed a CC Mode bug. > > Does cc-mode have a setting to correct this and restore the old behavior? It doesn't, but it will soon get one. This will be a "lang variable", to be set by each derived mode appropriately, as part of the language definition. > I hate to respond to my own post, but I have tracked this down to > #'c-parse-quotes-after-change (defined in cc-mode.el). I don't hate it at all - it saves me work. :-) Thanks indeed for taking the trouble to report this bug. > -- > Matthew Carter (m@ahungry.com) > http://ahungry.com -- Alan Mackenzie (Nuremberg, Germany).