From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ckugmk@yahoo.com (trex_eater) Newsgroups: gmane.emacs.help Subject: Re: custom function to highlight keywords Date: 20 Mar 2003 07:01:37 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <419874ab.0303200701.7ffa49f5@posting.google.com> References: <419874ab.0303192140.1e084495@posting.google.com> <87znnq4cih.fsf@killr.ath.cx> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1048172878 18379 80.91.224.249 (20 Mar 2003 15:07:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 15:07:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 16:07:56 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 18w1e8-0004mH-00 for ; Thu, 20 Mar 2003 16:07:56 +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 18w1br-0000uX-01 for gnu-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2003 10:05:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: comp.emacs.xemacs,comp.emacs,gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 192.147.58.6 Original-X-Trace: posting.google.com 1048172498 12160 127.0.0.1 (20 Mar 2003 15:01:38 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 20 Mar 2003 15:01:38 GMT Original-Xref: shelby.stanford.edu comp.emacs.xemacs:70177 comp.emacs:78301 gnu.emacs.help:111251 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:7751 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7751 foomaster1200 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)))