* Bug: Hi-lock-mode doesn't highlight regexp re-builder vets
@ 2007-07-06 16:01 Denis Bueno
2007-07-07 13:06 ` Richard Stallman
2007-07-11 0:10 ` David Koppelman
0 siblings, 2 replies; 4+ messages in thread
From: Denis Bueno @ 2007-07-06 16:01 UTC (permalink / raw)
To: emacs-devel@gnu.org
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets
2007-07-06 16:01 Bug: Hi-lock-mode doesn't highlight regexp re-builder vets Denis Bueno
@ 2007-07-07 13:06 ` Richard Stallman
2007-07-11 0:10 ` David Koppelman
1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2007-07-07 13:06 UTC (permalink / raw)
To: emacs-devel; +Cc: Denis Bueno
Would someone please DTRT, then ack?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets
2007-07-06 16:01 Bug: Hi-lock-mode doesn't highlight regexp re-builder vets Denis Bueno
2007-07-07 13:06 ` Richard Stallman
@ 2007-07-11 0:10 ` David Koppelman
2007-07-18 12:52 ` Detlev Zundel
1 sibling, 1 reply; 4+ messages in thread
From: David Koppelman @ 2007-07-11 0:10 UTC (permalink / raw)
To: Denis Bueno; +Cc: rms, emacs-devel@gnu.org
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" <denbuen@sandia.gov> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets
2007-07-11 0:10 ` David Koppelman
@ 2007-07-18 12:52 ` Detlev Zundel
0 siblings, 0 replies; 4+ messages in thread
From: Detlev Zundel @ 2007-07-18 12:52 UTC (permalink / raw)
To: emacs-devel; +Cc: David Koppelman
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-18 12:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-06 16:01 Bug: Hi-lock-mode doesn't highlight regexp re-builder vets Denis Bueno
2007-07-07 13:06 ` Richard Stallman
2007-07-11 0:10 ` David Koppelman
2007-07-18 12:52 ` Detlev Zundel
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.