From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wanrong Lin Newsgroups: gmane.emacs.bugs Subject: bug#39484: 26.3; try-completion bug Date: Tue, 27 Oct 2020 20:44:56 -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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8059"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 Cc: Lars Ingebrigtsen , Stefan Monnier , 39484@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 28 01:46: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 1kXZbS-0001zo-FU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 01:46:14 +0100 Original-Received: from localhost ([::1]:45278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXZbR-0000Jr-AM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 20:46:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXZbG-0000JT-M8 for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 20:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34879) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXZbG-00068x-AC for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 20:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXZbG-0006wd-8g for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 20:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wanrong Lin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Oct 2020 00:46:02 +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.160384590626626 (code B ref 39484); Wed, 28 Oct 2020 00:46:02 +0000 Original-Received: (at 39484) by debbugs.gnu.org; 28 Oct 2020 00:45:06 +0000 Original-Received: from localhost ([127.0.0.1]:46425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXZaL-0006vM-Vf for submit@debbugs.gnu.org; Tue, 27 Oct 2020 20:45:06 -0400 Original-Received: from mail-pj1-f52.google.com ([209.85.216.52]:32947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXZaL-0006uY-3J for 39484@debbugs.gnu.org; Tue, 27 Oct 2020 20:45:05 -0400 Original-Received: by mail-pj1-f52.google.com with SMTP id g19so514501pji.0 for <39484@debbugs.gnu.org>; Tue, 27 Oct 2020 17:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=B4Ip0pqioAk//Npa7sclrw85m2NlK1o746FuOOmI/3A=; b=NnoQ6itUv8C4hOBZQAq6jKvGEW6vZ7Ypyvm6HqyU3wr/qJHX80U13vBUDFiVk5/XzT vK959SeK/iL53cKojFv8gpCu7jWcI23OGNR7rlSL2hLTE8l8y8h1DwucTCDODNNRlUms yMz77o3+6YCDSH7SA90E2G+n1mm6mDt2HFqQrzShhZgAKr1R2iy+qrHjrnE3q25xZ3HJ fxxbelcOkW9842jL+T602wHlr5kUiPL8CwH8e5JvV6aFuikyGwmJxINdtNelzX2Kywx6 BVq0fl4DFm6ObUppsVJN6wsw8XUost6XsDjJ4XSPTKmQ1dYcjYMsx8/+wmCL4p5f2Kk3 sshg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=B4Ip0pqioAk//Npa7sclrw85m2NlK1o746FuOOmI/3A=; b=r4vBKczwSPfBBfzKGHsgu1i8e0h5s/f7TE+fCIm8eDGSqW7thJsnXnoP+j49wA5pAd xD6r9Io4XtIWih64GV+VrBkm/1LT3qj9G4lo78WHP2Miy8PNigWRZtArQ6wfjfJQrKLf v69MdJNCwFJkjEhdmOlgEKq38OgfBIayvCgCkPu5kCtElSLwCYai1N7N3HQWg4uGEsg7 +9w73RXM2aqvxb3C3T4p0AsTjI7UWtvWoqCGqSbtNnMSqA9GvL/u5/zPoARJTIadLlar BlKdGHAeVP08wb9XzrCmaEubcVCyXRLTXo1lOqx+Py66WYnzb6/KEdx45hrO8cncVyVH NPfw== X-Gm-Message-State: AOAM533xVGmPSZDC4Biujy2+w13VtZbpGnQwq1gQn9mZEu7Bw826L+s5 w/L1HtsUCPpp+3IpKrKV/qHV8tb2nXsGow== X-Google-Smtp-Source: ABdhPJyaZsdgmFcNA/DPkCe5CDBhOcSsx6nyPe9uTxBZx2laEmLzlKZCVA+b01DsDFuyYnkkqnoyaw== X-Received: by 2002:a17:902:9042:b029:d5:eef1:c9c8 with SMTP id w2-20020a1709029042b02900d5eef1c9c8mr5073526plz.0.1603845898892; Tue, 27 Oct 2020 17:44:58 -0700 (PDT) Original-Received: from [192.168.2.19] (c-71-226-226-185.hsd1.nj.comcast.net. [71.226.226.185]) by smtp.googlemail.com with ESMTPSA id a10sm3022438pjq.17.2020.10.27.17.44.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Oct 2020 17:44:58 -0700 (PDT) In-Reply-To: <87tuuf9xgp.fsf@igel.home> Content-Language: en-US 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:191806 Archived-At: For this case, "abc" might be OK, unless you think there is another better answer. But in the example I gave, don't you think "Xyz" is obviously a better answer than "xyz"? The argument here is for some examples, the function does not return the best answer, and also, does not seem to be consistent to me (for those two examples I gave). There might be a reason behind this "compromise", or, it might be just an arbitrary decision as documented in the comments you gave. If it is the latter, can we improve on it? I think those are valid questions. Wanrong On 10/27/2020 5:21 PM, Andreas Schwab wrote: > So what should (try-completion "abc" '("Abcde" "aBcdf" "abCdg")) return? > > Andreas. >