From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: `looking-back' strange warning Date: Thu, 01 Oct 2015 10:46:42 +0200 Message-ID: <560CF2F2.1060601@easy-emacs.de> References: <560B9C7F.2060301@easy-emacs.de> <560CD7CE.4010404@yandex.ru> <560CE576.9030109@easy-emacs.de> <878u7nhueu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1443709935 13244 80.91.229.3 (1 Oct 2015 14:32:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 14:32:15 +0000 (UTC) Cc: help-gnu-emacs , Tassilo Horn To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 16:32:05 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zhetx-0005ww-CC for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 16:32:05 +0200 Original-Received: from localhost ([::1]:50952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhetw-0001SN-Ni for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 10:32:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhZVs-0008NM-UF for help-gnu-emacs@gnu.org; Thu, 01 Oct 2015 04:46:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhZVs-0004ff-4b for help-gnu-emacs@gnu.org; Thu, 01 Oct 2015 04:46:52 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:63722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhZVn-0004dc-9u; Thu, 01 Oct 2015 04:46:47 -0400 Original-Received: from [192.168.178.31] ([77.12.88.20]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0Lbezn-1aO1rU0L9f-00lGVc; Thu, 01 Oct 2015 10:46:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <878u7nhueu.fsf@gnu.org> X-Provags-ID: V03:K0:5D5pBg3f8CLB1EkhbRPnT3eDjflOcgEZvkkHemqJnhlGs3nZoPw b3OBc4llVwpR08qNv9V/lz8/EhOyV78bEizIEbG7g/VdeZlOJHGFV108R+kcRiIdQVsgzb0 9KbOvbBHpWwQ/u1mclyNE9s4amJoFlDNnRozGdfucaVBMP1nYaj/6mh/I9gCrCLDpLWVQ+5 mBNQfxmGSiXXsBHku7mwQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:LjT2lD6vztc=:gTBREwJXiZmRHqILg5IWqO veus+r3lYku6npJ6RvBM6k3MpqPAuNlkbWwcgQ7fK4rAVk7aZ4UUD3GuoptvyxDhvUULzU5KA IvpbsgRwDadE5HU0Hqx6w/n7vWcYPvNVrIcl17uJTgiQae4QFeXV2slOrr1NGO3ySiLdJWOxn MAnxZ4qoC2H4Imv85oebBTIxxjF4Exr2icDZVbz8pGbiWPRHk3wMMFnhR3eyvQ3lSxEabmFTa FFwIOvDeDEbYyLrVhHqXKOjoLS7dTnsS7ofnLWF1WWsA4GapbRNAeoj0ZsgVVeoNjXUld3X35 b7/UM1w1oMWhtBGH1wsv7/mxU5wbb6tQdF4+EQSzm3Fc9KmAOR7mHYi/OhEDg8FHqDy/dBa04 P4d7nB+c59ZlxTO4Dfc2HvLiE/6HAd7Wr3g1AKk3KPv2i7haQMJ7r8cq3sun3WLlvLRMK0pcS VXIVz8oylNhrS+TvzkVcb84HGeCsp9rpgnOR2G9g4CWcOqSCei0au81Gpw4iyys37PuPKw12D 0wbybCjH0Klm+SfeuLAsnOJ4oQ0PwYss2oZGa+wtY7HToyW183jFCOQJkN1RepMhLY5F0t3P+ tEJtKzV2Z+dlHzdrnr0UGQl/Erh7jJO+DrKFIRZBDZMo/+CbF76zU0uKZgyMaL9TKP/YKCE1k ZcGkWVua1J8jwvgM/qUdp2w+v6Ynz1dTe1mt5g1qUIPHgri+m8yJ8sgdM+6BFwDzHNuMrzWh/ b4y6Hjk7gwus8OcL X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107417 Archived-At: Am 01.10.2015 um 10:20 schrieb Tassilo Horn: > Andreas Röhler writes: > >>>> Docu bug? >>> It's a feature: calling `looking-back' without LIMIT is slow, don't do that. >> Hmm, would volontier to make that fast instead - if write-permission >> is given :) > Looking at the code, I'd say `looking-back' is only slow if GREEDY is t > in which case the start of the match may be before LIMIT anyhow. So I > don't see how providing a LIMIT would help too much, or is > `re-search-backward' already slow without LIMIT? AFAIK thats it. Also "greedy" seems not to work at all: (defun foo3 ()) (progn (re-search-backward "o+" nil t 3) (message "%s" (match-beginning 0))) The first "o" is reported as match-beginning.