all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Feature Request == Impl Howto question
@ 2023-03-04  4:41 T.V Raman
  2023-03-04  8:12 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: T.V Raman @ 2023-03-04  4:41 UTC (permalink / raw)
  To: emacs-devel

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.

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 -- and
preferably with a configurable timeout before that  elisp-handler is
invoked. Is this possible?


-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Feature Request == Impl Howto question
  2023-03-04  4:41 Feature Request == Impl Howto question T.V Raman
@ 2023-03-04  8:12 ` Eli Zaretskii
  2023-03-04 18:22   ` T.V Raman
  2023-03-15  3:45   ` Richard Stallman
  0 siblings, 2 replies; 5+ messages in thread
From: Eli Zaretskii @ 2023-03-04  8:12 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

> Date: Fri, 03 Mar 2023 20:41:19 -0800
> From: "T.V Raman" <raman@google.com>
> 
> 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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Feature Request == Impl Howto question
  2023-03-04  8:12 ` Eli Zaretskii
@ 2023-03-04 18:22   ` T.V Raman
  2023-03-15  3:45   ` Richard Stallman
  1 sibling, 0 replies; 5+ messages in thread
From: T.V Raman @ 2023-03-04 18:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1063 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:


Thanks for the echo-keystrokes pointer, was exactly (and all) that I
needed.
See
https://emacspeak.blogspot.com/2023/03/training-wheels-for-better-ergonomics.html>>
Date: Fri, 03 Mar 2023 20:41:19 -0800


>> From: "T.V Raman" <raman@google.com>
>> 
>> 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.

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Feature Request == Impl Howto question
  2023-03-04  8:12 ` Eli Zaretskii
  2023-03-04 18:22   ` T.V Raman
@ 2023-03-15  3:45   ` Richard Stallman
  2023-03-15 13:53     ` T.V Raman
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2023-03-15  3:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: raman, emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > 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.

I think I added this feature to the original Emacs in 1976-77.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Feature Request == Impl Howto question
  2023-03-15  3:45   ` Richard Stallman
@ 2023-03-15 13:53     ` T.V Raman
  0 siblings, 0 replies; 5+ messages in thread
From: T.V Raman @ 2023-03-15 13:53 UTC (permalink / raw)
  To: Richard Stallman; +Cc: Eli Zaretskii, emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1052 bytes --]

Richard Stallman <rms@gnu.org> writes:

thanks for that:-)

It had entirely slipped me by for 30+ years because I only recently
speech-enabled set-minibuffer-message
which meant I finally heard it. Moreover that message by default
triggers based on the setting of echo-keystrokes (default is 2) and it
turns out I never waited that long. So now I have echo-keystrokes 0.01
and am happy!


 > [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>   > > 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.
>
> I think I added this feature to the original Emacs in 1976-77.

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-15 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-04  4:41 Feature Request == Impl Howto question T.V Raman
2023-03-04  8:12 ` Eli Zaretskii
2023-03-04 18:22   ` T.V Raman
2023-03-15  3:45   ` Richard Stallman
2023-03-15 13:53     ` T.V Raman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.