From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Detlev Zundel Newsgroups: gmane.emacs.devel Subject: Re: Bug: Hi-lock-mode doesn't highlight regexp re-builder vets Date: Wed, 18 Jul 2007 14:52:28 +0200 Organization: Church of Emacs - Missionary division Message-ID: References: <7wr6nfiyw1.fsf@ece.lsu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184763464 6176 80.91.229.12 (18 Jul 2007 12:57:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2007 12:57:44 +0000 (UTC) Cc: David Koppelman To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 18 14:57:42 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 1IB966-0008O0-Ca for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 14:57:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IB966-0001fH-2m for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2007 08:57:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IB962-0001fC-Nc for emacs-devel@gnu.org; Wed, 18 Jul 2007 08:57:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IB961-0001eq-7m for emacs-devel@gnu.org; Wed, 18 Jul 2007 08:57:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IB960-0001eh-Ug for emacs-devel@gnu.org; Wed, 18 Jul 2007 08:57:36 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IB91X-0003bB-UT for emacs-devel@gnu.org; Wed, 18 Jul 2007 08:53:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IB91C-0006WQ-GQ for emacs-devel@gnu.org; Wed, 18 Jul 2007 14:52:38 +0200 Original-Received: from p5497cb1c.dip.t-dialin.net ([84.151.203.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2007 14:52:38 +0200 Original-Received: from dzu by p5497cb1c.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2007 14:52:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p5497cb1c.dip.t-dialin.net X-Bart-Says: I will not spin the turtle I will not spin the turtle I will not spin t... User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) Cancel-Lock: sha1:rOUoxlg8r/bcFAYI1C7kz9G8dzU= 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:75062 Archived-At: 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