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#49731: 28.0.50; Filter xref results by filename Date: Wed, 28 Jul 2021 02:11:17 +0300 Message-ID: References: <030dbe6c-130d-e578-f50d-54e90bfa7cfa@yandex.ru> <8735rzo5fk.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="16757"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: mardani29@yahoo.es To: Juri Linkov , 49731@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 28 01:12:12 2021 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 1m8WFA-0004CU-7L for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 01:12:12 +0200 Original-Received: from localhost ([::1]:50422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8WF8-00083s-4L for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Jul 2021 19:12:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8WF0-00083N-Sr for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2021 19:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8WF0-0007Ke-KJ for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2021 19:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8WF0-00014K-GN for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2021 19:12: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: Tue, 27 Jul 2021 23:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49731 X-GNU-PR-Package: emacs Original-Received: via spool by 49731-submit@debbugs.gnu.org id=B49731.16274274904071 (code B ref 49731); Tue, 27 Jul 2021 23:12:02 +0000 Original-Received: (at 49731) by debbugs.gnu.org; 27 Jul 2021 23:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:54219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8WET-00013a-VC for submit@debbugs.gnu.org; Tue, 27 Jul 2021 19:11:30 -0400 Original-Received: from mail-ej1-f43.google.com ([209.85.218.43]:44657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8WEQ-00013L-EN for 49731@debbugs.gnu.org; Tue, 27 Jul 2021 19:11:28 -0400 Original-Received: by mail-ej1-f43.google.com with SMTP id hp25so1357789ejc.11 for <49731@debbugs.gnu.org>; Tue, 27 Jul 2021 16:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VFToqUSyHlBMXLpoxHu4Yrv7FJTBLH25zcWp7uuq+Q8=; b=TQjhnV5dZMwi4BxZZ10PO6JEN8hCeW8CjF0S5VmYs4jclqHDG4P4XDkhdWuociWl9C NqAjPSHKXFppuvofng5opMRNUrHGON9S6p/jucPunGD7VSMwl4F2sawB6aT6JwNGsbr7 3wdOx099GcE9p8YhTRTxu7foPc98hopURQn11VCZeJMTszVicNw37h4Y9asf2GdYQFLf aG3DmliGnYQK8NLaOrq1mRFr/L5BQ0j9O37Mr/go8paJksVi6TC+C81LsFF2KRHP/NRF pF95SjO5sjgmHK4o2+GQPqHE5+AygPzUiDLwT25lBto4skyGQuerr7tpsQ1OEWvUd9T1 QEVQ== 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:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VFToqUSyHlBMXLpoxHu4Yrv7FJTBLH25zcWp7uuq+Q8=; b=B/S1o95+ItJftYeXGIr8GUi9TJuSkjp7AiTnIM10SsLR3HchxsjjChzCXMHGi7SYJc ylT+UDCAdKHYvH1xCqsVDSjaEzSBX+VjXDL+Z9LyAqQ2KhYOh0ptt1oLwjDFxO/Wd4Df TZR6PtIrKftn4B+pVFpaS5e/NFOnbenlNOfFX80jElgE4D5z10EGQhPC7NYGYbOXreVI VGlFc01GQAY6JYW1DLlTO3uHlVAGU18/fnakl403TeKcvwZmO83ueRqwY4nfu/4gGlZ+ oniLyTIZ8TeIMfL1HUOBcvxfdRaMpU6G4/vfCT1Ue+9fNCk3sgKzgUgSnHOevg7Bo19O 3R+Q== X-Gm-Message-State: AOAM530/4PwrUX64GUmUyAKftCQ3VosMsaN1Ky5CVTh4EjeJMJ3EUDex 5z9jX3xqmJ6Nx0JC3ItHXSI= X-Google-Smtp-Source: ABdhPJzQRq9F/YLqdV4++IkRHOR993fyDOZqbd8iKme8/BsvC7O76TOIm//ZW/BU0uqn9asPr06dTQ== X-Received: by 2002:a17:906:2d51:: with SMTP id e17mr23528988eji.500.1627427480264; Tue, 27 Jul 2021 16:11:20 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id kk18sm1336946ejc.114.2021.07.27.16.11.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jul 2021 16:11:19 -0700 (PDT) In-Reply-To: <8735rzo5fk.fsf@mail.linkov.net> Content-Language: en-US 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:210811 Archived-At: On 27.07.2021 23:51, Juri Linkov wrote: >> I think that kind of search scoping in advance can be specially useful >> when you are doing a grep-like search in the codebase, using either >> grep, rgrep, project-find-regexp, or xref-find-apropos. > > Then in your comparison with grep, this is similar to grep options > 'grep-find-ignored-directories' and 'grep-find-ignored-files'. Except in reverse (inclusion, not exclusion) and tweakable at runtime rather that through Customize. >> I didn't have in mind implementing cumulative filters. I don't know if >> people would need such advanced filtering of results. > > Earlier you compared this to flush-lines/keep-lines, and these commands > are cumulative. But maybe xref filtering doesn't need to be cumulative > when it will support specifying a regexp with alternatives '\|'. I think ultimately it depends on the mental model the UI produces. In the examples we've seen in other programs, you usually modify an input field containing the previous search terms, so that makes it obvious the existing filter would be replaced, rather than added to. If the new prompt did that as well, it could work similarly.