From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Clarification needed: syntax-propertize vs font-lock-syntax-table Date: Tue, 24 Nov 2015 13:35:04 +0200 Message-ID: <56544B68.90204@yandex.ru> References: <564CC55B.4060102@yandex.ru> <564F68C4.1020207@yandex.ru> <56536294.1000302@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1448364939 10706 80.91.229.3 (24 Nov 2015 11:35:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2015 11:35:39 +0000 (UTC) To: "Wedler, Christoph" , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 24 12:35:32 2015 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 1a1Bsf-0000H1-6r for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2015 12:35:29 +0100 Original-Received: from localhost ([::1]:37841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Bsg-0005jE-3N for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2015 06:35:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1BsN-0005gt-0P for emacs-devel@gnu.org; Tue, 24 Nov 2015 06:35:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1BsJ-00074A-QF for emacs-devel@gnu.org; Tue, 24 Nov 2015 06:35:10 -0500 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:33599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1BsJ-00073l-L3 for emacs-devel@gnu.org; Tue, 24 Nov 2015 06:35:07 -0500 Original-Received: by wmec201 with SMTP id c201so204153061wme.0 for ; Tue, 24 Nov 2015 03:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=q1ntKiG7Ydr462Dy3g2RKZWr28AXEdQvIfuDD+C/918=; b=gU4nHasEAMMmmmKo2fMUNnzI3929ahkDSRgrL04DceQETGK7Fu2B8lLNa3IM+89pKM Hya5jqfq2dbakhJ9GCyWYpaaAJiZdQgLIPE3A3kwsWB/weQunNoucf5VJXUSNF8VT3Rx heUf/0TMIx7GovTiRM99O5BX1Wu1gt79uByblXbxgxK804awLAkP8fLoiNYBNye5Hr/D O3q1kvGu96kb2bQRUuaFmPkLmtoWXGVdWn3L6oYG1WgYJM7pNK52CqruYLAbBYtxwPQK BlawF/4QxzoqBaY2XKkZ8dOlv3+dkxKk/KyPMHraDSfgf32UFi+gIs5cnhPOypT31odE NMbQ== X-Received: by 10.28.16.72 with SMTP id 69mr26115499wmq.100.1448364906919; Tue, 24 Nov 2015 03:35:06 -0800 (PST) Original-Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id wh10sm17795572wjb.45.2015.11.24.03.35.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Nov 2015 03:35:05 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c09::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195162 Archived-At: On 11/24/2015 10:58 AM, Wedler, Christoph wrote: > I now checked the code: it is done via jit-lock-after-change in > after-change-functions. As I have guessed, syntax-propertize currently > only works correctly if font-lock is switched on. font-lock depends on syntax-propertize. Not the other way around. > Yes, but navigation command like M-x forward-list do not depend on > font-lock, but they do depend on syntax-propertize (consider parentheses > in generic strings). Hm, actually, that has changed in ab21f61a552f038485d40218dfd94a16b843eb52. So yes, there's a difference between Emacs 24 and 25 here. Sorry for the confusion. > Ok, I'll name it syntax-ppss-open-positions (like (nth 0 ppss) is called > syntax-ppss-depth, and not syntax-ppss-list-depth). Sounds good. > Well, that was the point of the above function: in the former case, the > function body is changed to (mapcar 'car (nth 9 ppss)), and will stay > the same in the latter. Sorry, I lost you here. Former case?