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.devel Subject: Re: Programmed completions are utterly confusing Date: Mon, 14 Nov 2022 21:55:52 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38298"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel To: Ag Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 15 03:56:35 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 1oum7l-0009hz-Md for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Nov 2022 03:56:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oum7J-0002dt-CW; Mon, 14 Nov 2022 21:56:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oum7I-0002dF-2t for emacs-devel@gnu.org; Mon, 14 Nov 2022 21:56:04 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oum7F-0008QQ-WF for emacs-devel@gnu.org; Mon, 14 Nov 2022 21:56:03 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D9B3310011A; Mon, 14 Nov 2022 21:55:59 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 25B87100091; Mon, 14 Nov 2022 21:55:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668480954; bh=zFhtSuQuftKGLeU/bDDOfPTSWp/2uszBlGQbL0lMycE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Ppp7xXJzdmVyu1dA1iv6auUNpEf7Wi66M+of+qXHXmOOVi4m0/w86RmNsAknBis27 Mb58sCKmYoRMDwweP/3AB/kqrs2a8WeUAzC+ZLSdvv0DunpycJoRvkbQlhBL8ltqG9 QNMW6/Nrj+BbByYDTtwaQkzqUhL9WfIpL1cqk7bIpCWjksFw/X9cMFcZqKLDbDxU5+ QYisr1t2e7Zv6SvzZxwrMiURu74733//2Sjr+ilimj4XE8HiMzUeH+wQ70lqTlrnkD 5QZUayOSiKWzHguDz6udZ7Ewmr98LxuSai2OkQQUmGHpocCkDLnSGZcJGtEavripWq sGlVJB8mPyeKA== Original-Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E91EB120EA7; Mon, 14 Nov 2022 21:55:53 -0500 (EST) In-Reply-To: (Ag's message of "Mon, 14 Nov 2022 14:01:36 -0600") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299823 Archived-At: > - Use case I have right now: I want to search through URLs and their > page titles. If I put each url into the main display string, and "search" doesn't really make sense for the completion code, because completion is about helping you complete a string S to a "more complete version of S". So typing text that's not in the final result goes against the design. If you want, you can provide a *completion style* which can match the input string against the set of completions *and* their annotations. I think you're thinking of completion UIs based around the idea of selecting one of a set of candidates. Some of the completion UIs indeed do that, but the core completion framework and the completion tables are not designed specifically for that. Stefan