help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting font-lock-keywords-case-fold-search


From: * Tong *
Subject: Setting font-lock-keywords-case-fold-search
Date: Wed, 28 Mar 2012 19:18:11 -0000
User-agent: Pan/0.133 (House of Butterflies)

Thanks a lot for your answer, Stefan. 

On Wed, 29 Jun 2011 12:03:30 -0400, Stefan Monnier wrote:

> Guaranteed 100% untested:
> 
> (define-derived-mode foo-mode "Foo" blabla-mode
>   "Foo blabla."
>   (font-lock-add-keywords nil
>     '(...foo keywords...))
>   (set (make-local-variable 'font-lock-keywords-case-fold-search) nil))

Thanks, I got the add-keywords part working, but not the font-lock-
keywords-case-fold-search part:

  ;; specific that keyword matching is now case insensitive
  ;;(set (make-local-variable 'font-lock-keywords-case-fold-search) nil)
  (set font-lock-keywords-case-fold-search nil)

According to the help, font-lock-keywords-case-fold-search will
automatically become buffer-local when set in any fashion, hence the 2nd 
attempt. 

However, none of them turn the case insensitive keyword matching on. 

I did a search, and found it was a known problem[1]. How can I fix it?

Thanks

[1]
font-lock-keywords-case-fold-search in TclMode
http://www.emacswiki.org/cgi-bin/wiki?TclMode

font-lock-keywords-case-fold-search in BUGS mode
https://stat.ethz.ch/pipermail/ess-help/2009-March/005191.html

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]