all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Koppelman <koppel@ece.lsu.edu>
To: "Denis Bueno" <denbuen@sandia.gov>
Cc: rms@gnu.org, "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets
Date: Tue, 10 Jul 2007 19:10:06 -0500	[thread overview]
Message-ID: <7wr6nfiyw1.fsf@ece.lsu.edu> (raw)
In-Reply-To: <C2B3C393.15CF%denbuen@sandia.gov> (Denis Bueno's message of "Fri\, 06 Jul 2007 10\:01\:55 -0600")


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

  parent reply	other threads:[~2007-07-11  0:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-07-18 12:52   ` Detlev Zundel

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=7wr6nfiyw1.fsf@ece.lsu.edu \
    --to=koppel@ece.lsu.edu \
    --cc=denbuen@sandia.gov \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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.