From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: On multi-line font lock Date: Sat, 16 Sep 2017 09:14:44 -0400 Message-ID: References: <87o9qedrr9.fsf@holos> <87zi9uolsy.fsf@udel.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505567723 10472 195.159.176.226 (16 Sep 2017 13:15:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Sep 2017 13:15:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Mark Oteiza Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 16 15:15:15 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtCwD-0002Qi-JZ for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Sep 2017 15:15:13 +0200 Original-Received: from localhost ([::1]:57306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtCwK-0000dx-PF for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Sep 2017 09:15:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtCvr-0000dN-Ot for help-gnu-emacs@gnu.org; Sat, 16 Sep 2017 09:14:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtCvo-0000yd-JZ for help-gnu-emacs@gnu.org; Sat, 16 Sep 2017 09:14:51 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:36127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtCvo-0000xZ-Fe for help-gnu-emacs@gnu.org; Sat, 16 Sep 2017 09:14:48 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v8GDEixV028249; Sat, 16 Sep 2017 09:14:44 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 117EA66262; Sat, 16 Sep 2017 09:14:44 -0400 (EDT) In-Reply-To: <87zi9uolsy.fsf@udel.edu> (Mark Oteiza's message of "Sat, 16 Sep 2017 08:44:13 -0400") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6117=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6117> : inlines <6070> : streams <1763259> : uri <2501362> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114289 Archived-At: > I see. I feel that's not really explained in the docs, but I also > haven't yet looked at the source. I don't think code should rely on this anyway. > I get the idea that I could also use syntax rules to apply the > font-lock-multiline property, so I'll try that as well. Yes, it's probably easier. This said, the jit-lock delay is not something specific to mailcap syntax: it's just a preference of yours and it probably applies to all major modes. So a better fix for this would be to work on jit-lock to offer an option for jit-lock-contextually to be instantaneous. Stefan