From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.help Subject: Re: `looking-back' strange warning Date: Fri, 02 Oct 2015 13:08:06 -0600 Message-ID: <87io6pxf55.fsf@tromey.com> References: <560B9C7F.2060301@easy-emacs.de> <560CD7CE.4010404@yandex.ru> <6524c81a-949c-40d1-b990-d214d6ee5b60@default> <560D73DF.8040403@yandex.ru> <560D7A68.8040404@easy-emacs.de> <560D8289.6010409@yandex.ru> <560D8F96.5040200@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443813710 9771 80.91.229.3 (2 Oct 2015 19:21:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Oct 2015 19:21:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 02 21:21:38 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 1Zi5th-0008VN-9S for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Oct 2015 21:21:37 +0200 Original-Received: from localhost ([::1]:34561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi5tg-0003VV-7g for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Oct 2015 15:21:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi5h2-0006kt-3G for help-gnu-emacs@gnu.org; Fri, 02 Oct 2015 15:08:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zi5gx-00062P-0p for help-gnu-emacs@gnu.org; Fri, 02 Oct 2015 15:08:32 -0400 Original-Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:43717) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Zi5gw-00061x-NW for help-gnu-emacs@gnu.org; Fri, 02 Oct 2015 15:08:26 -0400 Original-Received: (qmail 7342 invoked by uid 0); 2 Oct 2015 19:08:18 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy4.mail.unifiedlayer.com with SMTP; 2 Oct 2015 19:08:18 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id QR881r00E2f2jeq01R8BF1; Fri, 02 Oct 2015 19:08:17 -0600 X-Authority-Analysis: v=2.1 cv=Zs1+dbLG c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=zstS-IiYAAAA:8 a=PnD2wP_eR3oA:10 a=meFa6WQr8mcA:10 a=5lJygRwiOn0A:10 a=IM3NC6ny4tNZjJEL6yUA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=NHST5WdGWDdJZDUKTz4fDdwMFWqxyatUXMpcbpmbFF4=; b=UF6ge+gGABcTR6fSQyW9bqiPn12A0uFdAaJ8W44UIeLws8GxocZc3QvGvmwoQlS+vmmf9TWiGK3rOLhRj0Z1gTPIHTword4J7+Kj8GjhdE2HvnheTF9Bz7cfIo5CZmJD; Original-Received: from [65.128.91.114] (port=51949 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1Zi5gf-0001Ox-HQ; Fri, 02 Oct 2015 13:08:09 -0600 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Thu, 01 Oct 2015 20:15:23 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Identified-User: {36111:box522.bluehost.com:elynrobi:tromey.com} {sentby:smtp auth 65.128.91.114 authed with tom+tromey.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.23.142 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:107478 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: Stefan> You can pass (point-min) for the limit if that's what you want. Stefan> Making it optional Encourages people to think that looking-at is just Stefan> like looking-back, with the same performance characteristic, whereas Stefan> making it mandatory encourages people to put a reasonable limit and Stefan> hence avoid pathological behavior at the end of large buffers. It could be made faster by reversing the regexp, then adding a mode to regex.c to consider characters from the buffer in the reverse order. Then the limit could remain optional. Tom