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: Thu, 04 Jun 2020 22:36:32 +0900 Message-ID: <32983.1591277792@localhost> References: <50114.1589957638@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="110604"; 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 Thu Jun 04 15:37:47 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 1jgq43-000Sev-An for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jun 2020 15:37:47 +0200 Original-Received: from localhost ([::1]:33252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgq41-0000lf-Jr for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jun 2020 09:37:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgq3X-0000JG-TZ for emacs-devel@gnu.org; Thu, 04 Jun 2020 09:37:15 -0400 Original-Received: from smtp1a.inetd.co.jp ([210.129.88.11]:56098) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgq2z-0005sm-D9 for emacs-devel@gnu.org; Thu, 04 Jun 2020 09:37:15 -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 CEE2D61; Thu, 4 Jun 2020 22:36:35 +0900 (JST) In-reply-to: Comments: In-reply-to Stefan Monnier message dated "Wed, 03 Jun 2020 10:12:59 -0400." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 Content-ID: <32982.1591277791.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/04 09:36:36 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:251852 Archived-At: Hi Stefan, >>>>> Stefan Monnier writes: > Could you test the patch below to see if it makes the old code > work correctly? Yes, the fontification doesn't get scrambled with this modification. If I understand correctly, fontification still can fail even with this fix, if `font-lock-syntax-table' is modified after font lock mode is enabled. So I think it's preferable to advertise that `font-lock-syntax-table' should not modified directly, unless the modification is restricted within translation between ".", "w" and "_", once after font lock mode is enabled. Regards, Ikumi Keita