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

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

Re: custom function to highlight keywords


From: trex_eater
Subject: Re: custom function to highlight keywords
Date: 20 Mar 2003 07:01:37 -0800

foomaster1200 <foomaster1200@yahoo.com> wrote in message 
news:<87znnq4cih.fsf@killr.ath.cx>...
> ckugmk@yahoo.com (trex_eater) writes:
> 
> > 
> > (defun high-on2 ( expname)
> >     (interactive "Bexpname: ")
> >     (setq my-temp (concat "\\(" expname "\\)" ))
> >         ;; Not sure about the line below...
> >     (setq my-keywords (my-temp (0 my-new-face)))  
> >     (setq font-lock-keywords (append font-lock-keywords my-keywords))
> 
> I might be wrong... but:
> 
> >     (setq my-keywords (my-temp (0 my-new-face)))  
> 
> is probably not what you want. You're calling a function "my-temp"
> and calling a function "0" within that. You probably get a wrong
> function error?

Agreed. But what is the lisp syntax to specify that use the contents
of the variable my-temp while constructing the my-keywords in the
following line:

setq my-keywords (my-temp (0 my-new-face)))


reply via email to

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