From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#39484: 26.3; try-completion bug Date: Wed, 28 Oct 2020 10:45:07 -0400 Message-ID: References: <874kmf1peq.fsf@gnus.org> <87361zbi5x.fsf@igel.home> <87h7qfzdf8.fsf@gnus.org> <87y2jr9zwt.fsf@igel.home> <8fed8748-8331-5ca7-6c91-108c27945bb2@gmail.com> <87tuuf9xgp.fsf@igel.home> <87ft5y3i17.fsf@igel.home> <87tuuevgl2.fsf@gnus.org> <87zh461yas.fsf@igel.home> <87lffqvfvk.fsf@gnus.org> <87v9eu1xon.fsf@igel.home> <87tuuetxbb.fsf@gnus.org> <87lffq1snn.fsf@igel.home> <44009e48-c8b7-72c1-b505-4308d84c24e7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6993"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , Andreas Schwab , 39484@debbugs.gnu.org To: Wanrong Lin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 28 15:46:14 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 1kXmiM-0001hO-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 15:46:14 +0100 Original-Received: from localhost ([::1]:50286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXmiL-0005zb-4e for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 10:46:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXmiA-0005wO-53 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 10:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXmi9-00023N-QV for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 10:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXmi9-0001ZT-Pk for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 10:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Oct 2020 14:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39484 X-GNU-PR-Package: emacs Original-Received: via spool by 39484-submit@debbugs.gnu.org id=B39484.16038963185983 (code B ref 39484); Wed, 28 Oct 2020 14:46:01 +0000 Original-Received: (at 39484) by debbugs.gnu.org; 28 Oct 2020 14:45:18 +0000 Original-Received: from localhost ([127.0.0.1]:50046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXmhS-0001YQ-AD for submit@debbugs.gnu.org; Wed, 28 Oct 2020 10:45:18 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:46996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXmhQ-0001YD-5g for 39484@debbugs.gnu.org; Wed, 28 Oct 2020 10:45:16 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6EB4C4408C8; Wed, 28 Oct 2020 10:45:10 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 34F5D440848; Wed, 28 Oct 2020 10:45:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1603896309; bh=qNEHjRE1PVt/itshc63PkV85QUStd64vh/YgwAYKm2Q=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=eFhDkb1fRsTWngHbhX49+r+raMUM3My1SvlePihU6mqTNa30QILCeg7zxvdizTXsB lIli9ELx4p6FiBmCFMQ0Py56kXm5prShNIcbkoljqMA4RRqe1SXJtJo/ab0RzmVh2b h/eJKMMlMhjPLUQEzUtdQDAdaDr6zYbWjxIgSxSEFk3T29pl8985RS+3XLK8StfmL2 H5Lan9jgTnULxODuapQ5yqoQt/1IRKhKzeXrM5Pmo2NZ6r6GhNboHuYeQU9QCaRVmc OOw4zp3NQvK9LbNyXVJvpOQE77wkW0TpAKnyeyw8MBBx9mjkaZ+70S0DDrJmonh1vr Jt/GigWNCurvg== Original-Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D5F5B12036E; Wed, 28 Oct 2020 10:45:08 -0400 (EDT) In-Reply-To: <44009e48-c8b7-72c1-b505-4308d84c24e7@gmail.com> (Wanrong Lin's message of "Wed, 28 Oct 2020 08:59:24 -0400") 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:191879 Archived-At: > 1. Return value is not ideal. You can argue it is still not wrong, but > I think we can improve. Indeed, it can be improved, but we should not try to be too clever about it, because some choices might seem obvious in some circumstances but would result in rather poor answers in other cases. So rather than hypothetical cases like what we've seen here, I'm much more interested in real life situations. The current design is trying to be conservative, in the sense that it tries to avoid returning a poor result, at the cost of sometimes failing to return a better result. It does it by refraining from mix-and-match: either the whole result comes from the user input or the whole result comes from *one* of the candidates. There are cases where `completion-try-completion` (as opposed to `try-completion`) doesn't actually follow this rule correctly, and it's been a source of suboptimal results. Stefan