[ESS] `font-lock-pre-idle-hook': Error message any time I type in xemacs

Brian Diggs diggsb at ohsu.edu
Mon Mar 22 22:54:44 CET 2010


On 3/22/2010 2:09 PM, Rodney Sparapani wrote:
> On 03/22/10 03:46 PM, Brian Diggs wrote:
>> C:\Program Files\XEmacs\XEmacs-21.4.21\i586-pc-win32\xemacs.exe" -q
> 
> Aha!  That does it.  But, why?
> 
> Rodney

Well, the -q option causes it to not load your init.el.  I tried making 
a minimal init.el with only

(require 'ess-site)

in it, as per

http://ess.r-project.org/Manual/readme.html#Microsoft-Windows-installation

and got the same warnings (staring without the -q or -no-site-file 
option).  There must be something in your init.el file that gets ESS 
fonts configured correctly.  What do you have in your init.el that is 
ESS related?

Also, I've looked at the buffer local variable font-lock-keywords, which 
is the variable that changes once the font lock is working, and when 
font lock does not work it is:

(t ("##' 
*\\([@\\]\\(TODO\\|a\\(?:liases\\|uthor\\)\\|concept\\|docType\\|ex\\(?:amples\\|portMethod\\)\\|format\\|include\\|keywords\\|method\\|n\\(?:\\(?:am\\|ot\\)e\\)\\|param\\|re\\(?:ferences\\|turn\\)\\|s\\(?:eealso\\|ource\\)\\|\\(?:titl\\|usag\\)e\\)\\)\\>" 
(1 font-lock-keyword-face prepend)) ("##' 
*\\([@\\]\\(param\\)\\)\\>\\(?:[ 	]+\\(\\sw+\\)\\)?" (1 
font-lock-keyword-face prepend) (3 font-lock-variable-name-face 
prepend)) ("[@\\]\\(export\\)\\>" (0 font-lock-variable-name-face 
prepend)) ("##'" (0 (quote bold) prepend)) ("->\\|<\\(?:<?-\\)" (0 
font-lock-keyword-face)) (0 (font-lock-reference-face)))

and afterwards (when font lock works), it is:

  (t ("##' 
*\\([@\\]\\(TODO\\|a\\(?:liases\\|uthor\\)\\|concept\\|docType\\|ex\\(?:amples\\|portMethod\\)\\|format\\|include\\|keywords\\|method\\|n\\(?:\\(?:am\\|ot\\)e\\)\\|param\\|re\\(?:ferences\\|turn\\)\\|s\\(?:eealso\\|ource\\)\\|\\(?:titl\\|usag\\)e\\)\\)\\>" 
(1 font-lock-keyword-face prepend)) ("##' 
*\\([@\\]\\(param\\)\\)\\>\\(?:[ 	]+\\(\\sw+\\)\\)?" (1 
font-lock-keyword-face prepend) (3 font-lock-variable-name-face 
prepend)) ("[@\\]\\(export\\)\\>" (0 font-lock-variable-name-face 
prepend)) ("##'" (0 (quote bold) prepend)) ("->\\|<\\(?:<?-\\)" (0 
font-lock-reference-face)) 
("\\<\\(FALSE\\|Inf\\|N\\(?:A\\(?:_\\(?:\\(?:c\\(?:haracter\\|omplex\\)\\|integer\\|real\\)_\\)\\)?\\|ULL\\|aN\\)\\|TRUE\\)\\>" 
(0 font-lock-type-face)) 
("\\<\\(attach\\|detach\\|library\\|\\(?:requir\\|sourc\\)e\\)\\>" (0 
font-lock-reference-face)) 
("\\s\"?\\(\\(\\sw\\|\\s_\\)+\\(<-\\)?\\)\\s\"?\\s-*\\(<-\\)\\(\\s-\\|\n\\)*function" 
(1 font-lock-function-name-face t)) 
("\\<\\(break\\|else\\|f\\(?:or\\|unction\\)\\|i[fn]\\|message\\|next\\|re\\(?:peat\\|turn\\)\\|s\\(?:top\\|witch\\)\\|w\\(?:arning\\|hile\\)\\)\\>" 
(0 font-lock-keyword-face)))


--
Brian Diggs
Senior Research Associate, Department of Surgery, Oregon Health & 
Science University



More information about the ESS-help mailing list