From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: Question about completion behavior Date: Sun, 13 Mar 2022 23:14:56 +0000 Message-ID: References: <87lexiiqnk.fsf@yahoo.com> <20220310102157.wmmn7bkkdbux7aug@Ergus> <8735jqhxdr.fsf@yahoo.com> <20220310140331.xa53sex6wywkr56l@Ergus> <86ee39r69o.fsf@mail.linkov.net> <20220312001752.stzknhydiep6nsxn@Ergus> <8635jn81wt.fsf@mail.linkov.net> <20220313112108.j3lvtnvgybo7em65@Ergus> <86pmmpahdm.fsf@mail.linkov.net> <20220313211512.2kqyqcdpylxe2mgb@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29628"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Eli Zaretskii , "emacs-devel@gnu.org" , Stefan Monnier , Juri Linkov To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 14 00:16:05 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nTXRT-0007Q2-TP for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Mar 2022 00:16:04 +0100 Original-Received: from localhost ([::1]:43032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTXRS-0006rB-IQ for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Mar 2022 19:16:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTXQZ-00069O-Bt for emacs-devel@gnu.org; Sun, 13 Mar 2022 19:15:07 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:15700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTXQW-0001oE-4d; Sun, 13 Mar 2022 19:15:06 -0400 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22DAVDYE031061; Sun, 13 Mar 2022 23:14:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=5PY6+zdY8TCSQGCXxVv7684FyBiIkD1yIqABC55J+Wk=; b=nSt9HHvbcVNQ9gF/T5eQLy8wEMFmcYs3U9a14nuuANqAU8AxYFQnbXKVGuUGcMYwapmi 0m+68uhMqG126t+prqZeR8vK4rUjlddhF33xcwkeLEkLFhwfQgCZ9ev8SHIZhW5556Kf OLk/k3PA1WYVcmA98wNalZDf/xDSGlGzUOgY9OINmQ/QLitPa0MJhURZpEOdUGgzWjWY 2KYxBNtyrVkOxTCxMFxW8CeaznrEK7dZF9yb02C05vIqoVWLCxJBaDpAfMC7n3bvrC+d QHZfByzO7BGWEMrU/dcAr/Nukoqg40wt7jl0Nzhg/wCVygZaEM0P0niaiaAgELY0xgkX xA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3erkd9t4xa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Mar 2022 23:14:59 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 22DNBsFE097569; Sun, 13 Mar 2022 23:14:58 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by aserp3030.oracle.com with ESMTP id 3erjwpphgg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 13 Mar 2022 23:14:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GAu4Nvds63kBReBSzrl9juZJQoczIqe4BNRWI3zfMeW8vQskajqYyorl84BubBlTWZ0Pe2zGJiiHA1CJLtGSH6e1oVfby4z7bQLD5elQLM4bZcr89Uk6O0jIprJ5U+GUz0x2xm5Ew4/mv75cgOBj9p7AU9IzJXCWhsj2JnT7lYxOGvlccfaBNe4b04DTdmiToyjCop6JOuuBnbSR/UDloCFawHMLUZE0jCIoNyUK2p9s/PdhBMYPMJiu3iqY4gbsHsLuFfjqnZLlp+XcW2F8CSxMGjfjAT9CMQ356mufTDAyTeJmEiYIK8SO0qWBq9tDPlheZEtqbKhygMiqZzEQaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5PY6+zdY8TCSQGCXxVv7684FyBiIkD1yIqABC55J+Wk=; b=TXhsJ+YbFO3scVmrjPwo1PB9UUdj/GYk9kkEqjE05JE2wZQ4W7RmpmYOfQnaCbSjU6XzA0iv2LqEmajSo/ZplmJ5W15GZRRjDB64HDWXrTxId3P5ZUxc/XF5cNAfCFT70/Xkz1U7NSWpt8W5uYDlaeW1RDCLue27KfrKwycbbS5ao7MAcYuXmPKUr8QaLCZbe5VpyYP8OynBN/lIrt9XjNuS7WVmrzVdvKZlrhHDOSJPYSeDJpVW2Tast0+AAJ+kPLvAa3dHPfUg7F9WTAUsQmTDI2WCROsP2B0wBt+DFtzobFt8Bp/mZAc7CRNSe0JKCqqbvGcOhOyEMrX3C9H65g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5PY6+zdY8TCSQGCXxVv7684FyBiIkD1yIqABC55J+Wk=; b=cR7aongLb32gUkI5pgpbXjRprmCMvQJCpYCzwc7fgDKx98k6YGC79ZDI8Ur2FPgrSDpXKp8tzOtc0JL9eI4+N+ulZXJQMvHpu4/jIp+Vkahif25Fxj+M8xpUPYgC5dobt/XwGH7GtfHNhd5ph7m0LnqbFvMi1Erobt8FhyZpGRs= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH0PR10MB5846.namprd10.prod.outlook.com (2603:10b6:510:14c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.24; Sun, 13 Mar 2022 23:14:56 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::ec69:8077:89b0:4379]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::ec69:8077:89b0:4379%6]) with mapi id 15.20.5061.028; Sun, 13 Mar 2022 23:14:56 +0000 Thread-Topic: [External] : Re: Question about completion behavior Thread-Index: AQHYNx+Obm4m+PhNVE2xV168Ze5Lyay97I7g In-Reply-To: <20220313211512.2kqyqcdpylxe2mgb@Ergus> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0326851d-c3d4-4f14-0495-08da054749d8 x-ms-traffictypediagnostic: PH0PR10MB5846:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: G1UXLHvYbANNedRYpWvpBaY8n5GmR9pgJFD6R74cZZr3kRUJP+2xKsDVZ7+QdpzxP2Q0yEoQpli65LLL5CHj743NWQ2Rx7vFPdFcc+HRVFS5dW7M6WBoLO1lP/8aFR6zD2aLaZ+46h0TNAJJ1zuRh3dEnUo7gvdkRJIfOLlF8srikuUVa3/kEk2S7KTQfcfIWiq4n6XC60Yyivr/iJheJbRaSzJGSXCqi16L0wa7hMeKOGWNcY7ctavCz+pweghIZO+siWgEfYUk95Gmp8tLhp/XHVpkEtkftOFTJLBqmmPbzcm9RXzLn+gbRvjuZC/0ZBT+Aqh8aauc4Tt+ZLdUsKd2ithfoPzmd+7RQoUVpuDhAKfqeRO31XNWMxIQuRBJHYOAoGlfyXAJRpCO6t7jHBNLTugjZqpiLEcaJYA3gy94p8buSejzCnt93BgjRUYqZV2F7kVgtnqexqT2HHXDUDZRGV58DfPNkgY0+xZUJbb9INtBLGaBav/YRFu96KM2262dzJGTwAKdqLMDJs6RX4iXFU9JmhpXcDw33LYMGm6VgShhOV9vlojqyvQrgLZi8Fdo9e3jdG6JrPiiwCtwwt9amFN6vpBfi9B+CHyPfwaK9fae7sGQaSBr3qCzM2k76y2Uli33EbomDEA3aBnFqR+2Wt7M/DUE9K89Y3yuJC5mMGaxkp5TRMP+Y112StDEp0X0qyovnAfwbqzA+PeN6w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6506007)(76116006)(66946007)(64756008)(66446008)(66556008)(66476007)(7696005)(8676002)(71200400001)(86362001)(9686003)(4326008)(508600001)(316002)(54906003)(6916009)(38100700002)(122000001)(26005)(83380400001)(38070700005)(186003)(2906002)(44832011)(5660300002)(33656002)(55016003)(52536014)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?MymMFr3a1+q5V49k+jDh4zBOl6ntlbUv7mtHIbYNn5GZ9v33WDnqnSQLoQZE?= =?us-ascii?Q?8wscwM3Tf/FQ+2LkvPaMeal2XGtKAReadpUpDVfoLr1bSM7LBhOpuRyCWWyl?= =?us-ascii?Q?NIJkCSlU3rdKJhhWriPzEkrSZtYRxmTXilTUWdft8qxPlMEYs0tfzvNGWPlb?= =?us-ascii?Q?RM5pt096Sg+TUFInfbWGaVmmWbXLDFggGjJwzzq7hqGulTXGmxr4HbNR+sje?= =?us-ascii?Q?eq9xW94VS3FeKaD90xEFezUee5fAxTVPuJdfFLxA/ihqSn/0G1QB+yfALfe2?= =?us-ascii?Q?dVySirn9XfclkSHhx8SdV8WvCRCkASFFTlonyJWiWZ45RNzsPDM/waDAudzW?= =?us-ascii?Q?JhDEB2supJ4EJOz79RFmJQn0yWo1adGULaeXRfIUkxNn2XabDF2rSy827bXQ?= =?us-ascii?Q?GtlXbXSOpR4EqxM/S/dmNkN/D7ZOcBlYK7ah9sTFtabOYxJR5GJ4a2Uhmyh7?= =?us-ascii?Q?H3tG5ef6xF7wMMRVqnZCF4YfKQJgT08O16XbQu3pAw7u+8QDFOjX3CKri0JZ?= =?us-ascii?Q?WC4AhkDjgs5yLDFCJfDqqpR9uenp+fqGzZtmrKq5SDQW2DPYB8SPG065rWFc?= =?us-ascii?Q?5sN7ao/+6KBvP+MTSxZ8wpPbYuxEPuxDD1I1i+/9BcUVJCp2AY8INiTIGH/2?= =?us-ascii?Q?Ja X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0326851d-c3d4-4f14-0495-08da054749d8 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2022 23:14:56.5276 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: l/K4IxykwxAzB3LLL0sISyLnTQbskvTcI63FQxbjcGjyqrWXvRqhWA9IfJ98adHoS3S2IZAEGq6d7psmMP/1bw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5846 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10285 signatures=693139 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203130144 X-Proofpoint-GUID: g2m_YaWtx5TAW8EhGNE7Q0DY04SsmRhy X-Proofpoint-ORIG-GUID: g2m_YaWtx5TAW8EhGNE7Q0DY04SsmRhy Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287094 Archived-At: > >> In case of no completions it will be formatted to: "0 possible > >> completions". > > > > Why? Why wouldn't *Completions* just be > > removed? And "[No match]" is already echoed. > > In the original code there is a message to print when there are no > completions, that's where the original question came from. Actually the > new code is simpler. Dunno what that means. What "original code"? And I see nothing in your "original question" (the start of this thread) about any of this. I don't care whether "the new code is simpler" (and simpler than what - what old code?). I'm interested in the user experience. Coding that experience isn't the problem (shouldn't be, anyway). > > Sounds like things are getting more, not less, > > complicated for users (maybe overengineering?). > > For the user everything is pretty much the same. Doesn't sound like it - not regarding what I asked about, at least. I have nothing against keeping *Completions* showing and updating it as a user changes the pattern to match (and either explicitly asks for a rematch or has elected to get automatic rematching). In fact, I invented such behavior for Emacs (a couple decades ago). But why would we not _remove_ *Completions* when there are no matches? We tell users in the echo area that there are no matches. Why also show an empty buffer, for nonexistent completions, with a redundant message there saying there are none? (That's IBM's "This page intentionally left blank." But at least there was a reason for that notice.) Maybe "the new code is simpler". It sounds like the new user experience is less simple - and maybe a step backward. I understand your feature would be optional. It sounds like it has room for improvement. > > Why would we ever say "0 possible completions"? > > > > Why bother with "possible"? We never show > > IMpossible completions, do we? > > > > When there are no matches we just tell users > > there's no match. Always have. Simple. And your answer is?