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: foomaster1200
Subject: Re: custom function to highlight keywords
Date: Thu, 20 Mar 2003 09:24:22 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

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?


reply via email to

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