speechd-discuss
[Top][All Lists]
Advanced

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

[PATCH] Fix toggling of speech modes


From: Alain Kalker
Subject: [PATCH] Fix toggling of speech modes
Date: Wed, 22 Oct 2014 03:03:26 +0200

The keybindings `C-e q` and `C-u C-e q` always enable speech
instead of toggling it. Fix this by adding missing 'toggle argument.
---
 speechd-speak.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/speechd-speak.el b/speechd-speak.el
index 3933198..986ab42 100644
--- a/speechd-speak.el
+++ b/speechd-speak.el
@@ -2119,8 +2119,8 @@ the value of the `speechd-speak-prefix' variable:
 When prefix ARG is non-nil, toggle it locally, otherwise toggle it globally."
   (interactive "P")
   (if arg
-      (speechd-speak-mode)
-    (global-speechd-speak-mode))
+      (speechd-speak-mode 'toggle)
+    (global-speechd-speak-mode 'toggle))
   (when (called-interactively-p 'interactive)
     (let ((state (if speechd-speak-mode "on" "off"))
           (speechd-speak-mode t))
-- 
2.1.2




reply via email to

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