From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christian Johansson Newsgroups: gmane.emacs.bugs Subject: bug#53680: Endless loop in peculiar case of string-match and string-match-p 27.02 and 28.0.50 Date: Tue, 1 Feb 2022 17:23:59 +0100 Message-ID: References: <965416B7-4ACC-4571-B2C2-8607A741212F@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15603"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: Lars Ingebrigtsen , Andreas Schwab , 53680@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 01 19:05:53 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nExXM-0003q6-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 19:05:52 +0100 Original-Received: from localhost ([::1]:50408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nExXL-00005C-EN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 13:05:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEvxo-0002m7-76 for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 11:25:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51027) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEvxm-0007DR-Mn for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 11:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEvxm-0001f5-IX for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2022 11:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Christian Johansson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Feb 2022 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53680 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 53680-submit@debbugs.gnu.org id=B53680.16437326476303 (code B ref 53680); Tue, 01 Feb 2022 16:25:02 +0000 Original-Received: (at 53680) by debbugs.gnu.org; 1 Feb 2022 16:24:07 +0000 Original-Received: from localhost ([127.0.0.1]:43928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEvwt-0001da-HM for submit@debbugs.gnu.org; Tue, 01 Feb 2022 11:24:07 -0500 Original-Received: from mailrelay4-3.pub.mailoutpod1-cph3.one.com ([46.30.212.13]:17634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEvwo-0001d5-PF for 53680@debbugs.gnu.org; Tue, 01 Feb 2022 11:24:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cvj.se; s=rsa2; h=content-transfer-encoding:content-type:in-reply-to:from:references:cc:to: subject:mime-version:date:message-id:from; bh=ahjG2kWqghzsueXI549pkfe/0eU7B5m/+l9FIl22FAc=; b=f5M0iqd1qYQVUP6fDJ2klmr1PBBQQEWewRK4FJAWvk7qhdZ+D3nkYV/aBNGNcBYp7Eb8ZPwL5i2gQ h12OZ1+kfg7UJTjKplfWPGAgGeex84YzHOQzNH66k8KFTlH12l82JOOuLRTOP6dA9/7asRpqcwBAWY yDYrOWglf8n877tMS86Ryain11sWEGGeYGN3qA+azBCjPxqL8Log6FEVI6KAUZZdQdrN+60tVCGfEy 4kxaYYhmfxTCQi2clzaqT9FUozGaNVIMu94j5ByXYdJ+qthE/R89Q2qiR0avawz/LeWErs10KnOoaG 0vn1lBgh1Ijj6LZNnFA9j54O6q2CdGA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=cvj.se; s=ed2; h=content-transfer-encoding:content-type:in-reply-to:from:references:cc:to: subject:mime-version:date:message-id:from; bh=ahjG2kWqghzsueXI549pkfe/0eU7B5m/+l9FIl22FAc=; b=R+9ipcwVWgimxGg309wBY4HYnd4M5I914TZnL4Tfhuq6Kzy3H9aZ9ek6/+7XCuRwTL147PWkjGD3E ZgJJCW7BQ== X-HalOne-Cookie: 4f8a6fb2ce639d62e4eeff8ef606481e05d86e84 X-HalOne-ID: 5c43a488-837b-11ec-b096-d0431ea8bb10 Original-Received: from [192.168.50.160] (c188-150-212-230.bredband.tele2.se [188.150.212.230]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 5c43a488-837b-11ec-b096-d0431ea8bb10; Tue, 01 Feb 2022 16:24:00 +0000 (UTC) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225757 Archived-At: I see, thanks for the tip, I got it working now without endless-loop and without the CR work-around HÀlsningar / Best Regards Christian On 01/02/2022 14:39, Mattias EngdegÄrd wrote: > 1 feb. 2022 kl. 14.12 skrev Christian Johansson : >> Alright, thanks for helping me find the correct regexp, this issue only appeared on some peculiar strings > By the way, your translation of LF into CR in order to use "$" as end-of-string anchor is misguided: to match at the beginning or end of a string or buffer, use \` and \' (in rx, string-start and string-end or bos and eos) respectively. >