From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 40152@debbugs.gnu.org
Subject: bug#40152: 27.0.90; icomplete vs recursive prompts
Date: Sat, 21 Mar 2020 21:03:39 +0100 [thread overview]
Message-ID: <87fte13278.fsf@gmail.com> (raw)
In-Reply-To: <837dzdesnw.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 21 Mar 2020 15:36:35 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> For example, if I'm in a buffer whose default-directory is the root of
>> the Emacs source repository (e.g. in a Dired buffer, visiting the
>> Makefile…) and I hit C-.
>
> You mean, M-., right?
Right 🤦.
>>(and point is not on something that looks like an identifier),
>
> How do you do that? If I type M-. in *scratch*, Emacs doesn't ask me
> whether to visit a tags table (because the major mode is emacs-lisp).
> I need to visit a C file in src/ or lib-src/, but then all I need to
> type at the prompt is RET, nothing else. And if I do the above from a
> Dired buffer which shows the Emacs's root directory, then I get the
> prompt about visiting the tags table without any "Find definitions"
> prompt, and the problem doesn't happen.
>
> So please show the exact recipe for how to reproduce the problem you
> see.
>
>> here's what happens:
>>
>> 1. the "Find definitions of" prompt appears,
>> 2. I start typing an identifier,
>> 3. the "Visit tags table" prompt interrupts,
>> 4. I'd like to input "src/ C-j", but every self-inserting character
>> makes the prompt go back-and-forth between "Find definitions of" and
>> "Visit tags table". Worse, when the prompt comes back to "Visit tags
>> table", any character I had previously input has disappeared.
>
> So the problem happens _after_ the prompt, not _with_ the prompt.
> That wasn't quite clear, at least to me, from your original report:
> there was no sign in it what was the actual problem and what was the
> expected and result. Now I think it's becoming clearer, thanks.
My apologies for being unclear. Do those 4 steps you quoted (preceded
by M-x icomplete-mode) demonstrate the problem well enough then, or is
there anything I should add?
To recap:
- The problem only happens
- with icomplete-mode,
- with the etags backend,
- when there is no "identifier-like" symbol under point,
- when either
- the user starts typing self-inserting characters when the xref
identifier prompt shows up, or
- icomplete-show-matches-on-no-input is t.
- The problem is that one cannot fill in the tags table prompt easily:
self-inserting characters cause the minibuffer to move back-and-forth
between the tags table prompt and the xref identifier prompt.
The tags table prompt interrupting the xref prompt is not an issue (to
me, at least); what I would like is being able to complete the tags
table prompt, then go back to the xref prompt.
- A workaround consists in calling minibuffer-complete (TAB) immediately
when the xref prompt shows up; this brings up a functional tags table
prompt.
(This workaround cannot work when icomplete-show-matches-on-no-input
is t.)
Let me know if I managed to muddy things up further.
Thank you for your patience.
next prev parent reply other threads:[~2020-03-21 20:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 18:21 bug#40152: 27.0.90; icomplete vs recursive prompts Kévin Le Gouguec
2020-03-21 7:27 ` Eli Zaretskii
2020-03-21 12:21 ` Kévin Le Gouguec
2020-03-21 13:36 ` Eli Zaretskii
2020-03-21 20:03 ` Kévin Le Gouguec [this message]
2020-09-07 9:11 ` Kévin Le Gouguec
2021-01-24 15:06 ` Kévin Le Gouguec
2021-02-04 18:39 ` Kévin Le Gouguec
2021-08-19 22:05 ` João Távora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fte13278.fsf@gmail.com \
--to=kevin.legouguec@gmail.com \
--cc=40152@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).