From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jacob Gerlach Newsgroups: gmane.emacs.help Subject: Re: Selective Font Lock Case Sensitivity Date: Wed, 16 Apr 2014 19:46:38 -0700 (PDT) Message-ID: References: <784cf2dd-38c6-4505-841c-a88e112f4759@googlegroups.com> <34c78649-842c-4ddc-ada5-8ffafe5c296d@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1397703030 12504 80.91.229.3 (17 Apr 2014 02:50:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2014 02:50:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 17 04:50:24 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WacP4-0003xa-VT for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Apr 2014 04:50:19 +0200 Original-Received: from localhost ([::1]:57543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WacP4-00037U-KF for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Apr 2014 22:50:18 -0400 X-Received: by 10.68.230.193 with SMTP id ta1mr5932761pbc.6.1397702799091; Wed, 16 Apr 2014 19:46:39 -0700 (PDT) X-Received: by 10.140.37.148 with SMTP id r20mr117576qgr.0.1397702799038; Wed, 16 Apr 2014 19:46:39 -0700 (PDT) Original-Path: usenet.stanford.edu!ur14no9279271igb.0!news-out.google.com!du2ni11086qab.0!nntp.google.com!cm18no3627882qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.217.114.175; posting-account=Hx-_8AoAAACyMXgs4MCS3wNERNLct_lk Original-NNTP-Posting-Host: 98.217.114.175 User-Agent: G2/1.0 Injection-Date: Thu, 17 Apr 2014 02:46:39 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:204898 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97163 Archived-At: >> (lambda (limit) >> (let ((case-fold-search t)) >> (re-search-forward ,(regexp-opt (cadr input)) limit t))) This indeed fixed the expansion. This now expands to something that looks right, but it still doesn't work. I am trying to use an anchored matcher with a pre-form. What I think I understand from the documentation is that I should end up with something like: ("anchor" (lambda (limit) (let ((case-fold-search t)) (re-search-forward "keywords-re") limit t)) (pre-form) nil (0 font-lock-keyword-face)) What I don't understand is if the list as I've written it here is properly formatted, or if I need to construct it as sub-lists, cons cells, etc. Thanks for all the help so far, I hope it is not too tedious dealing with such a lisp novice.