emacs-devel
[Top][All Lists]
Advanced

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

Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets


From: Detlev Zundel
Subject: Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets
Date: Wed, 18 Jul 2007 14:52:28 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux)

Hi Denis and David,

> Not a bug. The text in the re-builder buffer has '\' escaped (to
> '\\'), for use as string value (literal?). The value expected by
> highlight-regexp when reading from the minibuffer is the regexp
> without escaping of backslashes.

When I wrote re-builder I specifically included a re-builder "syntax"
(reb-re-syntax) governing the entry and display.  It defaults to 'read
being compatible with the elisp reader.  But you can reb-change-syntax
to 'string and get re-builder to interpret and display the regex as
you need it for a string input.

Cheers
  Detlev

-- 
 Those who do not understand Unix are condemned to reinvent it,
 poorly.
 - Henry Spencer, University of Toronto Unix hack





reply via email to

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