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 20:31:04 +0200 Message-ID: <1056a72d-af5c-487e-be33-67522fe47d17@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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------PdnRlxEobDV0LofmjvVnmpnt" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13252"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 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 Wed Feb 07 19:32:15 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 1rXmiT-0003Bp-Fz for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Feb 2024 19:32:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXmhW-0007AD-Qt; Wed, 07 Feb 2024 13:31:14 -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 1rXmhU-00079o-O0 for emacs-devel@gnu.org; Wed, 07 Feb 2024 13:31:12 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXmhS-0001cV-Ut; Wed, 07 Feb 2024 13:31:12 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4DFD05C015E; Wed, 7 Feb 2024 13:31:09 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 07 Feb 2024 13:31:09 -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=1707330669; x=1707417069; bh=SXOi8ZaQXE c3r4dp/sy9Q1ygvPAG3V02nWUuGvwkGAM=; b=JpoLLt4paI6KAdQS0lkvtUonBE Aj8ucBL+mSmey6QVCOthwQDesYtp6PlPk6vV2WUQLK6srk8SnD272xetPCjxN20m Z3O2slL4YArSNSicTh/VGPgC93Cj/sYGL/N/Zolrc6wb1J2hTZoFQo/rhkFbNJPh tD6wcUOpkwgzlb2lISdM2eB2YkJHrYFPZobjlCd4ULMiIv0i0thJe0In8nqL1oRA knk9dF9H6cayV9oD5eHGb/elOqQEwlMdlaLwj9L9bl0OyhDS0VKSjgrIJT6t7hkA 4MxtMspkr2hTMpzY+1WvKTwsLHVXuKtMYazuoDFcQL8MZBZMRGJjyIzWfnew== 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=1707330669; x=1707417069; bh=SXOi8ZaQXEc3r4dp/sy9Q1ygvPAG 3V02nWUuGvwkGAM=; b=KLBb4peWQdZqehpLsp6Vt101X53tqQSnLy6IGoMQRtet iok8CZ6pqGrFxantsU+CV+T5eUHr3mXvscV+3zz0Edo9QuDISFAFITNXOGll9As2 HCQb6EwxSLiO2bBVuJ6oPcEXyMO1XjX9l+s/gxvYuPF0CektWbilCMlEY/twh4Q5 XLsy4FplhAr5+ZpHsYVoTCfGFQlAwkzKgFb/1e39wjgkf3serWHBKOFM2C7OMkYn ALfrWRVH27fnww3uCy1Q/5gjt7UooRIays8d/bLtuEk2ROLmcyb2vVwiOaPkeeiP 25XlJIfLMoomiW8TTFw2E5ELKfLxqFjPxXCtD7RfWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrtddvgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptgfkffggfgfuvfevfhfhjgesmhdtreertddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeehleefudekudduveekieelgfeiffdvkefhkeeljeeujeegueekveffkeejjeev heenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Feb 2024 13:31:06 -0500 (EST) Content-Language: en-US In-Reply-To: <86h6ikzc38.fsf@gnu.org> Received-SPF: pass client-ip=66.111.4.28; envelope-from=dmitry@gutov.dev; helo=out4-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:315988 Archived-At: This is a multi-part message in MIME format. --------------PdnRlxEobDV0LofmjvVnmpnt Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07/02/2024 14:35, Eli Zaretskii wrote: >> Date: Wed, 7 Feb 2024 01:12:37 +0200 >> Cc: Philip Kaludercic , Po Lu , >> Jeremy Bryant , Emacs Devel >> From: Dmitry Gutov >> >> 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. > > LGTM, but it should be a defcustom. All right, see the attached. --------------PdnRlxEobDV0LofmjvVnmpnt 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 ZGlmZiAtLWdpdCBhL2V0Yy9ORVdTIGIvZXRjL05FV1MKaW5kZXggZWU3NDYyY2IyYWEuLmQ0 YjhiZjIxZjk0IDEwMDY0NAotLS0gYS9ldGMvTkVXUworKysgYi9ldGMvTkVXUwpAQCAtMzA3 LDYgKzMwNyw5IEBAIGJldHdlZW4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