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: David Koppelman
Subject: Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets
Date: Tue, 10 Jul 2007 19:10:06 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

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.

The following would work:
 C-x w h 09[:]\(\(28\)\|\(29\)\|\(30\)\)


"Denis Bueno" <address@hidden> writes:

> In GNU Emacs 22.1.50.2 (i386-apple-darwin8.9.1, Carbon Version 1.6.0) of
> 2007-07-06:
>
>     1. emacs -Q
>     2. Paste into *scratch*:
>
>     7/6 09:28:35
>     7/6 09:30:34
>
>     3. M-x re-builder
>     4. 09[:]\\(\\(28\\)\\|\\(29\\)\\|\\(30\\)\\)
>     5. Observe that both lines have matching parts.
>     6. Kill the *re-builder* buffer.
>     7. M-x hi-lock-mode
>     (Observe that the minibuffer says "Hi-lock mode enabled" but "Hi" is not
> displayed in the modeline.  That's weird.)
>     8. C-x w h 09[:]\\(\\(28\\)\\|\\(29\\)\\|\\(30\\)\\) RET RET
>     9. Observe no highlighting.
>     (Also "Hi" is now in the modeline.)
>
> Thank you.
>
> -Denis




reply via email to

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