From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: bug in elisp... or in elisper??? Date: Tue, 22 Mar 2011 19:37:12 -0400 Message-ID: <4D8932A8.9080007@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300837076 2104 80.91.229.12 (22 Mar 2011 23:37:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2011 23:37:56 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 23 00:37:52 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2B96-0006Hk-CA for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Mar 2011 00:37:52 +0100 Original-Received: from localhost ([127.0.0.1]:35431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2B95-00068d-SK for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Mar 2011 19:37:51 -0400 Original-Received: from [140.186.70.92] (port=38092 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2B8h-00068T-Cg for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 19:37:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2B8g-0005ya-AV for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 19:37:27 -0400 Original-Received: from mout.perfora.net ([74.208.4.194]:64991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2B8g-0005yM-6S for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 19:37:26 -0400 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MPW1p-1Q6Hrv1d69-004Rai; Tue, 22 Mar 2011 19:37:23 -0400 User-Agent: Thunderbird 2.0.0.24 (X11/20101213) X-Enigmail-Version: 0.96.0 OpenPGP: id=5AD091E7 X-Provags-ID: V02:K0:kuvU5R9y7PvvdQMt1O5c5HtPMahl+8pMsQAePxSVpYD zFJYJUrhTXtD6lN1iZpyhZpKmr6i1Q59y/032gOUH+u6P1VK4/ D4oEG9BLbl9Ay+kJpv7rbbW6Ea26hGdy0ueFnGsHGZKu0lMBWQ eHwSSNE3C7g2u813FBlSqGidGwVziM+tNUijeOulgMPpGz+M6d ipI1GPr0e/yeRlyLxg6S0UKJ9hpjqQdVVZBSGAWCkU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.194 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80324 Archived-At: Fellow elispers, Something seems to be amiss in the search syntax here: (setq aname-re-str "\\(\\(.\\|\n\\)*?\\)" ) ;;Here's a function to use the above RE and return diagnostics: (defun test-aname-search () (interactive) (re-search-forward aname-re-str) (message "1: \"%s\" 2: \"%s\" 3: \"%s\" 4: \"%s\" 5: \"%s\" 6: \"%s\" 7: \"%s\" 8: \"%s\"" (match-string 1) (match-string 2) (match-string 3) (match-string 4) (match-string 5) (match-string 6) (match-string 7) (match-string 8))) Here are some strings to search on:

Any Text-- Hot Stuff

the

Any Text-- Hot Crud

The problem is that the 5th match-string should be either empty or whitespace. But it consistently contains the last character of of the 4th match-string. And these two matches are separated by the literal character string, "