Skip to Content.
Sympa Menu

emacspeak - Re: [Emacspeak] Emacspeak is no longer announcing company suggestions

Subject: Emacspeak discussion list

List archive

Re: [Emacspeak] Emacspeak is no longer announcing company suggestions


Chronological Thread 
  • From: Robert Melton <lists AT robertmelton.com>
  • To: Alan Ghelardi <alan.ghelardi AT gmail.com>
  • Cc: "T.V Raman" <raman AT google.com>, Emacspeaks <emacspeak AT emacspeak.net>
  • Subject: Re: [Emacspeak] Emacspeak is no longer announcing company suggestions
  • Date: Tue, 14 May 2024 09:20:31 -0400

Alan--

First of all, I think you got it exactly!

Secondly, Raman already fixed it in the git repo, he moves quick! I often
find that after reporting an issue, the fix will be in git before he responds
here.

Also, it was impacting other servers, swiftmac for sure.

But, the more people we can get understanding the lisp the better!

> On May 14, 2024, at 09:11, Alan Ghelardi <alan.ghelardi AT gmail.com> wrote:
>
> Hello again.
>
> I was examining the code more carefully and I noticed that other messages
> sent to the notification stream are being spoken normally. So far, only
> company suggestions aren't working as expected.
>
> I was looking into the company front-end code and one thing caught my
> attention. In the form below the company suggestion is being sent to the
> message area, but the code is wrapped into the ems-with-messages-silenced
> macro:
>
> (defun emacspeak-company-speak-this ()
> "Formatting rule for speaking company selection."
> (ems-with-messages-silenced
> (let ((metadata (funcall 'company-fetch-metadata)))
> (when metadata
> (propertize metadata 'personality 'voice-annotate))
> (message
> (concat (ems-company-current) " " metadata)))))
>
> Is that correct? When I replace the message function with dtk-notify, for
> instance, Emacspeak speaks the code completion as expected. Does this code
> work in other TTS engines?

--
Robert "robertmeta" Melton
lists AT robertmelton.com




Archive powered by MHonArc 2.6.19+.

Top of Page