From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Syntax highlight (problem with 'concat) Date: Mon, 2 Jan 2006 18:59:06 -0900 Message-ID: <20060103035906.GB1812@johnsons-web.com> References: <20060103033426.GA1812@johnsons-web.com> <871wzq2cye.fsf@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136260790 28229 80.91.229.2 (3 Jan 2006 03:59:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2006 03:59:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 03 04:59:44 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EtdKk-0000ea-Ns for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jan 2006 04:59:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtdMM-0003VV-CA for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jan 2006 23:01:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EtdMB-0003VP-Uw for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 23:01:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtdMA-0003VA-Dd for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 23:01:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtdMA-0003V7-B5 for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 23:01:06 -0500 Original-Received: from [208.218.214.44] (helo=ns3.cniweb.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtdNJ-0004gA-Fe for help-gnu-emacs@gnu.org; Mon, 02 Jan 2006 23:02:18 -0500 Original-Received: from linus.johnson.com (rdbck-static-445.palmer.mtaonline.net [64.4.232.191]) by ns3.cniweb.net (8.13.5/8.13.5) with ESMTP id k033wgvu022721 for ; Mon, 2 Jan 2006 22:58:43 -0500 (EST) Original-Received: from linus.johnson.com (localhost.johnson.com [127.0.0.1]) by linus.johnson.com (8.12.8/8.12.8) with ESMTP id k033x6Zt002427 for ; Mon, 2 Jan 2006 18:59:06 -0900 Original-Received: (from tim@localhost) by linus.johnson.com (8.12.8/8.12.8/Submit) id k033x6ru002425 for help-gnu-emacs@gnu.org; Mon, 2 Jan 2006 18:59:06 -0900 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Tim Johnson , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <871wzq2cye.fsf@gmail.com> User-Agent: Mutt/1.4.2.1i X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32368 Archived-At: * Ian Zimmerman [060102 18:51]: > Tim> '("\\b\\(print\\|setq\\)\\b" . font-lock-user-keyword-face) ;; good, line below is bad > Tim> ;'((concat tj-word-begin tj-lisp-user-keywords tj-word-end) . font-lock-user-keyword-face) > > The quote around the last item in the list applies to _everything_ inside. > So your concat call never actually happens. What you want is something like I suspected that .... > ... > > (cons (concat tj-word-begin tj-lisp-user-keywords tj-word-end) 'font-lock-user-keyword-face) Aha! > ... > > > or use quasi-quotes (see Elisp manual) Okay, will bone up on that too... Thank you Ian! -- Tim Johnson http://www.alaska-internet-solutions.com