From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Feature Request == Impl Howto question Date: Sat, 04 Mar 2023 10:12:07 +0200 Message-ID: <837cvxaqaw.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17662"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 04 09:12:54 2023 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 1pYN0g-0004QI-28 for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Mar 2023 09:12:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYN0D-0001iQ-IG; Sat, 04 Mar 2023 03:12:25 -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 1pYN09-0001iA-IA for emacs-devel@gnu.org; Sat, 04 Mar 2023 03:12:21 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYN08-0000sW-Rb; Sat, 04 Mar 2023 03:12:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hkEDqAgn9Yum0x/GmD6XiU0uiCIQCIJnJakjkti8uvM=; b=gD1pG+Lt11HV pUd0sCuT+htNUWIxiWe0a13ICvHaetj8vRVtHgJsiNvh0ys78UJWdoNoZxrhhJ9gw5lNe1A3EJqIk +C7BQzPypdDz/5fgS9AYrtb27YWvlO39FWDGvlIdjnMvvgDKzcwnjM9FC/jUzAtPzeoMK+OBRNhtP GIDm4IJZ13R9KZQ2vDzqiYGmPCBwJH8WfhhsBbF7HJdt0CeJId0ygxivvAs4ekLvSvfTlGi4wzaPw pseWp+KHDwO2MFsuy6gHQOU4y48uUOMXnKlMzfRmjR6e8otyhayZ1dyAA9MQ4s3LBfJkze10FvBAG 9EMXekU6ShhwWyiIT/pqhw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYN08-0002Rt-6S; Sat, 04 Mar 2023 03:12:20 -0500 In-Reply-To: (raman@google.com) 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:303937 Archived-At: > Date: Fri, 03 Mar 2023 20:41:19 -0800 > From: "T.V Raman" > > In recent versions of Emacs, if you press a prefix key and wait, > there is a message in the echo area that shows the prefix key that was > pressed. Actually, this feature is very old, probably as old as Emacs itself. > Feature request: would it be possible to define an event handler from > elisp for this; if so I could use it to play a short sound You mean, to call a hook when we display that? Should be easy, I think; patches welcome. > and preferably with a configurable timeout before that elisp-handler > is invoked. Is this possible? The timeout is already configurable, see the variable echo-keystrokes.