From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: how to prevent font-lock from messing with a portion of text? Date: Mon, 26 Mar 2007 07:49:12 -0700 Message-ID: References: <460788B9.5000906@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174920606 9940 80.91.229.12 (26 Mar 2007 14:50:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 14:50:06 +0000 (UTC) Cc: Emacs-Devel To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 16:49:56 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVqW4-0006Vn-7W for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 16:49:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVqYJ-0005pH-En for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 09:52:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVqYF-0005p2-4H for emacs-devel@gnu.org; Mon, 26 Mar 2007 10:52:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVqYD-0005oo-QD for emacs-devel@gnu.org; Mon, 26 Mar 2007 10:52:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVqYD-0005ol-Hy for emacs-devel@gnu.org; Mon, 26 Mar 2007 09:52:01 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVqVx-0006cc-2m for emacs-devel@gnu.org; Mon, 26 Mar 2007 10:49:41 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l2QEnaio019912; Mon, 26 Mar 2007 09:49:36 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l2QCpAfa008730; Mon, 26 Mar 2007 08:49:33 -0600 Original-Received: from dhcp-amer-rmdc-csvpn-gw5-141-144-104-99.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 2561566601174920554; Mon, 26 Mar 2007 07:49:14 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <460788B9.5000906@gmail.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68608 Archived-At: > Sorry, I was a bit unclear. You can not be sure > font-lock-default-fontify-region is called. That depends on the setting > of font-lock-fontify-region-function. (And if this frame-work is used > for the fontifying.) > I guess if it is then your method might work. If the default fontify function is not used, then someone wants a non-default behavior. AFAIK, there is no way to know whether that desired behavior should respect `font-lock-ignore'. Mind-reading is not scheduled for addition before Emacs 27, AFAIK ;-). This seems similar to the MATCHER question. If `font-lock-ignore' or equivalent is added to Emacs, then this would need to be documented, so users understand it. IOW, `font-lock-ignore' is respected only by default fontifying and default unfontifying.