From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: font-lock-syntactic-keywords obsolet? Date: Sun, 19 Jun 2016 15:26:16 +0000 Message-ID: <20160619152616.GF5875@acm.fritz.box> References: <5764F25B.4010204@online.de> <20160618171249.GA5796@acm.fritz.box> <20160619151227.GD5875@acm.fritz.box> <58741f8e-96f1-4d11-4dd9-d95a061a8ce8@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1466349987 5430 80.91.229.3 (19 Jun 2016 15:26:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2016 15:26:27 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 19 17:26:17 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bEec4-0008GC-43 for ged-emacs-devel@m.gmane.org; Sun, 19 Jun 2016 17:26:16 +0200 Original-Received: from localhost ([::1]:39061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEec3-0000K1-Ax for ged-emacs-devel@m.gmane.org; Sun, 19 Jun 2016 11:26:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEebx-0000Ia-TW for emacs-devel@gnu.org; Sun, 19 Jun 2016 11:26:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEebs-0008Ty-Sq for emacs-devel@gnu.org; Sun, 19 Jun 2016 11:26:08 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:41898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEebs-0008Ts-Im for emacs-devel@gnu.org; Sun, 19 Jun 2016 11:26:04 -0400 Original-Received: (qmail 94116 invoked by uid 3782); 19 Jun 2016 15:26:03 -0000 Original-Received: from acm.muc.de (p4FC46D0C.dip0.t-ipconnect.de [79.196.109.12]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 19 Jun 2016 17:26:02 +0200 Original-Received: (qmail 7841 invoked by uid 1000); 19 Jun 2016 15:26:16 -0000 Content-Disposition: inline In-Reply-To: <58741f8e-96f1-4d11-4dd9-d95a061a8ce8@yandex.ru> User-Agent: Mutt/1.5.24 (2015-08-30) 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 X-Received-From: 193.149.48.3 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:204521 Archived-At: Hello, Dmitry. On Sun, Jun 19, 2016 at 06:18:20PM +0300, Dmitry Gutov wrote: > On 06/19/2016 06:12 PM, Alan Mackenzie wrote: > > Wouldn't the answer be simply to document these? > "Simply" is a curse word in software development. Then I'll go and scrub my tongue out. :-) > > I may be wrong here, but aren't these interactions only tricky when > > syntax-propertize-function is not nil? > CC Mode doesn't use font-lock-syntactic-keywords either, does it? No it doesn't, but it was under consideration at one stage. font-lock-syntactic-keywords can be a good solution if the syntax-table properties are only needed for fontification, which isn't the case in CC Mode (and hasn't been the case since (at least) syntax-table properties started being applied to C++ template delimiters). > Please don't advocate things you don't understand the implications of. Have I been doing that? I don't think so. -- Alan Mackenzie (Nuremberg, Germany).