From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeffrey Ratcliffe Newsgroups: gmane.emacs.help Subject: Re: Checkerboard background colours Date: Fri, 23 Jul 2010 17:04:09 +0200 Message-ID: References: <20100222164021.GA1938@eeepc> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1279948171 32444 80.91.229.12 (24 Jul 2010 05:09:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Jul 2010 05:09:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 24 07:09:29 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OcWzI-0002SP-Ub for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jul 2010 07:09:29 +0200 Original-Received: from localhost ([127.0.0.1]:58480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcWzI-0006KU-A6 for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jul 2010 01:09:28 -0400 Original-Received: from [140.186.70.92] (port=44607 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcJnI-0006dy-43 for help-gnu-emacs@gnu.org; Fri, 23 Jul 2010 11:04:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcJnG-00031Y-T1 for help-gnu-emacs@gnu.org; Fri, 23 Jul 2010 11:04:11 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:38676) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcJnG-00031P-N4 for help-gnu-emacs@gnu.org; Fri, 23 Jul 2010 11:04:10 -0400 Original-Received: by wyg36 with SMTP id 36so330587wyg.0 for ; Fri, 23 Jul 2010 08:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ySAUFNiEzUBTns2WJmE2RY9A+nZfKNDx7klR+HC+XGo=; b=jZfYBV6mhJ3CsomBMOJXiEjmbdPdVHRq6dpYaHAFkUy25bH12I/CUhnplD6QS4XEa5 GQQcuc/BOQytA90qQ6w2ziveELspXzx94nRLT0sxxEzB2uoUjJx42xC61iMBwfAEGzPK +Kpykx50yVsA46CX1z45ItGa+691h1AOBvyvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pRQYw/mG/okht3+0YcXxKAg35RFJSD1azyBP2jmBBoZ7ndYIMLK1A9/bzDMxqLexry 6t7oBNC16AQpBt+GGQS8NmDzmJVEV6NIlqtb+BQpjEQme0Fj81SQqxDaA7WRp/HbfZiu 6NbNzxbdnMNsePbgQiO+q4KPcJeikhLsTk2Us= Original-Received: by 10.227.155.203 with SMTP id t11mr3618072wbw.141.1279897449560; Fri, 23 Jul 2010 08:04:09 -0700 (PDT) Original-Received: by 10.216.184.82 with HTTP; Fri, 23 Jul 2010 08:04:09 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 24 Jul 2010 01:05:29 -0400 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:74267 Archived-At: On 23 July 2010 13:28, Jeffrey Ratcliffe wrote: > Do you have any idea how to get this working in 21.4? font-lock itself > seems to work OK, it really does seem to be a problem with the regex. On removing the shy groups, the regex error disappeared under 21.4. The highlighting still didn't work. I simplified it to the following, which does: (defvar my-keywords '( ("\\([\-+0-9a-zA-Z \.]\\{1,8\\}\\)\\([\-+0-9a-zA-Z \.]\\{1,8\\}\\)?" 1 '(:background "LightBlue1")) ) ) How can get this only to be active on lines between "BEGIN DATA" and "END DATA"? Please cc me on replies, as I am not subscribed. Regards Jeff