From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: discoverability, better defaults and which-key in Emacs Date: Sun, 11 Feb 2024 14:26:38 +0200 Message-ID: <641fad74-9caf-463f-ac5a-f63ba49d329c@gutov.dev> References: <874jetaxri.fsf@jeremybryant.net> <87le84oqbd.fsf@yahoo.com> <87plxdpsxw.fsf@posteo.net> <87r0hridvr.fsf@posteo.net> <5dd3d04c-c0eb-43fe-b7c2-957f80261ea3@gutov.dev> <87eddqiw84.fsf@posteo.net> <32071337-c91d-46ad-bb9b-10b8d0c83965@gutov.dev> <86h6ikzc38.fsf@gnu.org> <1056a72d-af5c-487e-be33-67522fe47d17@gutov.dev> <87r0hnohgv.fsf@gmail.com> <86a5obxwy9.fsf@gnu.org> <61ffccc8-56c0-4b14-9420-2d0fd9cac216@gutov.dev> <86r0hnw1l1.fsf@gnu.org> <86o7crvza4.fsf@gnu.org> <941e2791-bb35-4de6-b7a7-e3dce4938a1d@gutov.dev> <8c6f06a7-e5e3-499a-88c4-d2b035262c4d@gutov.dev> <2dab155b-05a1-4672-b327-680a683f63e4@gutov.dev> <864jefts04.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4443"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: visuweshm@gmail.com, justin@burkett.cc, philipk@posteo.net, luangruo@yahoo.com, jb@jeremybryant.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 11 13:27:43 2024 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 1rZ8vu-0000u5-Ey for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Feb 2024 13:27:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZ8v4-0005Dy-EK; Sun, 11 Feb 2024 07:26:50 -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 1rZ8v2-0005Dj-L7 for emacs-devel@gnu.org; Sun, 11 Feb 2024 07:26:48 -0500 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZ8v0-0005v5-PW; Sun, 11 Feb 2024 07:26:48 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id EEBD5320077A; Sun, 11 Feb 2024 07:26:42 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 11 Feb 2024 07:26:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1707654402; x=1707740802; bh=MH3qaStAm+D5g41BXlWcbiJhl20GWd7p+9tExl4ZhlA=; b= qNjqE9aGQsnC0+bCS8NPuIkS/QezueeiFUbdM96ZTcB+qHCM/xOU+Pjeipqr24Qi ukV+KPCQ1v0mjjNs7hqEmPNgrQdZvf2rge1RS5X5PfP7qX5UYE0sEXElDk/F+cN2 TP6OjSJl2nyGRlNLAgWaG5wpx6/Pvl0uBjogMBcgxHD8Gm0OfKv1wWzWyeh9rjQg 81+lp5f11+feh3HBPAdg65Ovq8Zd0/8CJC28RYQhsQl4c92l7gCebJPD8Qae5j2x qPWTt+RTO55B68L6dCgPbSDvbhOseYR+XZ2Jzn2oiOAN1wSPKrdybjqFNuI39Avs 108QYwbTTUiA/jsqfqqiYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1707654402; x= 1707740802; bh=MH3qaStAm+D5g41BXlWcbiJhl20GWd7p+9tExl4ZhlA=; b=B 9ISnk8+GUB7p/0ogVjvaPsaeN0vEZokHC0rr+aWTxdGxB/Y3RxfjYAS/Ny29xwy/ Dp5aC1CLLkmoBAWPx9l7efENSenLJJGaAzBggCW/x8WVi156GU8ftYHVcTSYItbY 4YUPNvrR+JBkzeSBXybNNkVSBeqbPjRVaoBYF5se2UcvcO4emkVRwr5ZZkkoCzSs AS4B8f1jTXdrNcYU1gQknhRIPyyCybc149uG8G/mL6ybxAL7lNyvYJQ6ozXkbzyk YhOn5qRFj6USiHSUWdq0F6wqO6eBDhUbfDy80fEZiC+kDMQRnk1SY/535Q/QR1YY d5Vg7wUropSWGiPAWbP8g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddugdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdeimdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrd guvghvqeenucggtffrrghtthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeu fedtvddtveefhfdvveegudejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 11 Feb 2024 07:26:40 -0500 (EST) Content-Language: en-US In-Reply-To: <864jefts04.fsf@gnu.org> Received-SPF: pass client-ip=64.147.123.20; envelope-from=dmitry@gutov.dev; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -36 X-Spam_score: -3.7 X-Spam_bar: --- X-Spam_report: (-3.7 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 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:316111 Archived-At: On 11/02/2024 08:49, Eli Zaretskii wrote: >> Date: Sun, 11 Feb 2024 04:17:21 +0200 >> From: Dmitry Gutov >> Cc:visuweshm@gmail.com,justin@burkett.cc,philipk@posteo.net, >> luangruo@yahoo.com,jb@jeremybryant.net,emacs-devel@gnu.org >> >> Here's that simpler version. >> >> It doesn't address the "key translations" example above, but it seems >> rare enough, and it should be possible to fix later. >> >> So I suggest we install this now. > This basically throws away the addition of F1 I did, doesn't it? I > added it for a reason, and I don't want to lose it. If you want to > make sure F1 is bound to help-command, and omit it from the message if > not, that is fine by me. But I object to omitting it unconditionally. Not quite. is in help-event-list. This function iterates among the available options, and if it sees that help-char is bound in the current prefix map(s), it tries , and if that one is bound as well, the last remaining element, which is '?'. It also prints the value of help-char correctly if it was changed to a different value (if it's not bound in the current prefix map(s)).