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

[Emacspeak] Patch: do not throw an error if there is no matching paren



Hi,
Here is another simple patch to fix a recurring issue for me. To reproduce the issue, go to the scratch buffer and type “test)”. Notice that as you type in the closing parenthesis which doesn’t have a matching open one, you get an error.
Here is the fix:
1 file changed, 2 insertions(+), 1 deletion(-)
lisp/emacspeak-speak.el | 3 ++-

modified   lisp/emacspeak-speak.el
@@ -616,7 +616,8 @@ the sense of the filter. "
   "Show matched paren with context."
   (interactive)
   (let ((data (show-paren--default)))
-    (when data
+    (when (and data
+               (cl-third data))
       (save-excursion
         (goto-char (cl-third  data))
         (dtk-speak

[back]


|Full archive May 1995 - present by Year|Search the archive|


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

Contact Info Page