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

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

keyword specification 19.x vs. 20.x


From: Sylvia Murphy
Subject: keyword specification 19.x vs. 20.x
Date: Fri, 26 Jul 2002 15:30:04 -0600 (MDT)

greetings,

i am creating a major emacs mode for the NCAR command language (NCL).  

I started with simple syntax highting.  This worked great in v. 19.34 but
not in v. 20.x

Since I am hacking this together from various examples on the web, I am
undoubtedly missing something.

The form of my keywords specifications is as follows:
(defvar ncl-keywords
   '(( "\\<\\(.....\\)\\>" 1 font-lock-keyword-face)
     (........ 1 font-lock-variable-face)
     (........ 1 font-lock-function-face))
     "keywords used in ncl-mode")


then in defun ncl-mode() i have
  (setq font-lock-keywords ncl-keywords)
  (font-lock-mode 1)
  (setq font-lock-maximum-decoration t)
  (make-local-variable 'font-lock-defaults)
  (setq font-lock-defaults 'ncl-keywords)
  
  
  
  etc.
  
  when i run in emacs 20.x  and even try to manually institute the 
global-font-lock i get the following error:
  
  "wrong type of arguments listp ncl-keywords"
  
  
  This seems to point to a syntax error in the creation of ncl-keywords. What
  has changed between 19.x and 20.x that effect this?
  
  
  thanks,
  
  sylvia


******************************************************
Sylvia Murphy                    EML: murphys@ucar.edu               
NCAR CGD/CAS                     PHN: 303-497-1720
1850 Table Mesa Dr               FAX: 303-497-1333 
Boulder, CO 80305
                                
WEB: http://www.cgd.ucar.edu/csm/support/
     http://www.cgd.ucar.edu/csm/support/CSM_Graphics/
          
******************************************************






reply via email to

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