From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: `looking-back' strange warning Date: Thu, 01 Oct 2015 10:20:25 +0200 Message-ID: <878u7nhueu.fsf@gnu.org> References: <560B9C7F.2060301@easy-emacs.de> <560CD7CE.4010404@yandex.ru> <560CE576.9030109@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1443709162 31605 80.91.229.3 (1 Oct 2015 14:19:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 14:19:22 +0000 (UTC) Cc: help-gnu-emacs , Dmitry Gutov To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 16:19:15 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 1ZhehW-0001x6-CC for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 16:19:14 +0200 Original-Received: from localhost ([::1]:50771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhehV-0007Ah-Sm for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Oct 2015 10:19:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhZ6L-0003TR-KE for help-gnu-emacs@gnu.org; Thu, 01 Oct 2015 04:20:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhZ6I-000105-9L for help-gnu-emacs@gnu.org; Thu, 01 Oct 2015 04:20:29 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:54268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhZ6I-0000zw-32 for help-gnu-emacs@gnu.org; Thu, 01 Oct 2015 04:20:26 -0400 Original-Received: from thinkpad-t440p (dhcp145.uni-koblenz.de [141.26.71.145]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 650D01A8355; Thu, 1 Oct 2015 10:20:25 +0200 (CEST) Mail-Followup-To: Andreas =?utf-8?Q?R=C3=B6hler?= , Dmitry Gutov , help-gnu-emacs In-Reply-To: <560CE576.9030109@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Thu, 01 Oct 2015 09:49:10 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 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:107415 Archived-At: Andreas R=C3=B6hler writes: >>> Docu bug? >> >> It's a feature: calling `looking-back' without LIMIT is slow, don't do t= hat. > > 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? If so, then its own documentation should tell so, too. Bye, Tassilo