From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#64902: 30.0.50; REQUIRE-MATCH completing-read arg in describe-* commands Date: Sat, 05 Aug 2023 06:51:44 +0000 Message-ID: <87il9u55yg.fsf@posteo.net> References: <874jlp8kt2.fsf@posteo.net> <83ila5l2az.fsf@gnu.org> <87jzukmvub.fsf@posteo.net> <873518xaoz.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11559"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 64902@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 05 09:02:18 2023 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 1qSBIo-0002l4-90 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Aug 2023 09:02:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSBI2-0008Dc-1H; Sat, 05 Aug 2023 03:01:30 -0400 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 1qSBHb-0007lg-5r for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 03:01:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSBHa-0004xc-8n for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 03:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSBHa-0001tg-4S for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 03:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Aug 2023 07:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64902 X-GNU-PR-Package: emacs Original-Received: via spool by 64902-submit@debbugs.gnu.org id=B64902.16912188517247 (code B ref 64902); Sat, 05 Aug 2023 07:01:02 +0000 Original-Received: (at 64902) by debbugs.gnu.org; 5 Aug 2023 07:00:51 +0000 Original-Received: from localhost ([127.0.0.1]:55322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSBHO-0001sp-Ms for submit@debbugs.gnu.org; Sat, 05 Aug 2023 03:00:51 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:43201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSBHM-0001sI-Bn for 64902@debbugs.gnu.org; Sat, 05 Aug 2023 03:00:49 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 443AB240027 for <64902@debbugs.gnu.org>; Sat, 5 Aug 2023 09:00:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1691218842; bh=G9SIKvllor1GN74KHAmHQVwgTtz1daAFqASKTDUrMY8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Jg4/Ocx4v9XOMOOw48L5g+QVedSsVXdb/VkzPVpO6PUjg0eaj5QS0QBxE5dDNnMXk WmDWsT8thypPSBuMe8Iniap1vsLjQZX5ZPzc2IcYcbO09z7sBwPZBid0FwaZsCR4C1 ZqOwx+YxStzajHJo2mlIIoalhiUdMG8sEe+5Ux+JoYx0Vx2yD8KusRqTIkaCavfIzy UxuCmtbeVAkoNG1VuXParRB9WIB4QxsUHYthbLi4eSxJ867aTwdwFkphUHFWBsNXtk sS+e+5BMmr2RgHOLSEE/nxDz6AhH9/GLa9E0a58IYbryaoc3vuKR6jl9ObGp1rcqIX yaVJfzqUn5adw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RHtlF1LLbz6tws; Sat, 5 Aug 2023 09:00:40 +0200 (CEST) In-reply-to: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266736 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Stefan Monnier writes: >> The core of the problem is that in the normal UI, `confirm` is very >> lightweight (you'll basically only notice it when you do try to enter >> the name of a function that's not defined) whereas in the Helm UI it's >> harder to hide it. > > In the long run, maybe the better option would be to move the `confirm` > info from `require-match` to `test-completion`: make it so > `test-completion` can return a value which says "this may be a valid > completion but it requires confirmation from the user". I still don't understand why you insist to have confirmation from user, describe-function give you only an information, it doesn't run a command or a function, what's the problem of exiting directly? > This way `describe-function` could distinguish between names which are > sure to correspond to nothing (e.g. there is no matching symbol in > `obarray`, or there is but it has both `symbol-function` and > `symbol-plist` are empty) and names where `symbol-function` is nil, but > there are some properties defined. Not sure to understand what the predicate would be: (and (symbol-function sym) (symbol-plist sym)) or (or (symbol-function sym) (symbol-plist sym)) or (symbol-function sym) alone or (symbol-plist sym) alone In the example shown in screenshot I sent before I used symbol-function alone, isn't it enough? =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmTN85cTHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk86EC/4pWTFxaf0R7xsgRH6UK2VC1i1aqeoq uT+R0Yyl730ZoLY1UlgRTBulbzWrqo7S7GDIQWfRf1q2AGc51C0lWYq3ogxmWZj1 s35iIjd38HlLcHMT6uCxproGkK7aOYAfyZ76cJwtH2rga13XuMYL2xEyNpEJxa0z yBQzyCb604XXGKw2U/xqbBqaOwXu/RtbEwEWOp6y3jwykkN43bbPJ9L6hO8ciF7B gj0TC1ZR67ACTxt8X41qV/qSGxpKLuPS8IyxEkL9COotUYjiGMqT9DL8lovVNB9I d3RfbjGtQOHi79G3oYQfB2knZySsxwYGolXCZufq0sT0J9i6KC93sS59uz6YOCEJ s+vCUykgPkc4wICa0/7LO93TopZe7kiF47T3FRNV0kP0XlvEiqUfiLiRZbiqesXH FiKaAhMMEujz+7uclTkDkG095Jm8t3nwf4GMtmxLPUFgfbar0CjCzH8zd1QJbZWC 1G5MpTOAb26a6tOASMH0vxTIZclrXwqeYUY= =z5qr -----END PGP SIGNATURE----- --=-=-=--