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: Wed, 7 Feb 2024 01:12:37 +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: multipart/mixed; boundary="------------EGi0qzHrDAtfiM0dp49260wa" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28018"; 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 Wed Feb 07 00:13:44 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 1rXUdJ-00074j-Cj for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Feb 2024 00:13:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXUcd-0004UQ-Al; Tue, 06 Feb 2024 18:12:59 -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 1rXUcb-0004U1-6h for emacs-devel@gnu.org; Tue, 06 Feb 2024 18:12:57 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXUcO-0004Lb-Sk for emacs-devel@gnu.org; Tue, 06 Feb 2024 18:12:50 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8D2975C00E7; Tue, 6 Feb 2024 18:12:40 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 06 Feb 2024 18:12:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc: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=1707261160; x=1707347560; bh=u0OQivFl6s iUcv4mN0CJK4gO96Gftj8TThIiStH7794=; b=SCmnW/PyWTp2astcK4RAjWDAOC Qwo6JITTyA4aHMn9Rf1TAuEMD7R3bnCmW8f0IM5tJUpEiPfLzEaFG8c3czS+1dCZ BYdwMrFzYPqaZPBE3xHhl2pYJCvqJSDHvIT2Pp+7SRjBvPKy7OFw1aJUMWZic33M /KX+wF12nVk+8oKUD9mg/MCiGORUAUZXeFI6LPmT3AwabH+Tz/35N5tSkm3qZhew HWUCrCzG3UqymLX0TGyPGnIZVzggne9e9lqez/TcgzXEs4z/H8atAsTTOC8QnuvD 4tEsw/d2GXWYo5fZOKGTvaOHEmad7YrQS9Q+7KwSpXrSNM1GXxkQ1H29HOsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1707261160; x=1707347560; bh=u0OQivFl6siUcv4mN0CJK4gO96Gf tj8TThIiStH7794=; b=g8zvYoca1iLZ7CbA7z9/8QCqY1s4NZgZeVYn2HlNDsYe OPed1XY+iIbopcFBKDlVwebPzffV3LZcNCwsg78Lf2XKZ/cvhNhrC3bwAKbuYsqr Qzy2TTHLAuWj+OjJqe4mdwFBB6sJCXoO4PV0qBbL8+8V4MzfMUkfQDGgLnHW1qhv PZHMkk7BAJ2w0nPLTyuWTGPL6bz1oG/JPUkwZEqbi6cPl78oP7E4eNj/Y7cFvi5g MM510JYD/BIVMTDCdjZvAu0+Jagk2+8ffXdg8yt5tPmA5WG8MvViC0FElAURUQHI Opk7Laelei3viGO3KQSab0C6k8q+6WOOf3u5G7hD+w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrtddugddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtkfffgggfuffvvehfhfgjsehmtderredtvdejnecuhfhrohhmpeffmhhithhr hicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvg hrnhepheelfedukeduudevkeeilefgieffvdekhfekleejueejgeeukeevffekjeejveeh necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmih htrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Feb 2024 18:12:39 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.25; envelope-from=dmitry@gutov.dev; helo=out1-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_H3=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:315949 Archived-At: This is a multi-part message in MIME format. --------------EGi0qzHrDAtfiM0dp49260wa Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 06/02/2024 04:49, Justin Burkett wrote: >> 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. > True, but I think a message like that could be useful regardless of > whether which-key is active (i.e., for `describe-prefix-bindings`). Right. :) How about this? Since echo-keystrokes is 1 second by default, which defines a significant timeout already, I think this can work without a yet another timer. --------------EGi0qzHrDAtfiM0dp49260wa Content-Type: text/x-patch; charset=UTF-8; name="echo_keystrokes_help.diff" Content-Disposition: attachment; filename="echo_keystrokes_help.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9rZXlib2FyZC5jIGIvc3JjL2tleWJvYXJkLmMKaW5kZXggMWY3 MjUzYTdkYTEuLjZkM2RiNWFiNjE1IDEwMDY0NAotLS0gYS9zcmMva2V5Ym9hcmQuYworKysg Yi9zcmMva2V5Ym9hcmQuYwpAQCAtNTg5LDYgKzU4OSwxNSBAQCBlY2hvX2Rhc2ggKHZvaWQp CiAgIEFVVE9fU1RSSU5HIChkYXNoLCAiLSIpOwogICBrc2V0X2VjaG9fc3RyaW5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yayB0byBzdG9wIGEgcnVubmluZyBwcm9ncmFtLgo= --------------EGi0qzHrDAtfiM0dp49260wa--