🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #88059

font-lock-fontify-region doesn't seem to work right

#88059
From: tim werner
Date: Sun, 07 Aug 1994 04:25
27 lines
1599 bytes
Hi,

In emacs-19.25, with face-lock 3.03, using font-lock-fontify-region seems
to re-fontify only the "comment", and "string" faces, but not "keyword",
"type", or "function".

I have the following font-lock and face-lock init stuff in .emacs:

(if (eq window-system 'x)
    (progn
      (require 'font-lock)
      (load "face-lock")
      (add-hook 'c-mode-hook 'turn-on-face-lock)
      (add-hook 'dired-mode-hook 'turn-on-face-lock)
      (add-hook 'emacs-lisp-mode-hook 'turn-on-face-lock)
      (eval-after-load "font-lock"
                       (setq c-font-lock-keywords c-font-lock-keywords-2))
      ))

Also, it seems like variable names are erroneously identified as functions
when they are declared.  For instance, in the declaration "long var;",
"var" shows up in the "function" face, as if I had said "long var();".

Can anyone help with this?

thanks,
tw
Technical Details
Message-ID: <199408031628.MAA01427@sparcserver.mc.ab.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!sun.cais.com!io.org!uunet.ca!uunet.ca!spool.mu.edu!sdd.hp.com!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!mc.ab.COM!werner

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,e1a46b9b82d176c2
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-07 07:52:55 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!sun.cais.com!io.org!uunet.ca!uunet.ca!spool.mu.edu!sdd.hp.com!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!mc.ab.COM!werner
From: werner@mc.ab.COM (tim werner)
Newsgroups: gnu.emacs.bug
Subject: font-lock-fontify-region doesn't seem to work right
Date: 7 Aug 1994 00:25:31 -0400
Organization: GNUs Not Usenet
Lines: 28
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <199408031628.MAA01427@sparcserver.mc.ab.com>