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:12:27 +0000 Message-ID: <20160619151227.GD5875@acm.fritz.box> References: <57627D13.5090008@online.de> <5764F25B.4010204@online.de> <20160618171249.GA5796@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1466349160 25719 80.91.229.3 (19 Jun 2016 15:12:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2016 15:12:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 19 17:12:31 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 1bEeOk-0006tj-RB for ged-emacs-devel@m.gmane.org; Sun, 19 Jun 2016 17:12:30 +0200 Original-Received: from localhost ([::1]:39012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEeOk-0001kY-2g for ged-emacs-devel@m.gmane.org; Sun, 19 Jun 2016 11:12:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEeOd-0001kS-Jx for emacs-devel@gnu.org; Sun, 19 Jun 2016 11:12:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEeOX-0005D4-KT for emacs-devel@gnu.org; Sun, 19 Jun 2016 11:12:22 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:31424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEeOX-0005Cr-9l for emacs-devel@gnu.org; Sun, 19 Jun 2016 11:12:17 -0400 Original-Received: (qmail 88049 invoked by uid 3782); 19 Jun 2016 15:12:13 -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:12:12 +0200 Original-Received: (qmail 7754 invoked by uid 1000); 19 Jun 2016 15:12:27 -0000 Content-Disposition: inline In-Reply-To: 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:204515 Archived-At: Hello, Stefan. On Sun, Jun 19, 2016 at 10:36:52AM -0400, Stefan Monnier wrote: > > The question is if `font-lock-syntactic-keywords' really should be > > declared obsolete. > > From docu of `syntax-propertize-function': > > "The specified function may call `syntax-ppss' on any position > > before END, but it should not call `syntax-ppss-flush-cache', > > which means that it should not call `syntax-ppss' on some > > position and later modify the buffer on some earlier position." > > So "on any position" but not "on some position"? > > IMHO that's not ready. > That presumes that font-lock-syntactic-keywords does not suffer from > tricky interactions with syntax-ppss. Of course, that's not the case, > instead these are simply undocumented. Wouldn't the answer be simply to document these? I may be wrong here, but aren't these interactions only tricky when syntax-propertize-function is not nil? > Stefan -- Alan Mackenzie (Nuremberg, Germany).