[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49846: 28.0.50; project-find-regexp results does not open target fil
From: |
Pankaj Jangid |
Subject: |
bug#49846: 28.0.50; project-find-regexp results does not open target file |
Date: |
Thu, 05 Aug 2021 09:28:20 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) |
Dmitry Gutov <dgutov@yandex.ru> 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’t 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.
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Pankaj Jangid, 2021/08/03
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Juri Linkov, 2021/08/04
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Dmitry Gutov, 2021/08/04
- bug#49846: 28.0.50; project-find-regexp results does not open target file,
Pankaj Jangid <=
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Dmitry Gutov, 2021/08/05
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Pankaj Jangid, 2021/08/05
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Dmitry Gutov, 2021/08/05
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Pankaj Jangid, 2021/08/05
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Dmitry Gutov, 2021/08/05
- bug#49846: 28.0.50; project-find-regexp results does not open target file, Pankaj Jangid, 2021/08/05