From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to prevent font-lock (& jit-lock etc.) from refontifying? Date: Wed, 13 Oct 2004 18:55:06 -0400 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097708152 29323 80.91.229.6 (13 Oct 2004 22:55:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2004 22:55:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 14 00:55:38 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CHs1y-000398-00 for ; Thu, 14 Oct 2004 00:55:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CHs92-00021g-0h for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Oct 2004 19:02:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CHs8j-000207-Qn for help-gnu-emacs@gnu.org; Wed, 13 Oct 2004 19:02:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CHs8i-0001zq-VD for help-gnu-emacs@gnu.org; Wed, 13 Oct 2004 19:02:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CHs8i-0001zg-N8 for help-gnu-emacs@gnu.org; Wed, 13 Oct 2004 19:02:36 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CHs1U-0006zw-48 for help-gnu-emacs@gnu.org; Wed, 13 Oct 2004 18:55:08 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E53F48282D0; Wed, 13 Oct 2004 18:55:07 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id D319F4AC6E8; Wed, 13 Oct 2004 18:55:06 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id BBD748CA23; Wed, 13 Oct 2004 18:55:06 -0400 (EDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Wed, 13 Oct 2004 15:07:35 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.help:21241 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21241 > Previously, function font-lock-after-fontify-buffer did the trick: it would But this kind of use fell squarely in the category of ugly brittle nasty hacks, so you get what you paid for ;-) Using inhibit-modification-hooks is also a brittle ugly hack. I think in your case the best option is to use overlays. Stefan