help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regex Problem => "overlapping words"


From: Stefan Monnier
Subject: Re: Regex Problem => "overlapping words"
Date: Sat, 03 Dec 2005 16:52:39 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> There is still a problem tho': Emacs seems to think that "-" is a
> word or symbol boundary.

This depends on the syntax-table settings.

Please don't change the syntax of ?- in the main syntax-table, but only in
the syntax-table used during font-locking:

  Take a look at the place where font-lock-defaults is set.
  Then look at the docstring of font-lock-defaults.
  Then locate the SYNTAX-ALIST element and set it so that the character ?-
  has syntax "w".


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]