From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: font-lock-maximum-decoration should be 2 by default? Date: Sun, 19 Aug 2012 19:48:08 +0300 Message-ID: <83wr0ude0n.fsf@gnu.org> References: <87wr0x8zxj.fsf@gmail.com> <831uj5bnid.fsf@gnu.org> <87obm98trc.fsf@gmail.com> <95FA6116C6194DAAA658F916B48C5E23@us.oracle.com> <874no12tan.fsf_-_@gmail.com> <83y5ld9seg.fsf@gnu.org> <177186CBFE1741FCBBB8F3D2A57ACB00@us.oracle.com> <83wr0wadnw.fsf@gnu.org> <877gsv7grw.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1345394886 31541 80.91.229.3 (19 Aug 2012 16:48:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2012 16:48:06 +0000 (UTC) Cc: spinuvit@gmail.com, emacs-devel@gnu.org, drew.adams@oracle.com, jasonr@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 19 18:48:06 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 1T38fV-0001Ug-Jc for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2012 18:48:05 +0200 Original-Received: from localhost ([::1]:54961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T38fU-00010K-Co for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2012 12:48:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T38fR-000103-6M for emacs-devel@gnu.org; Sun, 19 Aug 2012 12:48:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T38fQ-00007x-1q for emacs-devel@gnu.org; Sun, 19 Aug 2012 12:48:01 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:43629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T38fP-00007n-PL; Sun, 19 Aug 2012 12:47:59 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M9000J00H9ALR00@a-mtaout20.012.net.il>; Sun, 19 Aug 2012 19:47:52 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9000IC0HBSXIE0@a-mtaout20.012.net.il>; Sun, 19 Aug 2012 19:47:52 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:152681 Archived-At: > From: Andreas Schwab > Cc: Eli Zaretskii , spinuvit@gmail.com, Drew Adams , emacs-devel@gnu.org > Date: Sun, 19 Aug 2012 12:34:48 +0200 > > > *** lisp/font-lock.el 1997-02-21 09:36:18 +0000 > > --- lisp/font-lock.el 1997-03-15 13:19:12 +0000 > > *************** > > *** 190,196 **** > > If a number, only buffers greater than this size have fontification messages.") > > > > ;;;###autoload > > ! (defvar font-lock-maximum-decoration nil > > "*Maximum decoration level for fontification. > > If nil, use the default decoration (typically the minimum available). > > If t, use the maximum decoration available. > > --- 190,196 ---- > > If a number, only buffers greater than this size have fontification messages.") > > > > ;;;###autoload > > ! (defvar font-lock-maximum-decoration t > > "*Maximum decoration level for fontification. > > If nil, use the default decoration (typically the minimum available). > > If t, use the maximum decoration available. > > *************** > > That looks rather like an accident. Not an accident: 1997-03-15 Simon Marshall * font-lock.el (font-lock-keyword-depth): New function. Use it wherever extra types are used to calculate parenthesis depth. (c-font-lock-extra-types, c++-font-lock-extra-types) (objc-font-lock-extra-types, java-font-lock-extra-types) (font-lock-keywords): Doc fix. (font-lock-defaults, font-lock-defaults-alist): Doc switch. (font-lock-maximum-decoration): Default to t. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^