Skip to Content.
Sympa Menu

emacspeak - [Emacspeak] Patch: don't read scroll percentage without a notification stream

Subject: Emacspeak discussion list

List archive

[Emacspeak] Patch: don't read scroll percentage without a notification stream


Chronological Thread 
  • From: Tyler Spivey <tspivey AT pcdesk.net>
  • To: emacspeak AT emacspeak.net
  • Subject: [Emacspeak] Patch: don't read scroll percentage without a notification stream
  • Date: Sat, 16 Mar 2024 13:15:29 -0700
  • Author: Tyler Spivey <tspivey AT pcdesk.net>
  • Original-subject: Patch: don't read scroll percentage without a notification stream

Scrolling with C-v and M-v tries to read the percentage through the buffer using the notification stream. If it's not active, the percentage interrupts the text.

This patch checks to see whether dtk-notify-process is set before reading the percentage.

diff --git a/lisp/emacspeak-advice.el b/lisp/emacspeak-advice.el
index 03747d2ed..f91fb96d0 100644
--- a/lisp/emacspeak-advice.el
+++ b/lisp/emacspeak-advice.el
@@ -431,10 +431,11 @@ When on a close delimiter, speak matching delimiter after a small delay. "
(when (ems-interactive-p)
(emacspeak-icon 'scroll)
(dtk-speak (emacspeak-get-window-contents))
- (dtk-notify-speak
- (propertize
- (format "%s " (emacspeak-get-current-percentage-into-buffer))
- 'personality voice-smoothen))))))
+ (when dtk-notify-process
+ (dtk-notify-speak
+ (propertize
+ (format "%s " (emacspeak-get-current-percentage-into-buffer))
+ 'personality voice-smoothen)))))))

;;; Advise modify case commands to speak



  • [Emacspeak] Patch: don't read scroll percentage without a notification stream, Tyler Spivey, 03/16/2024

Archive powered by MHonArc 2.6.19+.

Top of Page