Dňa 2. 11. 2022 o 20:49 Milan Zamazal
napísal(a):
The link and other widget hints are reported using ‘message’ function.
There is an advice in speechd-el on the function that speaks the message
immediately. Only after it, post-command-hook that reads the text in
the buffer is invoked.
I think a new speechd-el configuration option could be introduced that
would:
- disable reading messages in the advice when inside an interactive
command or perhaps when entering a text with help-echo property;
- invoke reading the current message at the end, rather than beginning,
of the speechd-el post-command hook (which speaks the message too,
unless it has already been spoken).
The change as such shouldn’t be difficult to implement but it may be
non-trivial to decide when to suppress reading messages in the advice.
For example, what if there are multiple messages within a single command
or how about long-running interactive commands. There is a risk of
missed messages in such cases. And there may be cases when there is
always better to read messages immediately.
Hmm. This sounds too complicated to me.