From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#9681: Broken behaviour of re-search-backward (.+ matching only a single character) Date: Thu, 06 Oct 2011 11:13:26 +0200 Message-ID: <8762k21o09.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317892803 6529 80.91.229.12 (6 Oct 2011 09:20:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 09:20:03 +0000 (UTC) To: 9681@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 11:19:59 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBk7S-0002c9-M1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 11:19:58 +0200 Original-Received: from localhost ([::1]:45508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBk7S-0002BV-8i for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2011 05:19:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBk7P-0002B1-WB for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 05:19:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBk7P-0008Ff-0y for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 05:19:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBk7O-0008Fb-Vb for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 05:19:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RBk7W-0000az-FZ for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 05:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 09:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9681 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.13178927592223 (code B ref -1); Thu, 06 Oct 2011 09:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2011 09:19:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBk6n-0000Zn-VX for submit@debbugs.gnu.org; Thu, 06 Oct 2011 05:19:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBk6k-0000ZV-SE for submit@debbugs.gnu.org; Thu, 06 Oct 2011 05:19:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBk6T-0008A7-Ec for submit@debbugs.gnu.org; Thu, 06 Oct 2011 05:19:01 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:34672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBk6T-0008A3-D8 for submit@debbugs.gnu.org; Thu, 06 Oct 2011 05:18:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBk6S-0001vm-5O for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 05:18:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBk6R-00089W-26 for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 05:18:56 -0400 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:53969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBk6Q-00089Q-Rz for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2011 05:18:55 -0400 Original-Received: by eye13 with SMTP id 13so2793596eye.0 for ; Thu, 06 Oct 2011 02:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=rpLETk11jL8pshwGx+xy1uuRCQJ/fjc1fLyw8Kr9u5o=; b=hz4pRW8a4IAxb1Ch0AC0ESCDA130uLs1uw0u0hj5aiiUXT92wgZqUsiqk1p4lOCWyh eLZLTegfjcIUqT6WxjsxwMzgjyTC9WDNkrGCG3yTeE+IgrEyVoN1jMJoYLOVWuKXfZLk 3W5mnpERq0RSQFOZKRulLcJ42bh7EF7Pin04w= Original-Received: by 10.223.58.138 with SMTP id g10mr2370840fah.20.1317892733759; Thu, 06 Oct 2011 02:18:53 -0700 (PDT) Original-Received: from localhost (176.119.broadband10.iol.cz. [90.177.119.176]) by mx.google.com with ESMTPS id w6sm6311263fah.0.2011.10.06.02.18.52 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Oct 2011 02:18:52 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 06 Oct 2011 05:20:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52263 Archived-At: Quoting from : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > What am I doing wrong? Nothing, I think :-). I personally don't use fancy split- ting, but a deeper look at (at least Gnus 5.13's) code seems to locate the culprit in Emacs' *backward* regular expres- sion "non-greedity": Position point at the end of "bugzilla.gdm", C-u C-r "\w+" - et voil=C3=A0, only one character is matched. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D If this curious inconsistency of `re-search-backward' with `re-search-forward' is intentional (which I hope it is not), it should be documented, but I couldn't find anything in the manuals or docstrings. --=20 =C5=A0t=C4=9Bp=C3=A1n