Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: font-lock, or: When is "require" required?
Date: Fri, 16 Apr 2004 17:32:22 GMT	[thread overview]
Message-ID: <jwvfzb3esve.fsf-monnier+gnu.emacs.gnus@gnu.org> (raw)
In-Reply-To: <ut5k70g7qoy.fsf@havengel.ii.uib.no>

> | > 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


      parent reply	other threads:[~2004-04-16 17:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ut5brlt9rhv.fsf@havengel.ii.uib.no>
     [not found] ` <jwvk70hgqo5.fsf-monnier+gnu.emacs.gnus@gnu.org>
2004-04-15 16:54   ` Stefan Monnier
     [not found]   ` <ut5k70g7qoy.fsf@havengel.ii.uib.no>
2004-04-16 17:32     ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvfzb3esve.fsf-monnier+gnu.emacs.gnus@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).