From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.bugs Subject: bug#49846: 28.0.50; project-find-regexp results does not open target file Date: Thu, 05 Aug 2021 09:28:20 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12391"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 49846@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 05 05:59:14 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 1mBUXK-00032T-Rq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Aug 2021 05:59:14 +0200 Original-Received: from localhost ([::1]:38390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBUXJ-0007Ul-5c for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Aug 2021 23:59:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBUX8-0007Ua-Dj for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 23:59:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBUX8-00084I-7B for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 23:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBUX8-0003wT-4g for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 23:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Aug 2021 03:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49846 X-GNU-PR-Package: emacs Original-Received: via spool by 49846-submit@debbugs.gnu.org id=B49846.162813591315116 (code B ref 49846); Thu, 05 Aug 2021 03:59:02 +0000 Original-Received: (at 49846) by debbugs.gnu.org; 5 Aug 2021 03:58:33 +0000 Original-Received: from localhost ([127.0.0.1]:45592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBUWf-0003vj-Ca for submit@debbugs.gnu.org; Wed, 04 Aug 2021 23:58:33 -0400 Original-Received: from mail-pj1-f49.google.com ([209.85.216.49]:37376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBUWc-0003vQ-LX for 49846@debbugs.gnu.org; Wed, 04 Aug 2021 23:58:31 -0400 Original-Received: by mail-pj1-f49.google.com with SMTP id dw2-20020a17090b0942b0290177cb475142so12121065pjb.2 for <49846@debbugs.gnu.org>; Wed, 04 Aug 2021 20:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Dh5SrAh40KhU8u34UyeW3OFTK/aVB/z5I0JjXZ4bKuA=; b=U0DaBQfn6zdnyL18vc2Xf7HF2nUcVC/2EDdHDWnIMFXWAycqvH8rD5TERca2V2MVQT F7rzR8V4BWOL2oDbRQmFZP4g8w1t78Uu4klUpY7to80pk+sYxTgK1S1h3p0bYSvWlSSM Dzuo07AT1tkwn5gS6uHAO2yDJOmM7V+4DfeUmqZ6L72KTlAF1MQsVwuK4t58bc6sd8ub jJnQT+0GoL0EcmJTnmX7xmWj6mIICOCsleU1auF8T3VVNP7zs9Njs9DOSiKf7Q4mgc69 HXcijfr/1ISVlC88vDeyXRH2Pw4AFjb7OYnBTBjEgXdytIR/3nBYfr/xWSjMzP3S2BzI 4BPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Dh5SrAh40KhU8u34UyeW3OFTK/aVB/z5I0JjXZ4bKuA=; b=VnG9yBuaJDit3kXBcCPw+7EKUhbygyrs2QXnOwOyoZm1OP1UNeydGYrmLbYtgi3TdY PwmNckKcDbHZ70XgbDwcnw6lR+SKvE3IwXV10BQZp3Bv/Rjov6HKqUEAP0cYXbm+13VI MotFP37II+a81DystrNnY9yJRT32med2oAIg1/RhigV3311ROnJzcamuAx8cLnXyhQfE bAm3cgc0lPJ7VzVM6s8/k62DkrtIHNKgX9sGYpY925iYu0DiftX/eOOS6Tz9+pFyNDbA Nci0nEAZvJtiFfCYNXQDxHGB7SQ39ZbK7W0pguBNoYarDbsFnbVg+bcmGAt5PWGcjyPM Fp3w== X-Gm-Message-State: AOAM532HUcKmKiQFfWuuoc5t5PMjGtjfAzeJ9zLrMBvw+7rXDZUUkSSq utlFrSRMklpWTZ5o0FGowHuGI/W+KaGLJ9Nz X-Google-Smtp-Source: ABdhPJzHUQFSA76Y5LPSKVWioBET6rl5rQhelr59LCWj/CE/t/9UpO7Dxx83w36wufOuOQVNz39H5w== X-Received: by 2002:a63:594e:: with SMTP id j14mr2074170pgm.249.1628135904299; Wed, 04 Aug 2021 20:58:24 -0700 (PDT) Original-Received: from mb2.local ([2405:201:5c06:70a7:5c3f:85eb:5f74:d647]) by smtp.gmail.com with ESMTPSA id u190sm4682968pfb.95.2021.08.04.20.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 20:58:23 -0700 (PDT) In-Reply-To: (Dmitry Gutov's message of "Thu, 5 Aug 2021 06:06:03 +0300") 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:211201 Archived-At: Dmitry Gutov writes: > On 03.08.2021 20:12, Pankaj Jangid wrote: >> Steps to reproduce: >> 1. emacs -Q >> 2. C-x p p (project-switch-project) >> 3. select project >> 4. press g (Find Regexp) and search for a term then RET >> 5. In the results select any file >> Result: No reference at point >> Expectation: step-5 should open the file-at-point and point should >> be >> placed at a suitable place in the opened file. > > To be clear: you position the point on a group name, press RET and see > this message? That is expected. > Okay. I didn=E2=80=99t know this. Has this change in recently? I remember hitting on the group and opening the target file. But true, with multiple results in the group that would be confusing. > If we do end up changing this behavior, what would the "suitable > place" be? The first match in the group? There are two options here: 1. We just change the message. Something like: "select a match to open". 2. In addition to above, we may have a customization variable. Something like - xref-open-first-match For this bug, (1) should be sufficient.