From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [paul@wolfbone.ath.cx: Re: re-builder bug(s)] Date: Sat, 10 Mar 2007 10:50:43 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1173542010 13005 80.91.229.12 (10 Mar 2007 15:53:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2007 15:53:30 +0000 (UTC) Cc: Detlev Zundel , emacs-devel@gnu.org To: Oliver Scholz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 10 16:53:27 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 1HQ3ss-0006on-Br for ged-emacs-devel@m.gmane.org; Sat, 10 Mar 2007 16:53:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQ3tG-0006Qa-8S for ged-emacs-devel@m.gmane.org; Sat, 10 Mar 2007 10:53:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HQ3sS-0005lM-Py for emacs-devel@gnu.org; Sat, 10 Mar 2007 10:53:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HQ3sS-0005kT-8q for emacs-devel@gnu.org; Sat, 10 Mar 2007 10:53:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HQ3sS-0005kB-3M for emacs-devel@gnu.org; Sat, 10 Mar 2007 10:53:00 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HQ3s0-0004A2-3B for emacs-devel@gnu.org; Sat, 10 Mar 2007 10:52:32 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HQ3qF-0004sO-1g; Sat, 10 Mar 2007 10:50:43 -0500 In-reply-to: (message from Oliver Scholz on Fri, 09 Mar 2007 17:55:02 +0100) 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:67678 Archived-At: This happens in line 646 and following of re-builder.el. `reb-update-overlays' `re-search'es the buffer and checks whether the match is empty, otherwise it updates the match-overlays: (if (= 0 (length (match-string 0))) (error "Empty regular expression!")) So, this "bug" seems to be intentional. I wouldn't know what to do, anyways. How do you highlight an empty string? You could put the cursor there and make it look funny, maybe. Or use an overlay with an after-string. Or just display a message in the minibuffer to explain the situation.