From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3720 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.gnus.user Subject: Re: font-lock, or: When is "require" required? Date: Fri, 16 Apr 2004 17:32:22 GMT Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669742 20041 80.91.229.2 (31 Jan 2006 01:09:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:09:02 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:32:39 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news01.chello.no!amsnews01.chello.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!news.glorb.com!cyclone.bc.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Sender: monnier@asado.iro.umontreal.ca Original-Newsgroups: gnu.emacs.gnus,gnu.emacs.help Original-Followup-To: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1082136742 132.204.24.84 (Fri, 16 Apr 2004 13:32:22 EDT) Original-NNTP-Posting-Date: Fri, 16 Apr 2004 13:32:22 EDT X-Received-Date: Fri, 16 Apr 2004 19:31:36 MET DST (news01.chello.no) Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:3861 Original-Lines: 24 X-Gnus-Article-Number: 3861 Tue Jan 17 17:32:39 2006 Xref: news.gmane.org gmane.emacs.gnus.user:3720 Archived-At: > | > Please read the INSTALL.CVS file. Including the last 2 lines. > | > | Oops: someone pointed out that what I meant was not in the last two > | lines any more. So let's say "the last 4 lines before the Note on > | SHH access to CVS". > The point of my posting was that this problem led me to two questions: > Would it be right to use (require 'font-lock) to fix this problem? That's one correct way to fix it, yes. Another (better IMO) would be to customize your faces in a different way, e.g. by using M-x customize-face. > When (and how) do you know when to use (require)? Good question. My take on it is that if you need (require 'foo) it's either that you're not doing things in the recommended way, or that there's a bug/misfeature (a missing autoload or somesuch). But sometimes the bug/misfeatures is too difficult to fix compared to the benefit, so such problems do exist without being fixed. Stefan