all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Dale Schaafsma <daleschaafsma@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: bug in hi-lock?
Date: Sat, 23 May 2009 09:07:19 +0000	[thread overview]
Message-ID: <20090523090719.GA2944@muc.de> (raw)
In-Reply-To: <20090521190248.GD1392@muc.de>

Hi again, Dale!

On Thu, May 21, 2009 at 07:02:48PM +0000, Alan Mackenzie wrote:
> Hi, Dale!

> On Wed, May 20, 2009 at 11:32:08AM -0500, Dale Schaafsma wrote:
> > Hi Alan,
> >   I've attached a small text file...my regex is foo...and I just hit return
> > to take the default color of hi-yellow.
> >   Thanks for the compliment on the bug report (I do write&debug software so
> > I've tried to be specific!)...should I send this message to the address
> > below?

> Thanks for the file.  It was ideal.

> Now, take a deep, deep, breath.  This is what's happening:

[ snip diagnosis: summary - Font Lock Mode and Hi-Lock Mode get their
mutual nickers in a twist at the very first C-x w h in a buffer where
font-lock-keywords starts off nil. ]

Here's a proper workaround:  Put the following early on in your .emacs:

   (setq-default font-lock-keywords "\\<\\>")

[The string is a regexp which matches somewhere at both the start and end
of a word, i.e. nowhere at all.]

Thanks for goading me into finally tracking this down!

-- 
Alan Mackenzie (Nuremberg, Germany).




  reply	other threads:[~2009-05-23  9:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-19 20:16 bug in hi-lock? Dale
2009-05-20  7:06 ` Alan Mackenzie
2009-05-20 16:32   ` Dale Schaafsma
2009-05-21 19:02     ` Alan Mackenzie
2009-05-23  9:07       ` Alan Mackenzie [this message]
2009-06-04 19:32       ` Dale Schaafsma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090523090719.GA2944@muc.de \
    --to=acm@muc.de \
    --cc=daleschaafsma@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.