From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Global Font Lock by default Date: Mon, 31 Oct 2005 23:29:44 -0800 Message-ID: <200511010729.jA17TkKN014345@scanner2.ics.uci.edu> References: <200510311648.j9VGmgKN020532@scanner2.ics.uci.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130830506 10413 80.91.229.2 (1 Nov 2005 07:35:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2005 07:35:06 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 01 08:35:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWqfX-00022j-Aw for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2005 08:34:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWqfW-0000ZV-4S for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2005 02:34:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EWqbk-0008E6-LO for emacs-devel@gnu.org; Tue, 01 Nov 2005 02:31:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EWqbg-0008DO-5q for emacs-devel@gnu.org; Tue, 01 Nov 2005 02:30:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWqbe-0008Cw-W8 for emacs-devel@gnu.org; Tue, 01 Nov 2005 02:30:55 -0500 Original-Received: from [128.195.1.36] (helo=scanner2.ics.uci.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EWqbe-0003tx-Sy for emacs-devel@gnu.org; Tue, 01 Nov 2005 02:30:55 -0500 Original-Received: from vino.ics.uci.edu (dann@vino.ics.uci.edu [128.195.11.198]) by scanner2.ics.uci.edu (8.12.10/8.12.10) with ESMTP id jA17TkKN014345 for ; Mon, 31 Oct 2005 23:29:46 -0800 (PST) Original-To: emacs-devel@gnu.org Original-Lines: 37 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-99.4, required 5, J_CHICKENPOX_62, USER_IN_WHITELIST) 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:45224 Archived-At: Dan Nicolaescu writes: > "Richard M. Stallman" writes: > > > So now I think we are ready to enable font-lock by default. > > Would someone like to do that? > > I've done the first part of this: add to loadup.el the needed files > and increazed the puresize so that it does not overflow. > > I am not sure what is the right way to actually turn on font-lock by > default, so I didn't do that. (I think there are some subtleties > involving turning on global-font-lock-mode because it's defined using > defcustom). Can someone who knows how this is supposed to work do > this? Well, this patch seems to give good results in all my tests: *** loadup.el 31 Oct 2005 08:36:02 -0800 1.143 --- loadup.el 31 Oct 2005 23:21:16 -0800 *************** *** 209,214 **** --- 209,216 ---- (load "ediff-hook") (if (fboundp 'x-show-tip) (load "tooltip")) + (global-font-lock-mode t) + (customize-mark-as-set 'global-font-lock-mode) (message "%s" (garbage-collect)) ;If you want additional libraries to be preloaded and their Should I check it in? (BTW auto-compression-mode also seems to need a customize-mark-as-set)