speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speechd-el widget presentation


From: Milan Zamazal
Subject: Re: Speechd-el widget presentation
Date: Wed, 02 Nov 2022 20:49:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

>>>>> "PV" == Peter Vágner <pvagner@pvagner.tk> writes:

    PV> Results: When navigating to a link by line, by word or by
    PV> character it's presented like a normal text.  When navigating to
    PV> a link by pressing tab or S-tab shortcut the link reporting is
    PV> prepended with some kind of description saying "follow this
    PV> link".  Is there a way to reconfigure speechd-el so the content
    PV> of the link will get reported first with the hint saying "follow
    PV> this link" appended rather than prepended?

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.

I’m not sure what’s the right thing to do about it but we may start with
something and let’s see.

Regards,
Milan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]