From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Tue, 07 Jun 2005 14:23:56 -0400 Message-ID: <87ll5mjalb.fsf-monnier+emacs@gnu.org> References: <87y8a3mnz8.fsf@xs4all.nl> <200505260359.j4Q3xbj28809@raven.dms.auburn.edu> <87is16rsid.fsf-monnier+emacs@gnu.org> <200505261501.j4QF17h00246@raven.dms.auburn.edu> <200505271943.j4RJhj007341@raven.dms.auburn.edu> <200506070119.j571JlP18343@raven.dms.auburn.edu> <200506070155.j571t8Q18407@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118168789 11834 80.91.229.2 (7 Jun 2005 18:26:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2005 18:26:29 +0000 (UTC) Cc: emacs-devel@gnu.org, Luc Teirlinck , rms@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 07 20:26:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfikM-0000pa-Qk for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2005 20:24:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dfiqv-0005hW-Hf for ged-emacs-devel@m.gmane.org; Tue, 07 Jun 2005 14:31:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DfipN-0004ys-7C for emacs-devel@gnu.org; Tue, 07 Jun 2005 14:29:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DfipG-0004uw-TV for emacs-devel@gnu.org; Tue, 07 Jun 2005 14:29:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfipG-0004tV-Fz for emacs-devel@gnu.org; Tue, 07 Jun 2005 14:29:22 -0400 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DfinS-0003e2-Os; Tue, 07 Jun 2005 14:27:30 -0400 Original-Received: from alfajor ([67.71.116.59]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050607182359.ZDJW25800.tomts13-srv.bellnexxia.net@alfajor>; Tue, 7 Jun 2005 14:23:59 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id C80ADD7339; Tue, 7 Jun 2005 14:23:56 -0400 (EDT) Original-To: snogglethorpe@gmail.com In-Reply-To: (Miles Bader's message of "Tue, 7 Jun 2005 11:01:47 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:38274 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38274 > I suppose the answer is really "it depends". Many people probably > like some highlighting but not all. It seems the sort of thing that > might actually be best handled by the concept of font-lock levels, but > my impression is that they are not really used these days, and that > it's fruit-salad or nothing. I hate font-lock levels. They're very poorly defined and thus can't be used globally (you have to set them separately for each major mode) and they never give me the control I want (I generally want to turn off some parts of some level). One of the problems is that levels are generally chosen by the implementer to reflect the amount of work it takes to figure out what to highlight, so the user can reduce the level if the highlighting slows down his Emacs session. In my experience I want expensive highlighting but little of it (i.e. no fruit salad), so I often would rather turn off parts of the level-1 highlighting while I'd rather keep most/all of level 3 (for example). E.g. it's cheap to highlight every reserved keyword, so it's in level-1, but I generally can't care less about them. So I end up tweaking font-lock-keyword-face instead of font-lock-maximum-decoration. Stefan