From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seweryn Kokot Newsgroups: gmane.emacs.bugs Subject: bug#1299: lispref - searching.texi: Updating of looking-back arguments and return values in the example Date: Sun, 02 Nov 2008 20:06:29 +0100 Message-ID: <87iqr6hrre.fsf@poczta.po.opole.pl> Reply-To: Seweryn Kokot , 1299@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1225654235 1016 80.91.229.12 (2 Nov 2008 19:30:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2008 19:30:35 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 02 20:31:38 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kwifh-0005MF-4Z for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Nov 2008 20:31:37 +0100 Original-Received: from localhost ([127.0.0.1]:34369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwieZ-0006hw-M5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Nov 2008 14:30:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwieO-0006cD-RY for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 14:30:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwieM-0006Z4-6M for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 14:30:15 -0500 Original-Received: from [199.232.76.173] (port=52335 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwieM-0006Yv-1i for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 14:30:14 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38691) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KwieL-0001Rm-5X for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 14:30:13 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA2JU4Po005096; Sun, 2 Nov 2008 11:30:05 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mA2JA4uK032712; Sun, 2 Nov 2008 11:10:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Seweryn Kokot Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 02 Nov 2008 19:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1299 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122565259730597 (code B ref -1); Sun, 02 Nov 2008 19:10:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 2 Nov 2008 19:03:17 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA2J3EOj030591 for ; Sun, 2 Nov 2008 11:03:15 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwiED-0000V7-Nl for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 14:03:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwiEB-0000Uf-5X for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 14:03:13 -0500 Original-Received: from [199.232.76.173] (port=46952 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwiEB-0000Ub-2g for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 14:03:11 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.158]:32197) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KwiEA-0005L4-DX for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 14:03:10 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l26so2057177fgb.30 for ; Sun, 02 Nov 2008 11:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:from :x-operating-system:date:message-id:user-agent:mime-version :content-type; bh=x+EDbMjw8csf3fUn4y4XmMGRdVimpgd/92T+NUZjzRg=; b=w8H7JK6f6oByOtoAoNXSjqXlcGunNxjYk2qCcxzi6twbyKItmBpwaFM2AMp5jvuWei kITNPBBLuCRCdXIxWEVCNuHqKb9+2UliILx1sfV8T7TiZ8eWaxsPfg6skHolAUjEa1Ua uQzZ5iezM2RNBqUdWV27zqpDn93kTKK9NfOTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:x-operating-system:date:message-id:user-agent :mime-version:content-type; b=WaFNHlyLEAz4ArA1RUIGlno33ifX2qdMKnBPvYwD1vvbdG1wwMCF26UaJnYJckYs3/ Ast2nAV+RBEwbnRjlBf27NBCyW8SRSYbZZaPbUKRmCH9mRWUTqMYWxCF0nXhNLFydCM4 VIsvcnPucs/nysRArSn/ZW7MSYmgrYEDZlIJw= Original-Received: by 10.86.89.1 with SMTP id m1mr204976fgb.35.1225652588285; Sun, 02 Nov 2008 11:03:08 -0800 (PST) Original-Received: from localhost.localdomain (nat-warynskiego.po.opole.pl [217.173.199.132]) by mx.google.com with ESMTPS id e11sm4152810fga.9.2008.11.02.11.03.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 02 Nov 2008 11:03:07 -0800 (PST) X-Operating-System: Debian GNU/Linux User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 02 Nov 2008 14:30:15 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22104 Archived-At: --=-=-= Please describe exactly what actions triggered the bug and the precise symptoms of the bug: See the diff attached. Note that I copied the explanation for greedy argument of `looking-back' function. Because I'm not a native speaker so probably this paragraph requires some rephrasing. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=searching.diff diff -ud /home/sewi/emacs_cvs/emacs/doc/lispref/searching.texi /home/sewi/emacs_cvs/emacs/doc/lispref/searching_cor.texi --- /home/sewi/zrodla/elisp_files/emacs_cvs/emacs/doc/lispref/searching.texi 2008-11-02 19:39:21.000000000 +0100 +++ /home/sewi/zrodla/elisp_files/emacs_cvs/emacs/doc/lispref/searching_cor.texi 2008-11-02 19:54:10.000000000 +0100 @@ -1094,7 +1094,7 @@ @end example @end defun -@defun looking-back regexp &optional limit +@defun looking-back regexp &optional limit greedy This function returns @code{t} if @var{regexp} matches text before point, ending at point, and @code{nil} otherwise. @@ -1105,6 +1105,10 @@ not to search before @var{limit}. In this case, the match that is found must begin at or after @var{limit}. +If greedy is non-nil, extend the match backwards as far as possible, +stopping when a single additional previous character cannot be part +of a match for regexp. + @example @group ---------- Buffer: foo ---------- @@ -1408,7 +1412,7 @@ (re-search-forward "The \\(cat \\)") (match-beginning 0) (match-beginning 1)) - @result{} (9 9 13) + @result{} (17 9 13) @end group @group Diff finished. Sun Nov 2 19:54:17 2008 --=-=-= -- regards, Seweryn Kokot --=-=-=--