From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.devel Subject: Re: font-lock-maximum-decoration and how to make a default font-lock lower than maximal? Date: Fri, 17 Aug 2012 16:42:31 +0200 Organization: EUR Message-ID: <87obm98trc.fsf@gmail.com> References: <87wr0x8zxj.fsf@gmail.com> <831uj5bnid.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345214568 9946 80.91.229.3 (17 Aug 2012 14:42:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2012 14:42:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 17 16:42:48 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T2Nl8-0006tQ-5k for ged-emacs-devel@m.gmane.org; Fri, 17 Aug 2012 16:42:46 +0200 Original-Received: from localhost ([::1]:52674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2Nl7-0007j9-36 for ged-emacs-devel@m.gmane.org; Fri, 17 Aug 2012 10:42:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2Nl3-0007j3-Nu for emacs-devel@gnu.org; Fri, 17 Aug 2012 10:42:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2Nl2-0000jJ-F0 for emacs-devel@gnu.org; Fri, 17 Aug 2012 10:42:41 -0400 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:51199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2Nkx-0000i9-FM; Fri, 17 Aug 2012 10:42:35 -0400 Original-Received: by eaaf11 with SMTP id f11so1291253eaa.0 for ; Fri, 17 Aug 2012 07:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=lVEASFgDD1aEN+kWC+DzTWSjvctQLgaGbm/iTe9l4gs=; b=NF9QCCz6VL9+jRdIcnIwqULgRqrYNtntGinRPXzwSZzxibRnTpQl2mhhmL9bYtlTtK JwMBqOfsA/GntijOEfpEM+1OCHUuu8Y72l89v5eSyqyynWJH+kPB2FPLMtxK5PulJwyA oQwCADqQPJPiCcV5689WJnd78ZIUo/K+CAqS3fSXHCQmanXoJAkVME5Ax4evO/naCk6R u3XgZJe1xvpni44ZJYCJ35UNsQoVpXu/g+j1dtS+5wyylM1nTGc2rDvHDSpip7Z4G9YX Jn2RYgZE61o4kt2abODGazu46dFnMrzaSSDo/qK8BBd3SfYCQZTon7Vtt/db1SVpfQGb t4pw== Original-Received: by 10.14.202.131 with SMTP id d3mr5046046eeo.32.1345214554348; Fri, 17 Aug 2012 07:42:34 -0700 (PDT) Original-Received: from localhost ([130.115.113.50]) by mx.google.com with ESMTPS id m45sm20602076eep.16.2012.08.17.07.42.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2012 07:42:32 -0700 (PDT) In-Reply-To: <831uj5bnid.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 Aug 2012 17:29:14 +0300") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152613 Archived-At: >> Eli Zaretskii >> on Fri, 17 Aug 2012 17:29:14 +0300 wrote: >> From: Vitalie Spinu >> Date: Fri, 17 Aug 2012 14:29:12 +0200 >> >> It looks to me that emacs should set font-lock-maximum-decoration to a >> number instead to `t' by default. Then mode developers can easily decide >> what font-lock to activate by default by setting appropriate keywords up >> to that level only, and everything else on a higher level. > I think it's not up to the mode developer to decide that. It's up to > the user. So you as developer should provide all the fontifications > your users may wish to have, and let them decide what to activate. You mean "let them decide what to deactivate"? All levels are activated by default (font-lock-maximum-decoration is t). And obviously some guys (may be including the developer) don't like that. Vitalie.