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: Thoughts on Refactoring In-Buffer Completion In message.el Date: Wed, 20 Jul 2022 19:59:33 -0400 Message-ID: References: <82e662dc46347e410c0b1d871e998b00@condition-alpha.com> <5b04a4a1f5a497f030397f6813551ad2@condition-alpha.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="35180"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Alexander Adolf Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 21 02:00:55 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 1oEJcd-0008vp-1i for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Jul 2022 02:00:55 +0200 Original-Received: from localhost ([::1]:35298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEJca-00017P-Mb for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Jul 2022 20:00:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEJbW-0000Er-0Q for emacs-devel@gnu.org; Wed, 20 Jul 2022 19:59:46 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEJbS-0006pP-LX for emacs-devel@gnu.org; Wed, 20 Jul 2022 19:59:44 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 450AA441732; Wed, 20 Jul 2022 19:59:41 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id CAE0E44172E; Wed, 20 Jul 2022 19:59:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1658361579; bh=m0PrC9G61lAaJdkdZQG02YiKixTuAVIRoJekh+g0UXE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VWd62HmMQw7rg8CZLafFuSadetCGEV4dGeHnKQ+naIP6LBUXwTci2ZWLQJs3PC0BK gIvUP56Uf9d8Kgvi+osFWKap+TQNucS2PBKlJKKXYP2KESTFbCxy6hm6jcchIsI3Q/ goelLMGptCP768erzmrbfErj+Aa8gWaxNxlDe5Cyt0kOKPP+ZG8iruIdFP2CLFacHt ZwPKuRplbSi4kePbPq0BqdtAMWHBOvFhtnkKGYqFDe1IjIlkgtJI19+VE+rOp6+xeG CyF5G1RJXkoTIdOHRAeIVeiP+RDF/jf8U8zLy5AFAtR/KLl5XWEkT7bQ3wTnI1yRrG mYf1AXutxcYaA== Original-Received: from pastel (unknown [45.72.196.165]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A1E9D12016C; Wed, 20 Jul 2022 19:59:39 -0400 (EDT) In-Reply-To: <5b04a4a1f5a497f030397f6813551ad2@condition-alpha.com> (Alexander Adolf's message of "Wed, 20 Jul 2022 22:59:56 +0200") 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, 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:292323 Archived-At: > Why restrict it to a table? Perhaps we should allow both, functions and > tables? Practically, that could mean checking whether the value > satisfies `functionp`, and `funcall` it when that's the case; else use > it as a ready-made table. > It seems I am missing something? A "completion table" can take several shapes, one of which is a function. But that function isn't used like a CAPF function. E.g. `message-expand-name` is a CAPF function whereas (message--name-table STR) returns a completion table (implemented as a function). [ I'll get back to you later for the rest of your message. ] Stefan