[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



Thanks for patching that, has been on my list to fix but wasn't
annoying enough to force me to get around to it.


"Parham Doustdar" (via emacspeak Mailing List) writes:
 > 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]
 > ----------------------------------------------------------------------
 > Emacspeak discussion list -- emacspeak@xxxxxxxxxxxxx
 > To unsubscribe send email to:
 > emacspeak-request@xxxxxxxxxxxxx with a subject of: unsubscribe

-- 

--


|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