From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ikumi Keita Newsgroups: gmane.emacs.devel Subject: Re: Giving "text quotes" syntax in font-lock-syntax-table only Date: Wed, 03 Jun 2020 17:12:21 +0900 Message-ID: <25497.1591171941@localhost> References: <50114.1589957638@localhost> <55185.1589981051@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="24568"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 03 10:17:10 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgOaD-0006IL-Q5 for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Jun 2020 10:17:09 +0200 Original-Received: from localhost ([::1]:39662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgOaC-0003XR-Sg for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Jun 2020 04:17:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgOVg-0005Y2-06 for emacs-devel@gnu.org; Wed, 03 Jun 2020 04:12:28 -0400 Original-Received: from smtp1a.inetd.co.jp ([210.129.88.11]:51840) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgOVe-0000tq-A6 for emacs-devel@gnu.org; Wed, 03 Jun 2020 04:12:27 -0400 Original-Received: from localhost (42-146-134-146.rev.home.ne.jp [42.146.134.146]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 133D26C; Wed, 3 Jun 2020 17:12:22 +0900 (JST) In-reply-to: Comments: In-reply-to Stefan Monnier message dated "Tue, 02 Jun 2020 14:46:33 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 Content-ID: <25496.1591171941.1@localhost> Received-SPF: pass client-ip=210.129.88.11; envelope-from=ikumi@ikumi.que.jp; helo=smtp1a.inetd.co.jp X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/03 04:12:22 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251789 Archived-At: Hi Stefan, >>>>> Stefan Monnier writes: > I see you (plural) decided to switch to highlighting math elements using > regexps rather than the syntax-table. That sounds like a wise choice. Thanks. It is lucky that we have texmathp.el, a smart utility created by Carsten Dominik. It gives us a way practical enough to identify whether a given position of latex document buffer is in math mode or not. > Maybe this actually argues that `font-lock-fontify-syntactically-region` > should use `font-lock-syntax-table` rather than `syntax-ppss-table` and > should refrain from using `syntax-ppss` when that syntax-table is > different from that of syntax-ppss. Maybe. I suppose that it should be documented, for the time being, that SYNTAX-ALIST entry of `font-lock-defaults' may not introduce dratistic change in syntax table such as changing assignments of "string quotes" syntax. Regards, Ikumi Keita