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

Patch: fix reading mode line error if folding-mode is not defined



Hi,
When I load Emacs and folding-mode is not defined, Emacspeak errors out whenever emacspeak-speak-mode-line is called. I just did a tiny change to make sure if the variable is bound before using it:
1 file changed, 1 insertion(+), 1 deletion(-)
lisp/emacspeak-speak.el | 2 +-

modified   lisp/emacspeak-speak.el
@@ -1774,7 +1774,7 @@ Interactive prefix arg speaks buffer info."
                        emacspeak-mail-alert mode-line-format))
   (with-current-buffer (window-buffer (selected-window))
     (force-mode-line-update)
-    (when folding-mode (emacspeak-auditory-icon 'ellipses))
+    (when (and (boundp 'folding-mode) folding-mode) (emacspeak-auditory-icon 'ellipses))
     (when (and visual-line-mode (not global-visual-line-mode)) (sox-chime 2 2))
     (when emacspeak-mail-alert (emacspeak-mail-alert-user))
     (cond



|All Past Years |Current Year|


If you have questions about this archive or had problems using it, please contact us.

Contact Info Page