From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#63272: 29.0.90; xref fails on long lines Date: Fri, 5 May 2023 23:49:14 +0300 Message-ID: <599c01ab-f23c-b27a-6035-cd141770a415@gutov.dev> References: <86fs8cxr79.fsf@mail.linkov.net> <7393ccd9-f32f-9ce9-7159-e0fe6e1e1fef@gutov.dev> <86354a1xd0.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39946"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: 63272@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 05 22:50:26 2023 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 1pv2Nl-000ABq-G9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 May 2023 22:50:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pv2NY-0000uX-P9; Fri, 05 May 2023 16:50:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pv2NO-0000u9-Ua for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 16:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pv2NO-0002zQ-M2 for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 16:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pv2NO-0007Jl-6h for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 16:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 May 2023 20:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 63272-submit@debbugs.gnu.org id=B63272.168331976928082 (code B ref 63272); Fri, 05 May 2023 20:50:02 +0000 Original-Received: (at 63272) by debbugs.gnu.org; 5 May 2023 20:49:29 +0000 Original-Received: from localhost ([127.0.0.1]:57647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pv2Mq-0007Is-QB for submit@debbugs.gnu.org; Fri, 05 May 2023 16:49:29 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:42705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pv2Ml-0007IZ-3n for 63272@debbugs.gnu.org; Fri, 05 May 2023 16:49:27 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A34E65C014B; Fri, 5 May 2023 16:49:17 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 05 May 2023 16:49:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1683319757; x=1683406157; bh=qVwnSBpJldY3e+woiLm2S2tCGa9PYyI8/CB rvGUBmm0=; b=kWebySlaIj8Ah0x/IfPCYLnP4s0S+iK4H36peFcPIsTdKBAPXk6 siTqhsV1uQsShlNVSHJw5nnawNzFDcXmOj6i83nTFv2lEmOg2Ch6+Wpw+9ieNHv/ VUUs8MhCYjxVAIc6rbHO2t5QRCsj7QqVaY9Fsqiyvl/OlPG1I0GGpP/cHONItqxD wm1nb5YHCs2br+WmECdpOzw6yrJ5brvvGIlt5D34YYQG/GJ7ftxW2RW85nDgFl4t paCe8QtOqNO+B+8GhzLK19fD198wCriSps9me4Anwz5Z4/iVlNlZOIauIh5sbP7u KLrjkSl7553xXNGJqQEZj/K0up+NhrV0rdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1683319757; x=1683406157; bh=qVwnSBpJldY3e+woiLm2S2tCGa9PYyI8/CB rvGUBmm0=; b=NDmr9O0IYdtfKqWKpqsRTOo3YyaPIKA/pK41Jxz5kqEej4gqEOY 3fXnEuxuSm7ikppxcbyYBf0CuDKwVyvdaqvxjVxyCkYDjUP7nThDQaoNHgluinBo 65mzx0u/ieIB4dHChF8dVTwv/WqIbHuZ9Et3fNRpwPNkNQg4c7rWikAHdb8mk3oc 0ETA0it2dgbfmGT3ztnJkQg7zj4jw8emPnAYbcERtn7B6AsnMLAjvmheUNQNqfWy pHXP2LTy3XRQ6cqZjJYk/Sjz+xCNMJsOYb5bcN6wafmkiMR5XQwAJFmV4hr6LAfE aQOMR7iBThtRVcolR2LkBObT8/rhJ11+a+A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeefvddgudehiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeev ledvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 May 2023 16:49:16 -0400 (EDT) Content-Language: en-US In-Reply-To: <86354a1xd0.fsf@mail.linkov.net> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261145 Archived-At: On 05/05/2023 20:50, Juri Linkov wrote: > In the real case the prefix and suffix were unique, so I didn't expect > that in a generated file there was a very long distance between prefix > and suffix. To limit the distance between prefix and suffix I tried: > > C-x p g prefix.{0,100}suffix Try escaping { and }: C-x p g prefix.\{0,100\}suffix The regexp needs to use the syntax that Emacs can understand. Just the subset of it that can be translated to command like, so that Grep and Ripgrep can work with it too. > but xref that uses ripgrep fails to find matches. > So needed to fall back to ripgrep-based rgrep in this case: > > M-x rgrep prefix.{0,100}suffix > > that works successfully. > > It seems the problem is because of different regexp syntax > used by ripgrep and re-search-forward in xref--collect-matches-1. The conversion is performed by xref--regexp-to-extended.