From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6935: 24.0.50; doc for `font-lock-maximum-decoration' Date: Tue, 31 Aug 2010 00:04:12 +0200 Message-ID: References: <0AEEE18115BA49E58E42C1604867D444@us.oracle.com> <94F453208A4B4F70B7C5F87CB2BE541C@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283206225 12983 80.91.229.12 (30 Aug 2010 22:10:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 22:10:25 +0000 (UTC) Cc: 6935@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 31 00:10:23 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqCYZ-0006OV-2C for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 00:10:23 +0200 Original-Received: from localhost ([127.0.0.1]:44616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqCYY-00028K-AK for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Aug 2010 18:10:22 -0400 Original-Received: from [140.186.70.92] (port=58125 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqCXs-0001sJ-OV for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 18:09:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqCXr-00056a-HC for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 18:09:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56918) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqCXr-00056M-Fi for bug-gnu-emacs@gnu.org; Mon, 30 Aug 2010 18:09:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OqCRS-0000Kh-GV; Mon, 30 Aug 2010 18:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Aug 2010 22:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6935 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6935-submit@debbugs.gnu.org id=B6935.12832057621272 (code B ref 6935); Mon, 30 Aug 2010 22:03:02 +0000 Original-Received: (at 6935) by debbugs.gnu.org; 30 Aug 2010 22:02:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqCR7-0000KT-BE for submit@debbugs.gnu.org; Mon, 30 Aug 2010 18:02:41 -0400 Original-Received: from impaqm4.telefonica.net ([213.4.138.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqCR4-0000KL-HZ for 6935@debbugs.gnu.org; Mon, 30 Aug 2010 18:02:39 -0400 Original-Received: from IMPmailhost6.adm.correo ([10.20.102.127]) by IMPaqm4.telefonica.net with bizsmtp id 0i3r1f00D2kvMAa3Qm4DpX; Tue, 31 Aug 2010 00:04:13 +0200 Original-Received: from ceviche.home ([88.7.11.192]) by IMPmailhost6.adm.correo with BIZ IMP id 0m4C1f00648cRdU1mm4D4l; Tue, 31 Aug 2010 00:04:13 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id 8B619660DF; Tue, 31 Aug 2010 00:04:12 +0200 (CEST) In-Reply-To: <94F453208A4B4F70B7C5F87CB2BE541C@us.oracle.com> (Drew Adams's message of "Mon, 30 Aug 2010 08:46:57 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 30 Aug 2010 18:03:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39844 Archived-At: >> we should work harder to make sure that the default level is OK >> for everyone. > That's silly. If there is a _default_ level then there are level > choices and a notion of level. Not silly at all: if the default level is OK for everyone, there's no need for the notion of "levels". > No one disagrees that the default level should provide minimal fontification. I do. And many others as well. That's why the default is and has always been to use the highest level there is. And even with this default, gnu.emacs.help was full (for several years, don't know about recent cases) of recommendations to add (setq font-lock-maximum-decoration t) to the user's .emacs. > The point is to allow users to move to a higher level if they so wish. The other way around. >> - "level" is the wrong way to think about this. Instead, we >> should have separate controls for different font-lock features. > Be specific. If you are agreeing that users should have choice and > control when it comes to the degree of font-locking, and you just > disagree with the current "level" mechanism, then propose > something specific. That's exactly what the above does: use separate controls (e.g. bool vars) for different features. > Note that in the case I cited the user had the ability to fine-tune > fontification, for example by customizing individual faces. But he > wanted a coarse-grain control, to change the _level_. I don't know that case, so can't judge why he wanted to change the level, nor why he wanted this control to be coarse. The notion of level is wrong, because there are different ways to characterize the complexity of fontification. E.g. one of them is the amount of work done to determine how to highlight the text, another is the number of distinct elements. The two aren't necessarily connected (I almost always want my highlighting to be as precise as possible, but I generally only want very few elements to be highlighted). BTW, from what you say, the notion of level was not needed for his problem since he could get the same result by tweaking faces. Now tweaking faces on a per-mode basis is not always easy, so we may need to improve this, but at least this case doesn't seem to be one that justifies the necessity of levels. Stefan