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: Wed, 18 Nov 2015 20:37:15 +0200 Message-ID: <564CC55B.4060102@yandex.ru> References: 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 1447871850 16232 80.91.229.3 (18 Nov 2015 18:37:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2015 18:37:30 +0000 (UTC) To: "Wedler, Christoph" , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 18 19:37:29 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 1Zz7bk-0003cb-IV for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2015 19:37:28 +0100 Original-Received: from localhost ([::1]:37570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zz7bj-0000rn-Sv for ged-emacs-devel@m.gmane.org; Wed, 18 Nov 2015 13:37:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zz7bg-0000rf-7Q for emacs-devel@gnu.org; Wed, 18 Nov 2015 13:37:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zz7bb-0005hp-84 for emacs-devel@gnu.org; Wed, 18 Nov 2015 13:37:24 -0500 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:32941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zz7ba-0005hW-VD for emacs-devel@gnu.org; Wed, 18 Nov 2015 13:37:19 -0500 Original-Received: by wmec201 with SMTP id c201so292891522wme.0 for ; Wed, 18 Nov 2015 10:37:18 -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=KKIB62no+6mkk0jX+xBzE3Gf3PlPg+bXllIvjIJx0cM=; b=dSx4rDoTkr+fDSfH9gE4+Bhcf12ykV6Gmwjp/wv+SLTbi9DYSM1x3XTgucjcQUBcP3 X0XSu8T/Ua/1PWOLh+CWrRfzJTsW21olbgaGMRNLtEMCU1QXDf3pQLJaBH12IjyMqeLe TvuI9it7Q7gPlAZ5C5oHPJqnGaubKlnargMlKZHjwktiZCSz/IQ46lwfVae4VwmXxhjw S+UNM2UBeeJoZVyLpRddOvIdoxZ9O+PXSgl2QqibxolJt8Sy0GrjpYg4gGYKALVCl1+s nuHH6Of2cMEtGgApDHOQU6R5WVelXSw+8Pxy9vpnMTDCqAbvkEBmZ8ibovUjekCFxluE JkEg== X-Received: by 10.28.153.130 with SMTP id b124mr11723722wme.12.1447871838356; Wed, 18 Nov 2015 10:37:18 -0800 (PST) Original-Received: from [10.9.0.103] (nat.webazilla.com. [78.140.128.228]) by smtp.googlemail.com with ESMTPSA id u134sm3431568wmd.0.2015.11.18.10.37.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Nov 2015 10:37:17 -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::22a 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:194739 Archived-At: On 11/18/2015 08:06 PM, Wedler, Christoph wrote: > * Solution 1: the font-lock syntax table must not differ too much from > the normal syntax table, i.e., the function in I think this is the current consensus. It shouldn't differ in paren, comment or string syntax. IOW, it should be syntax-ppss-compatible with the main one. > syntax-propertize-function should behave the same. If so, it should > be probably documented. It should. > Any other ideas? Support different syntax tables in different parts of the buffer. That must be a part of our eventual multi-major-mode solution.