From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: foomaster1200 Newsgroups: gmane.emacs.help Subject: Re: custom function to highlight keywords Date: Thu, 20 Mar 2003 09:24:22 GMT Organization: Road Runner - Texas Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87znnq4cih.fsf@killr.ath.cx> References: <419874ab.0303192140.1e084495@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048152464 9568 80.91.224.249 (20 Mar 2003 09:27:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 09:27:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 10:27:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vwKs-0002U4-00 for ; Thu, 20 Mar 2003 10:27:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vwIs-0003tE-07 for gnu-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2003 04:25:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news-west.rr.com!cyclone.austin.rr.com!twister.austin.rr.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: comp.emacs.xemacs,comp.emacs,gnu.emacs.help Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 66.25.132.244 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.austin.rr.com 1048152262 66.25.132.244 (Thu, 20 Mar 2003 03:24:22 CST) Original-NNTP-Posting-Date: Thu, 20 Mar 2003 03:24:22 CST Original-Xref: shelby.stanford.edu comp.emacs.xemacs:70175 comp.emacs:78297 gnu.emacs.help:111246 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7746 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7746 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?