From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Bug: 22.1.50.3; re-search-backward disobeys greedy regexps Date: Wed, 15 Aug 2007 20:49:46 -0400 Message-ID: References: <20070815224411.26A366D535@edf.icmc.usp.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187225708 32743 80.91.229.12 (16 Aug 2007 00:55:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2007 00:55:08 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Miguel Frasson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 16 02:55:05 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 1ILTdf-0006ai-38 for ged-emacs-devel@m.gmane.org; Thu, 16 Aug 2007 02:55:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILTde-0002v5-Mj for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2007 20:55:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILTdb-0002us-Nz for emacs-devel@gnu.org; Wed, 15 Aug 2007 20:54:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILTdZ-0002uC-Si for emacs-devel@gnu.org; Wed, 15 Aug 2007 20:54:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILTdZ-0002u6-LS for emacs-devel@gnu.org; Wed, 15 Aug 2007 20:54:57 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILTdZ-0001gJ-Cu for emacs-devel@gnu.org; Wed, 15 Aug 2007 20:54:57 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILTh4-00027F-P5 for emacs-pretest-bug@gnu.org; Wed, 15 Aug 2007 20:58:34 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1ILTdY-0001fx-Hl for emacs-pretest-bug@gnu.org; Wed, 15 Aug 2007 20:54:57 -0400 Original-Received: from tomts10.bellnexxia.net ([209.226.175.54] helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILTdY-0001fp-6L for emacs-pretest-bug@gnu.org; Wed, 15 Aug 2007 20:54:56 -0400 Original-Received: from pastel.home ([70.53.193.20]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070816005455.IJFQ9197.tomts10-srv.bellnexxia.net@pastel.home> for ; Wed, 15 Aug 2007 20:54:55 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B89268083; Wed, 15 Aug 2007 20:49:46 -0400 (EDT) In-Reply-To: <20070815224411.26A366D535@edf.icmc.usp.br> (Miguel Frasson's message of "Wed\, 15 Aug 2007 19\:44\:11 -0300 \(BRT\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:76601 gmane.emacs.pretest.bugs:19547 Archived-At: > The funcion re-search-backward does not search greedy regexps (if > non-greedy are matching). Yes and no. It's a known problem: regexp search is split into 2 parts: search and match. While the "search" can be done in both directions, the "match" part is only implemented forward. Which is why `looking-at' (which only does "match" without any "search") only exists forward (and looking-back-at is just an attempt to simulate the backward "match" but only works correctly in specific circumstances). Stefan