From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Current mode command discovery Date: Wed, 17 Feb 2021 19:32:01 +0100 Message-ID: <87blci35r2.fsf@gnus.org> 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="13876"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org To: Matt Armstrong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 17 19:33:43 2021 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 1lCRdu-0003Sm-V2 for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 19:33:42 +0100 Original-Received: from localhost ([::1]:48976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCRdt-0000J4-VO for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 13:33:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCRcT-00081G-Vi for emacs-devel@gnu.org; Wed, 17 Feb 2021 13:32:14 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:56644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCRcR-00016Z-13 for emacs-devel@gnu.org; Wed, 17 Feb 2021 13:32:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HdYjaV5GLR+FSUukbVHUqCCcLnqwqUt1DMmVjGLx2hs=; b=WhvtU7aMew3ZfqFpvDKpjJ8ESY JEZDqv+ZmKuFhkvaIFgUFZHN41hvZ02o9SS9197sgVyVg09DBPRZ4IDF2pxNKWRrVHoDY+q09fDqd PaBfb0YYaqWaEp3ZFIRThpAwC6RiwUOsCxpNeESlkaq7cWMVslATJIOt3Gk2gQLPSX2E=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCRcI-0002wm-Ml; Wed, 17 Feb 2021 19:32:07 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEX34KL315Xct43U omifbUlgPy0QCwopFhP////xvBLAAAAAAWJLR0QIht6VegAAAAd0SU1FB+UCERIZFfFHeeYAAAGy SURBVDjLlZRBcqwgEIYhuQANlX3AefsZ25TrDCbuo2EOkBIOkIxcP8BERU0WrxeU8vF3Qzc0IYz8 bgAKgnHgMgy3T5AAAUgp42caEpAL4AuQNxrB5DPzTyNgVdM0GlFgM9uZAmHMWO/ee8Sn0U72QaPi 1Xvfnxl78NFmwNirdb4/3h3bMD0uCkKMdQM+Utb+LM+Ad2U4/+Fid+CiY2LqBRAawVfZlkciwGzB G3k6FUyI9XYJM5/wAnca/tkMJEUHDQugtVtXHSATujBrEFLS8eIkdDXuAXBErGwOUhI7yVXIYQ5i rsI5QqGKjYJGMJw447iLQYx75oQimt123RtnFFWdx0gK2wtChKw3wUNpuwarF212u7LXpahrEGo7 V3UNtvY3IAvwa0Bn4LbByV8gniO58tsY7L8U6VKvFNe0IAc3xVVfRp+5Gm3Kies1tuO4KIY6JsvH edWOmavPg/Pvl2uDJRR1Hvz5MDThBYZ5jm0GnFKdKEoMnaDA9HwSADOo+5ILqQSAwNpPwaHSqgg3 EUNkpcr0qM+pAXAouZrtpzFEAEDjODUIFvtC+J1WZBYB/wYUHx4fuN2sDgAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMS0wMi0xN1QxODoyNToyMSswMDowMIhEe6IAAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjEtMDItMTdUMTg6MjU6MjErMDA6MDD5GcMeAAAAAElFTkSuQmCC X-Now-Playing: Cristina's _Disco Clone_: "Disco Clone & Clone Instrumental" In-Reply-To: (Matt Armstrong's message of "Wed, 17 Feb 2021 10:21:23 -0800") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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.23 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:265039 Archived-At: Matt Armstrong writes: > To your original queston of "should we build a command like this?" I > suspect it just needs to be prototyped to see how it feels. > > I have many times totally failed to appreciate how useful a thing could > be *before* I tried it out. That's true. > A third possible signal is the command name prefix. No, heuristics are to be avoided. There's always too many corner cases for that to be satisfactory, which approx. three hundred previous completion frameworks that have tried shows... > A fourth signal could be a new 'all mode annotation that means > "generally useful" regardless of mode. All untagged commands are presumed to be somewhat generally useful, so that doesn't limit it much. :-) > Could the (declare (modes ...)) and the new (interactive ... modes) be > unified? I understand that they do different things today, but they're > both called "modes" and the difference is pretty subtle. If they stay > separate, perhaps rename to (declare (completion-modes ...))? I think I've argued enough against "(declare (modes" as the only tagging mechanism now? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no