unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* font-lock basics?
@ 2005-01-31  4:03 Miles Bader
  2005-01-31 13:36 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Miles Bader @ 2005-01-31  4:03 UTC (permalink / raw)


Is there some trick to using font-lock?

I tried the simplest thing I could think of:

  (progn
    (font-lock-mode -1)
    (kill-all-local-variables)
    (font-lock-add-keywords nil '(("high" . font-lock-keyword-face)))
    (font-lock-mode t))

on the following text in a buffer:

   Oh how I love high society.

... and .... no highlighted keywords.

What's up?

Here's the resulting value of font-lock-keywords:

   font-lock-keywords's value is 
   (t
    (("high" . font-lock-keyword-face))
    ("high"
     (0 font-lock-keyword-face)))

   Local in buffer asdf; global value is nil

-Miles
-- 
.Numeric stability is probably not all that important when you're guessing.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-01-31 17:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31  4:03 font-lock basics? Miles Bader
2005-01-31 13:36 ` Stefan Monnier
2005-01-31 15:43   ` Francis Litterio
2005-01-31 16:14     ` Francis Litterio
2005-01-31 16:29     ` Stefan Monnier
2005-01-31 17:31       ` Francis Litterio

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).