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.bugs Subject: bug#44454: 26.3; Enhancement request: let :help in menus take a FORM arg, i.e., be eval'd Date: Mon, 9 Nov 2020 08:26:25 -0800 (PST) Message-ID: References: <93a9e82b-3799-492f-9632-dfe61db9a7dd@default> <87v9eejz7m.fsf@gnus.org> 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="29719"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44454@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 09 17:28:28 2020 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 1kcA1s-0007cs-8M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 17:28:28 +0100 Original-Received: from localhost ([::1]:59954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcA1r-00073O-15 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 11:28:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcA0Y-0006H9-6F for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2020 11:27:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcA0U-0001HN-L4 for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2020 11:27:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kcA0U-0002f0-II for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2020 11:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Nov 2020 16:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44454 X-GNU-PR-Package: emacs Original-Received: via spool by 44454-submit@debbugs.gnu.org id=B44454.160493919610175 (code B ref 44454); Mon, 09 Nov 2020 16:27:02 +0000 Original-Received: (at 44454) by debbugs.gnu.org; 9 Nov 2020 16:26:36 +0000 Original-Received: from localhost ([127.0.0.1]:35368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcA04-0002e2-AO for submit@debbugs.gnu.org; Mon, 09 Nov 2020 11:26:36 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:45236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kcA02-0002do-JA for 44454@debbugs.gnu.org; Mon, 09 Nov 2020 11:26:35 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0A9GNigM004161; Mon, 9 Nov 2020 16:26:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=lTYoO5jh3wkCZuVa7zepv3cX3HMnkC0qLRfZ798bn2o=; b=yvhGCEj+okb+CcbmqsmzDwz9MLMo3DLflPiw1jm7g2j4uYn0D1UjU+AhfvKjiWyxHUOu TaAtjodn8STW3lg/esSTQVJlEyKNZ6L1lNVZzYrTwQP/l1Lmw+VYacgHzAjZf3D4ec2+ wM1AbU2vUYps25J7w0KpKXO2f4HLgCAD/z1opnf4Ar7rMQkdkgIQJFx8wI0hi44qiG8P WUKtVz/yFuOdStdVN0ZcS68ELMuRe8B5rSGdmRx5BB6TGtMgw/BqM+/otuRv3w/1jjon B9LuctT37SLaewNoAdnWtQCDGuDJ+rBUrHiTpVvuSRos/W/998x0ngc9KqgkU5u42Bj4 RA== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 34nkhkpuqs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 09 Nov 2020 16:26:28 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0A9GL1Uq105995; Mon, 9 Nov 2020 16:26:27 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 34p5bqqgvq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 09 Nov 2020 16:26:27 +0000 Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0A9GQQq5017407; Mon, 9 Nov 2020 16:26:26 GMT In-Reply-To: <87v9eejz7m.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9800 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011090113 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9800 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 spamscore=0 malwarescore=0 adultscore=0 clxscore=1011 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011090113 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" Xref: news.gmane.io gmane.emacs.bugs:192955 Archived-At: > :visible and :enable have to allow forms as values. What's the use case > for forms for :help elements? Same purpose as :visible and :enable: To be able to change the help echo depending on the current context. The command for the menu item can have different behaviors, depending on the context. The help echo could let you know about this. For example, the help echo for a command that cycles some setting/value could let you know what the current value is or what the next one will be if you choose that menu item - let you know what will happen. Just as :visible and :enable let you know whether a command is currently available, so could :help let you know what its behavior will be. I have exactly this situation in my `Info' submenu `Toggle/Cycle'. For the toggle commands there, the toggle checkmark suffices to let you know the current (and hence the next) state/value. For cycle commands there's no way to know, except by actually cycling. ___ (Dare I ask if there's some reason that :help cannot or shouldn't accept a FORM to evaluate? Will I be denounced again for including a question "Why not?"? You have the "why" above. But I'd anyway like to know what it is, if there's a good answer to "why not?".)