From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#40152: 27.0.90; icomplete vs recursive prompts Date: Sat, 21 Mar 2020 13:21:27 +0100 Message-ID: <87v9mxsxtk.fsf@gmail.com> References: <87wo7ex4z6.fsf@gmail.com> <83k13edv67.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="97595"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40152@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 21 13:22:13 2020 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 1jFd8l-000PGl-N9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Mar 2020 13:22:11 +0100 Original-Received: from localhost ([::1]:36242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFd8k-0004KL-La for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Mar 2020 08:22:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41068) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFd8d-0004KC-Mu for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 08:22:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFd8c-0004km-Io for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 08:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFd8c-0004kc-FB for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 08:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFd8c-0004v7-9U for bug-gnu-emacs@gnu.org; Sat, 21 Mar 2020 08:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Mar 2020 12:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40152 X-GNU-PR-Package: emacs Original-Received: via spool by 40152-submit@debbugs.gnu.org id=B40152.158479329718872 (code B ref 40152); Sat, 21 Mar 2020 12:22:02 +0000 Original-Received: (at 40152) by debbugs.gnu.org; 21 Mar 2020 12:21:37 +0000 Original-Received: from localhost ([127.0.0.1]:46086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFd8C-0004uK-UM for submit@debbugs.gnu.org; Sat, 21 Mar 2020 08:21:37 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:53688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFd8A-0004u4-QR for 40152@debbugs.gnu.org; Sat, 21 Mar 2020 08:21:35 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id 25so9257208wmk.3 for <40152@debbugs.gnu.org>; Sat, 21 Mar 2020 05:21:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=O/S8VtERhfs2DXZANKIhxs4bMaXYuVI/Ry9uCkkDaOY=; b=FHwCbAuW/JZAkVP3//itLS4IpQMx+aO0RPNa3wWUEU4CTWa3kbFpTqc08/nLsWUZ2o aNVwSxOIlIpDBkiY+5ra5hAI112oq0u3S68wU0oDwO21PF9uRFgAtnARcDWmLyo+T9Pj 5rMk1rq+oFdC3oo6Bq0EVyWkmMfePdsE/7pltk2kZZlTw8YZO/4Dgov9PFe6U1LhsCsb JavHfrZeT/XAdxf1zxY8gD8B322R0OwcqXRhSJdcjeH2t1vsg9enFVFayqbT4wA+J6lP 44qE4TGBvT3S7UZY3pEBl6as60FHi5/8jddmBODHwjLV6ndhyEnOuT0SuStQQRjBVERq TgaA== 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=O/S8VtERhfs2DXZANKIhxs4bMaXYuVI/Ry9uCkkDaOY=; b=l1i1IBLo//fN3iikvIh+OAUNC3JvR/1VoEsfbVtTLyJbqIMzlNLU7NRDxjyexIVCBt ZzAtZDIPclShx+kOEq/jArUkKSLxd94IPjS65LKdOqhpqi6gEBlQMbCcRPFyiUu6VLqL oUFPudvedM/eAU2NsTbg7oL/YNnVTNKg28bHke1tMJk7dMSEI9zyl+nJ70N5OKK9/uau WNjSeDY42shbhdXciao32WeYDT8AVObNMxYxaURf0nXTeHqs+b0UOQEoylQQQe8eIOMo IfVch8bYhhv8BUUwBdi0Sy4SO+aRLSff1R+2cumdMdSbDMAUMOmZbX/RJ0hiVu5rkrni 8SLA== X-Gm-Message-State: ANhLgQ2JNr6zeO77zEY2C9S+ogLh9WJyYeYkb07ZeIfe6rwDlRoW2QKY 0nMDg0SBjnuaEdLILTM5asA6wSrk X-Google-Smtp-Source: ADFU+vuaBijBXWGNcBt6EZubMMFsZc2ZVInr+B7DPoZG33oyRwZ3eeO2n5uAEynvFwmdSgyp3KXuzA== X-Received: by 2002:a1c:ed1a:: with SMTP id l26mr8749584wmh.175.1584793288605; Sat, 21 Mar 2020 05:21:28 -0700 (PDT) Original-Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id d18sm13012764wrq.22.2020.03.21.05.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Mar 2020 05:21:27 -0700 (PDT) In-Reply-To: <83k13edv67.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 21 Mar 2020 09:27:44 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:177593 Archived-At: Eli Zaretskii writes: >> From: K=C3=A9vin Le Gouguec >> Date: Fri, 20 Mar 2020 19:21:01 +0100 >>=20 >> - "Synthetic" reproduction recipe: >> - (completing-read "Foo? " (tags-lazy-completion-table)) >>=20 >> - With actual user commands: >> - C-x b foo RET >> - or any non-Lisp buffer, so that xref picks the etags backend >> - M-. >>=20 >> From there: >>=20 >> - Try to input a character. >> - The identifier prompt is interrupted by the etags prompt ("Visit >> tags table"). >> - Try to input a character. >> - The etags prompt disappears and we're back to the identifier >> prompt. >>=20 >> The identifier prompt is replaced with the etags prompt as soon as a >> single character is typed. While in the etags prompt, one can use >> icomplete commands (e.g. TAB, C-.) as well as C-q CHAR to input >> characters one-by-one. > > What would you like to happen instead? When the etags prompt interrupts the xref prompt, I'd like the etags prompt to remain uninterrupted until I exit it (with e.g. RET/C-j). In particular, self-inserting characters do not cause the xref prompt to come back. 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=E2=80=A6) and I hit C-. (and point is not on something that looks = like an identifier), 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. I just found out that there is a workaround: in step 2, if I hit TAB (minibuffer-complete) instead of typing an identifier, the "Visit tags table" prompt comes up *and stays until I exit it*. The back-and-forth only starts if 1. I input a self-inserting char during the first prompt, or 2. if icomplete-show-matches-on-no-input is t.