From: Alan Mackenzie <acm@muc.de>
To: Matthew Carter <m@ahungry.com>
Cc: jostein@kjonigsen.net, emacs-devel@gnu.org
Subject: Re: cc-mode: Make all parameters introduced in Emacs 26 optional
Date: Sat, 3 Feb 2018 11:44:51 +0000 [thread overview]
Message-ID: <20180203114451.GA4806@ACM> (raw)
In-Reply-To: <87fu6iwqfu.fsf@ahungry.com>
Hello, Matthew.
On Sat, Feb 03, 2018 at 01:13:57 -0500, Matthew Carter wrote:
> Matthew Carter <m@ahungry.com> 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).
next prev parent reply other threads:[~2018-02-03 11:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-22 8:09 cc-mode: Make all parameters introduced in Emacs 26 optional Jostein Kjønigsen
2018-01-22 20:32 ` Alan Mackenzie
2018-02-03 5:59 ` Matthew Carter
2018-02-03 6:13 ` Matthew Carter
2018-02-03 11:44 ` Alan Mackenzie [this message]
2019-03-30 13:51 ` Alan Mackenzie
2019-03-30 16:39 ` Stefan Monnier
2019-03-30 19:42 ` Alan Mackenzie
2019-03-30 20:17 ` Stefan Monnier
2019-03-30 21:53 ` Ergus
2018-03-12 20:16 ` Jostein Kjønigsen
2018-03-12 22:40 ` Stefan Monnier
2018-03-12 23:29 ` Clément Pit-Claudel
2018-03-13 1:00 ` Stefan Monnier
2018-03-13 20:08 ` Jostein Kjønigsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180203114451.GA4806@ACM \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=jostein@kjonigsen.net \
--cc=m@ahungry.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).