GNU bug report logs - #36967
27.0.50; Duplicate lines in xref output

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Juri Linkov <juri@HIDDEN>; dated Wed, 7 Aug 2019 22:04:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 36967 <at> debbugs.gnu.org:


Received: (at 36967) by debbugs.gnu.org; 7 Aug 2019 22:13:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 07 18:13:17 2019
Received: from localhost ([127.0.0.1]:39605 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvUBJ-0004Ct-Ns
	for submit <at> debbugs.gnu.org; Wed, 07 Aug 2019 18:13:17 -0400
Received: from mail-lj1-f182.google.com ([209.85.208.182]:36673)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1hvUBI-0004Cc-1M
 for 36967 <at> debbugs.gnu.org; Wed, 07 Aug 2019 18:13:16 -0400
Received: by mail-lj1-f182.google.com with SMTP id i21so7688906ljj.3
 for <36967 <at> debbugs.gnu.org>; Wed, 07 Aug 2019 15:13:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=+Sb1qWXU/CtgeW2pUXO2lEeB1b5bdpcdilqb/3+kX5A=;
 b=I2vgBdptZBy1Y7zCEdMSwy4QgkevQwhNhhbN2CK3tIFL4wmXBiRS3pBqkgGNluHrT8
 x6MUAE4Mzw6HD6s+4Sfyv2Wmo4LQ2g4dukTMYfeIkbScYE3QCq6APw9e7eKurvJN5y3d
 SHyajfBiSwXqIvXtAThu/y98EFlgMHoGBC4we9S9ym89ifOJLXUIWNzz4bXyuIMiU4Mg
 RzRaUFC9ilN7gUWHnpuNxG5rtBTYFhy7oqKiTdisXm8aXQQAkY0KWgC39st5jADdzBEo
 hOeEPGZ7pVzHjycdLpjxz5p5BOcPP2+wO8ppOonOJOVvXIE3pUJQhug27JpEKiNMjAYJ
 XLPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=+Sb1qWXU/CtgeW2pUXO2lEeB1b5bdpcdilqb/3+kX5A=;
 b=jhLUYyhFUxQ891sxUU6Ea8tVSizQE6kDqdkHFQr2ZwAs29nZMTkjvctlOWJ4gwaN6T
 HTKplaygFxbMR8mCR1a1kR2+7ciD9vcB1vRY1+UGJE9okUoDrzghQE9drYfqtIYS3SBJ
 +oL6JumA/YYmUbuEtvyrgAHP1i74BRMTMtFPmlMNzLq9+7t410YYN2YYikjmZCeMmwR1
 g4AYr400dqYgqtiYokLRXEL1E+IhVZlKkDWWySzfZTMXfFr8/5yONwXjUAnJeMohIKNo
 CMyUCZMxa2qGP4qZ4wLnbYNUaznqIXRCIyzwO+tpUkxVS2j334th/5nbt+EKTz59ajMf
 fUqA==
X-Gm-Message-State: APjAAAWBvPigZjnZqRjv+SJ5/CLMT7gP4lxba0sukNjZk4Ni92CKxnk6
 sblHH237FCbjZggAiWmXM/SC6GMVO0X+FQ==
X-Google-Smtp-Source: APXvYqyevVacH8ONvOJVlINzzjOihPgjsMNOWjNojVL0K0FBMJsvolLINrhZ4XHUWpl40+G6EMKdOQ==
X-Received: by 2002:a2e:8155:: with SMTP id t21mr6086294ljg.80.1565215989981; 
 Wed, 07 Aug 2019 15:13:09 -0700 (PDT)
Received: from [192.168.1.142] ([178.252.127.239])
 by smtp.googlemail.com with ESMTPSA id h3sm18715320lja.93.2019.08.07.15.13.09
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 07 Aug 2019 15:13:09 -0700 (PDT)
Subject: Re: bug#36967: 27.0.50; Duplicate lines in xref output
To: Juri Linkov <juri@HIDDEN>, 36967 <at> debbugs.gnu.org
References: <87ef1wod82.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <950a9da4-4081-fe80-598f-eeb3931e24ad@HIDDEN>
Date: Thu, 8 Aug 2019 01:13:07 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.8.0
MIME-Version: 1.0
In-Reply-To: <87ef1wod82.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  On 08.08.2019 0:52,
 Juri Linkov wrote: > I tried to use project-find-regexp
 more often than rgrep, > but unfortunately xref still has a fundamental flaw:
 > > 0. emacs -Q > 1. M-x project-find-regexp R [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.5 RCVD_IN_SORBS_WEB      RBL: SORBS: sender is an abusable web server
 [178.252.127.239 listed in dnsbl.sorbs.net]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (dgutov[at]yandex.ru)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
 mail domains are different
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [209.85.208.182 listed in list.dnswl.org]
 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and
 EnvelopeFrom freemail headers are different
X-Debbugs-Envelope-To: 36967
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

On 08.08.2019 0:52, Juri Linkov wrote:
> I tried to use project-find-regexp more often than rgrep,
> but unfortunately xref still has a fundamental flaw:
> 
> 0. emacs -Q
> 1. M-x project-find-regexp RET regexp RET
> 2. The output buffer *xref* contains duplicate lines
>     when regexp is found on the same line several times,
>     each duplicate output line has separate highlighting
>     for every regexp occurrence.

I don't know how "fundamental" it is, but indeed, it's somewhat of a 
drawback. Suggestions for improving it (API change and/or implementation 
change) are welcome.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#36967; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Aug 2019 22:03:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 07 18:03:05 2019
Received: from localhost ([127.0.0.1]:39595 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hvU1R-0003uF-D6
	for submit <at> debbugs.gnu.org; Wed, 07 Aug 2019 18:03:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:46363)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1hvU1P-0003td-U5
 for submit <at> debbugs.gnu.org; Wed, 07 Aug 2019 18:03:04 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46507)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <juri@HIDDEN>) id 1hvU1P-0001Et-2v
 for bug-gnu-emacs@HIDDEN; Wed, 07 Aug 2019 18:03:03 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <juri@HIDDEN>) id 1hvU1O-0007eV-7B
 for bug-gnu-emacs@HIDDEN; Wed, 07 Aug 2019 18:03:03 -0400
Received: from cadetblue.birch.relay.mailchannels.net ([23.83.209.28]:29377)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <juri@HIDDEN>) id 1hvU1N-0007dP-V5
 for bug-gnu-emacs@HIDDEN; Wed, 07 Aug 2019 18:03:02 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 045D614297F
 for <bug-gnu-emacs@HIDDEN>; Wed,  7 Aug 2019 22:03:00 +0000 (UTC)
Received: from pdx1-sub0-mail-a93.g.dreamhost.com
 (100-96-91-66.trex.outbound.svc.cluster.local [100.96.91.66])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 85388142E21
 for <bug-gnu-emacs@HIDDEN>; Wed,  7 Aug 2019 22:02:59 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a93.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.17.5); Wed, 07 Aug 2019 22:02:59 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Callous-Stop: 3280f8bf0b9706ec_1565215379753_3367067180
X-MC-Loop-Signature: 1565215379753:765122602
X-MC-Ingress-Time: 1565215379753
Received: from pdx1-sub0-mail-a93.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a93.g.dreamhost.com (Postfix) with ESMTP id 65EC08115B
 for <bug-gnu-emacs@HIDDEN>; Wed,  7 Aug 2019 15:02:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to
 :subject:date:message-id:mime-version:content-type; s=
 linkov.net; bh=Rml0a/v+CW5J431+JrMMN/9kR/o=; b=nS8bhlYifzfytYP7k
 RPZkhSaO32QpqceyEzFbU2lbmLtP0x/MjwE8VqkgtN17hvEPXFxc/8UACy9tZM89
 B6wxKLoN6+fVyRU14Vb/Mid2E49ZrDUE53u5V+Qi/VAEBt4kNRWrp59LYWaBJTZa
 q5gPKaBvh8WH7GiBChSZrMyWr0=
Received: from mail.jurta.org (m91-129-103-91.cust.tele2.ee [91.129.103.91])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a93.g.dreamhost.com (Postfix) with ESMTPSA id 2BBFE7F015
 for <bug-gnu-emacs@HIDDEN>; Wed,  7 Aug 2019 15:02:53 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a93
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Duplicate lines in xref output
Organization: LINKOV.NET
Date: Thu, 08 Aug 2019 00:52:13 +0300
Message-ID: <87ef1wod82.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: 0
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddruddufedgtdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohffkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrledunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrledupdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 23.83.209.28
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

I tried to use project-find-regexp more often than rgrep,
but unfortunately xref still has a fundamental flaw:

0. emacs -Q
1. M-x project-find-regexp RET regexp RET
2. The output buffer *xref* contains duplicate lines
   when regexp is found on the same line several times,
   each duplicate output line has separate highlighting
   for every regexp occurrence.




Acknowledgement sent to Juri Linkov <juri@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#36967; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.