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?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#42101: icomplete-fido-ret doesn't always use minibuffer-default when input is empty Date: Mon, 29 Jun 2020 15:00:16 +0100 Message-ID: <87v9ja9dlb.fsf@gmail.com> References: <427CB228-0C09-44A0-A684-0A7C2C294487@schwartzmeyer.com> 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="13200"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 42101@debbugs.gnu.org To: Andrew Schwartzmeyer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 29 16:01:15 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 1jpuLP-0003GX-UN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 16:01:11 +0200 Original-Received: from localhost ([::1]:51040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpuLO-00017d-SI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 10:01:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpuLG-00016P-3i for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 10:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpuLF-0003Jg-Q0 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 10:01:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpuLF-0004qW-P6 for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2020 10:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jun 2020 14:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42101 X-GNU-PR-Package: emacs Original-Received: via spool by 42101-submit@debbugs.gnu.org id=B42101.159343922718562 (code B ref 42101); Mon, 29 Jun 2020 14:01:01 +0000 Original-Received: (at 42101) by debbugs.gnu.org; 29 Jun 2020 14:00:27 +0000 Original-Received: from localhost ([127.0.0.1]:49016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpuKh-0004pI-7w for submit@debbugs.gnu.org; Mon, 29 Jun 2020 10:00:27 -0400 Original-Received: from mail-wm1-f53.google.com ([209.85.128.53]:54048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpuKe-0004p0-HO for 42101@debbugs.gnu.org; Mon, 29 Jun 2020 10:00:25 -0400 Original-Received: by mail-wm1-f53.google.com with SMTP id j18so15495713wmi.3 for <42101@debbugs.gnu.org>; Mon, 29 Jun 2020 07:00:24 -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=6LEywURMkVY+rVK+R5m0rTtOfVcj0UNxLFcHBw6yD1M=; b=EwAWbqRUx/F74/aBeSYhYNhjbEnQ+yJC21PBiQY41v9A8aRbmP0KGGKuBtIZFnsza6 UjXmxj7yYkQRz2rcFoWotjxZEuVaF1kan6ScvL1egNRBWogKN1ETgeq/ucNfbriUgW9m fFkKIMHR4rqHL6UtIqshUX44+LahxWsiW2LKm+FQEQtYO398hRvxzq0ilb5WSkc2XBsI B2sy3tKI4g+aJADjagRsgd3IhKNsaLUMrLGgMZdmuuOGZIH3aO/TveGI1dVrLqRjj8UL BnfoPyZ0scwKEjYBiv6XZu7aUSoNdyCip0C6evU3XcIBJIB3hn5DRiNOpFW9mKksZNGZ kdig== 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=6LEywURMkVY+rVK+R5m0rTtOfVcj0UNxLFcHBw6yD1M=; b=AJEZ3V7XRAqPrbsg1XEOoMQr5JaxTBmewMvNajioW6E1mIaXbxuTDBWpMDXjBrt+K5 g3As1O3yZWYyHGC65tym5KYAVt8Hh7EX4vrzDjIXLX/oSJggc31ipoMRnEHP3nr9hDJD MEUfcglHEbhZYR+YewyS+0UfeYIwmpySjazg3zuE2GpHm7cBXfYnDlQvc/TWY2jwrb2/ O0/eX/ItmEOmD86I7zto1ZQAi1dyJtdQZjXY2zjga5CVykUX8jwhRFG+8Al7f49b8ST1 7+ZTPY906fDcye4BV5UqRYbQ4oxJ3W5M63Wv3ERNf+XHXm7vw79maSuEcrC/hLI88qng uQ7g== X-Gm-Message-State: AOAM533SIeGfc+PKGcwDt2xN9KzvRsBaQVn4nFp20ecamQAQdlRR9XgC efqZoyEn6aEsAH5jcuVzZ04i6wB7 X-Google-Smtp-Source: ABdhPJxcKOKbO3trADOoeFom8fMZN2NcVBgV5J+RwQQXShzAD0ThPBkukC5TDYKCo7fLVqo3zSJGAg== X-Received: by 2002:a1c:4185:: with SMTP id o127mr16602397wma.8.1593439218218; Mon, 29 Jun 2020 07:00:18 -0700 (PDT) Original-Received: from krug (89-180-150-59.net.novis.pt. [89.180.150.59]) by smtp.gmail.com with ESMTPSA id x18sm37704729wrq.13.2020.06.29.07.00.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 07:00:17 -0700 (PDT) In-Reply-To: <427CB228-0C09-44A0-A684-0A7C2C294487@schwartzmeyer.com> (Andrew Schwartzmeyer's message of "Sat, 27 Jun 2020 22:59:40 -0700") 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:182523 Archived-At: Andrew Schwartzmeyer writes: > Hi, > > Funny bug, haven=E2=80=99t figured out the cause. It may be hard to repro. > > If you have some amount of minibuffer history, you can cause > icomplete-fido-ret to not accept the minibuffer-default. An example is > having history such that 'C-h v' when point is on =E2=80=98completion-sty= les=E2=80=99 > causes =E2=80=98completion-styles-alist=E2=80=99 to be the first history > element. Since the minibuffer-default shows =E2=80=98completion-styles=E2= =80=99 (being > that it=E2=80=99s under point, and I=E2=80=99ve not entered any text into= the > minibuffer), I=E2=80=99d expect RET to choose =E2=80=98completion-styles= =E2=80=99, but instead > it choses =E2=80=98completion-styles-alist=E2=80=99 (the head of the pres= ented > candidates, =E2=80=98completion-styles=E2=80=99 is instead the second can= didate). > > This repros in fido-mode, but not icomplete-mode. I took a look at the > relevant functions called on RET for these modes but am having trouble > finding the issue. I can't reproduce this. I think the first step is for you to try to identify which sequence of actions as performed from an Emacs session started with -Q lead to the problem. For the record, I tried Emacs -Q (master of around two weeks ago) C-h v completion-styles RET C-h v completion-styles-alist RET type "completion-styles" in *scratch* buffer. With cursor on word. C-h v RET (quickly, before the completions appear) C-h v RET (slowly, letting the completions appear) Both approaches lead to the variable `completion-styles` being described. Jo=C3=A3o