From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#42149: Substring and flex completion ignore implicit trailing =?UTF-8?Q?=E2=80=98any=E2=80=99?= Date: Tue, 08 Sep 2020 12:22:39 +0100 Message-ID: <87sgbsv7gg.fsf@gmail.com> References: <87k0znsdjb.fsf@gmail.com> 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="30913"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 42149@debbugs.gnu.org To: Dario Gjorgjevski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 08 13:23:09 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 1kFbiP-0007w8-JA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Sep 2020 13:23:09 +0200 Original-Received: from localhost ([::1]:48552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFbiO-00007b-Li for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Sep 2020 07:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFbiI-000077-M7 for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2020 07:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFbiI-0007bH-DT for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2020 07:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kFbiI-0006tE-AC for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2020 07:23:02 -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: Tue, 08 Sep 2020 11:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42149 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 42149-submit@debbugs.gnu.org id=B42149.159956417126454 (code B ref 42149); Tue, 08 Sep 2020 11:23:02 +0000 Original-Received: (at 42149) by debbugs.gnu.org; 8 Sep 2020 11:22:51 +0000 Original-Received: from localhost ([127.0.0.1]:52210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFbi7-0006sc-DQ for submit@debbugs.gnu.org; Tue, 08 Sep 2020 07:22:51 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:52428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFbi5-0006sO-32 for 42149@debbugs.gnu.org; Tue, 08 Sep 2020 07:22:50 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id q9so16926139wmj.2 for <42149@debbugs.gnu.org>; Tue, 08 Sep 2020 04:22:49 -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=iKj4wLNE4yJAwBuh1mqWblWJwCUO7O7krd19J2F0118=; b=CqXIknxjP70sL6yUA5VbpMUeveyBYsJAhblca/MLKgKBQTkEmLgNeFX66tkqZ137FN DXmpkgvoiLtPhcVL8xLjjAu/8DmlF6kBeFfUxsaump6VoPZK8qGwCMmoPh4GI+szsglZ gBxdnJ8lHwK4VdQQfvqfv37D4NjSyVtL8Cgp1BAifZ7KGM7/8SllehsXP55IToBALaW5 OE2ExLN6w6miOM1J9zVWomJL0ghNBI0CVhh2EzyTEiksFdPraRWxstgl6M53n6hSkEyb K/QAliJOoPo1d2NtdQbkCV4sLZO0qIrClj8IhyVUkKEvug4Rr0sSiRbzUjoOtg9Sxnuz TBsQ== 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=iKj4wLNE4yJAwBuh1mqWblWJwCUO7O7krd19J2F0118=; b=aZq8X0WzWF6ufsmZqAUgbk8hv73taupf7FbPg/krkobWio66FHtdlcAJO7CcITYs2m Xzn+AQnUjl9/AQGqHoeH3guT2zuLZVBsptgY6XBdWhzT8c4j3hvXLZbJybk+6spitzVu CpIl2UJqrp3wtxsl+QC7KKGkkjL+JLAzpcqWx2utAzRUKXbMTidN0yLHMmUx9E6U1NnI /NnZqnXVx2/rV2/iro2MDAg0j9bJaGDnvIaOQqWgooxidozMj5FcQikTqsFgbP41b34Y uFT3F6DjgjCrDVyB1lfM7Ey9ApRIxmgqJa7dnm38DsmodSBihgTh+U9qTx2FvCo+Oyll /uYA== X-Gm-Message-State: AOAM533IiUg1khmBHl8zVIobVwBB0jWCvnZR2l8UjIFtEn+d2DA7Glr0 78pv9GRRFrj+CiPWInV4dxzGEOwZjPqeEQ== X-Google-Smtp-Source: ABdhPJxrIuxbGpI9576zsb5xpiGF2TAKbigwAsIDn4UH4h5JFPf/JR3tgCMEhb3uq3zlX6fHeFFPVg== X-Received: by 2002:a7b:c0c5:: with SMTP id s5mr3869322wmh.152.1599564162941; Tue, 08 Sep 2020 04:22:42 -0700 (PDT) Original-Received: from krug ([89.180.149.6]) by smtp.gmail.com with ESMTPSA id l10sm31437962wru.59.2020.09.08.04.22.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 04:22:41 -0700 (PDT) In-Reply-To: (Dario Gjorgjevski's message of "Tue, 08 Sep 2020 13:12:51 +0200") 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:187535 Archived-At: Dario Gjorgjevski writes: >> Is this is vanilla emacs, or are you using some icomplete-mode or >> fido-mode? >> I.e. can you post the entire Emacs -Q recipe? > > It is really simple to reproduce. > > 0. Run =E2=80=98emacs -Q=E2=80=99 in a directory with two files: =E2=80= =9C1=E2=80=9D and =E2=80=9Cfoo1=E2=80=9D. > 1. Enable fido-mode. > 2. C-x C-f 1 RET. > > Emacs will open =E2=80=9Cfoo1=E2=80=9D even though I would expect it to o= pen =E2=80=9C1=E2=80=9D as that > is an exact match. But, I really think this is a pointless > discussion. It's not. Before, you hadn't mentioned fido-mode. As I told you, I need to assess the priority of this bug, in terms of whom it affects and to what intensity. > The issue *is not caused by fido-mode* but by the mechanism of substring > (and therefore, flex) completion. Obviously, I'm not disputing that in any way. >> M-j instead of RET in these one-letter completion cases. Or even C-u >> M-j, if that doesn't work. > > Sure, but my muscle memory opposes that. I'm sorry, but that's the only workaround I can think of. Bear in mind that, when using fido-mode, you need to be aware of that shortcut anyway in some situations where the text you want to input is not among the completions. C-c C-w to write a new file would likely be the most prominent example. To summarize, I believe this isn't a very common case, and it is easily circumvented with the workaround I gave you. I of course acknowledge this bug report as a bug. Maybe you can try making a patch for Emacs that fixes it and test it. Jo=C3=A3o