From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Koppelman Newsgroups: gmane.emacs.devel Subject: Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets Date: Tue, 10 Jul 2007 19:10:06 -0500 Message-ID: <7wr6nfiyw1.fsf@ece.lsu.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184112629 9190 80.91.229.12 (11 Jul 2007 00:10:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2007 00:10:29 +0000 (UTC) Cc: rms@gnu.org, "emacs-devel@gnu.org" To: "Denis Bueno" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 11 02:10:28 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I8Pmi-0007EZ-7Y for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2007 02:10:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8Pmh-0002o1-Ov for ged-emacs-devel@m.gmane.org; Tue, 10 Jul 2007 20:10:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8Pmf-0002nw-BB for emacs-devel@gnu.org; Tue, 10 Jul 2007 20:10:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8Pmd-0002ng-Sy for emacs-devel@gnu.org; Tue, 10 Jul 2007 20:10:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8Pmd-0002nd-Qy for emacs-devel@gnu.org; Tue, 10 Jul 2007 20:10:19 -0400 Original-Received: from ecelsrv1.ece.lsu.edu ([130.39.223.98]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8Pmc-0006ml-HA; Tue, 10 Jul 2007 20:10:18 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by ecelsrv1.ece.lsu.edu (Postfix) with ESMTP id 30BFA280D8; Wed, 11 Jul 2007 00:10:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at ece.lsu.edu Original-Received: from ecelsrv1.ece.lsu.edu ([127.0.0.1]) by localhost (ecelsrv1.ece.lsu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AySF-okwNxm9; Tue, 10 Jul 2007 19:10:16 -0500 (CDT) Original-Received: from nested.ece.lsu.edu (nested.ece.lsu.edu [130.39.222.143]) by ecelsrv1.ece.lsu.edu (Postfix) with ESMTP id 25E6328018; Tue, 10 Jul 2007 19:10:16 -0500 (CDT) Original-Received: from nested.ece.lsu.edu (localhost.localdomain [127.0.0.1]) by nested.ece.lsu.edu (8.13.1/8.13.1) with ESMTP id l6B0A6KP019472; Tue, 10 Jul 2007 19:10:06 -0500 Original-Received: (from koppel@localhost) by nested.ece.lsu.edu (8.13.1/8.13.1/Submit) id l6B0A6kE019471; Tue, 10 Jul 2007 19:10:06 -0500 In-Reply-To: (Denis Bueno's message of "Fri\, 06 Jul 2007 10\:01\:55 -0600") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74613 Archived-At: 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" 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