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: Tue, 6 Feb 2024 01:05:08 +0200 Message-ID: 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> 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="21933"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Philip Kaludercic , Po Lu , Jeremy Bryant , Emacs Devel To: Justin Burkett Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 06 00:06:12 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 1rX82U-0005PW-RD for ged-emacs-devel@m.gmane-mx.org; Tue, 06 Feb 2024 00:06:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rX81e-0001yS-GB; Mon, 05 Feb 2024 18:05:18 -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 1rX81c-0001yB-Vy for emacs-devel@gnu.org; Mon, 05 Feb 2024 18:05:17 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rX81b-0007SG-6B for emacs-devel@gnu.org; Mon, 05 Feb 2024 18:05:16 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C5DE85C0134; Mon, 5 Feb 2024 18:05:12 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 05 Feb 2024 18:05:12 -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=1707174312; x=1707260712; bh=H/az9ig7g6he32ozk5Vsj9wjWjYIAYlYY+Sn3/8jcm0=; b= or1B21459z0d31+cnkMlDVZ9J8uoZeRmHtkxjtfWBNcWH8gIVAvhXua7s2pAuU4/ 29ubbo5goduXywZXV78wvR+iZSzFrC929qJPYGGGUBcW81vscxi4ROd5UbYrjEhN KYX7+siRQJ5QEFotgqM5m26pwcW+NLh7WXJfs0oOJTY/7uqeTvqzT7YuzEcnilCk JIGovUK62n7JfK4y+TKRcY5aIjlIKtPj1u7/mqJrhb8Y6BSpU0bR4i6PincQb3f4 EBoJvWtqTpZ81Tsva3eLVQSyBzIfN99betcXf0hfmy12+NXTZocMf4I3v4COHex2 sYLQ6AqjlaUn/5gvef8mgw== 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=1707174312; x= 1707260712; bh=H/az9ig7g6he32ozk5Vsj9wjWjYIAYlYY+Sn3/8jcm0=; b=s v3RfB6/URMToiw4Q5Q3+Nh5MPsA8UFyTLPx3dQ5Nkuf6GR0jX0P+sypDnz8SPYLu /1KMzury/+9BUvJYC2oAHB6ItD3epG4PBovp2KdVYeshniPZfOGo7Jcfk+PdRSmq rB1MiG/boDuNdo1mX7WSpYOOp8A3oyATqFY2KQa2PymmuhRafIiSpfPiYGPI08vG ihi7N8XeGA7doLIKcjYq8LhXgoq+K+AYQew9Oz1OmuVP4SQ7VsqBthShLu1YlJHE tVQNMfwaj7dDF8M+tETtoN1DuJlyl5GD5qH5+e5Q79eo9gMyPsy36hRxlnWP7mAN a2zbZjKF5U+5w2aX5atAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedvvddgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 5 Feb 2024 18:05:11 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.29; envelope-from=dmitry@gutov.dev; helo=out5-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.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=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:315909 Archived-At: On 05/02/2024 21:33, Justin Burkett wrote: >> If you like which-key's UI (and I don't mind it, aside from the timer >> thing -- seems like it can be more useful than the current >> 'describe-bindings' in many cases), then we could ask the author for >> this different mode of operation, where the timer only tells the user >> how to get this transient menu with hints (pressing C-h), but the menu >> itself isn't shown. >> >> Or more generally we'll have such a timer globally, and the message >> ("use C-h") would be independent from which-key. But which-key can plug >> into the "C-h" binding one way or another, to replace describe-bindings >> if the user configured it this way. > I'm the author of which-key, and I've been following along but don't > have a strong opinion on whether it should be on by default, so I'll > let you all decide. > > I should mention in response to the comments above that this feature > is partially implemented through the following setup (from the > README). It simply sets a long delay for the timer and allows you to > use C-h to trigger the popup. > > ;; Allow C-h to trigger which-key before it is done automatically > (setq which-key-show-early-on-C-h t) > ;; make sure which-key doesn't show normally but refreshes > quickly after it is > ;; triggered. > (setq which-key-idle-delay 10000) > (setq which-key-idle-secondary-delay 0.05) > (which-key-mode) Nice, thanks. These settings are for the second option, right? "More generally ...", etc. What is missing is the note in the echo area that tells the user to press C-h after a timeout (like 200ms or so) if they want help in the middle of typing a key sequence.